Fixed build warning
This commit is contained in:
parent
ebf3f850ae
commit
11f5755737
1 changed files with 1 additions and 1 deletions
|
@ -200,7 +200,7 @@ HIDCallback(void *context, IOReturn result, void *sender, IOHIDValueRef value)
|
||||||
|| IOHIDElementGetUsage(elem) != kHIDUsage_KeyboardCapsLock) {
|
|| IOHIDElementGetUsage(elem) != kHIDUsage_KeyboardCapsLock) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
int pressed = IOHIDValueGetIntegerValue(value);
|
CFIndex pressed = IOHIDValueGetIntegerValue(value);
|
||||||
SDL_SendKeyboardKey(pressed ? SDL_PRESSED : SDL_RELEASED, SDL_SCANCODE_CAPSLOCK);
|
SDL_SendKeyboardKey(pressed ? SDL_PRESSED : SDL_RELEASED, SDL_SCANCODE_CAPSLOCK);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue