Skip to content

Commit c8c631e

Browse files
authored
fix wrong arg count, use macro instead of magic number
1 parent b96b95d commit c8c631e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/video/windows/SDL_windowsrawinput.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ static DWORD WINAPI WIN_RawInputThread(LPVOID param)
7777
if (data->flags & ENABLE_RAW_KEYBOARD_INPUT) {
7878
devices[count].usUsagePage = USB_USAGEPAGE_GENERIC_DESKTOP;
7979
devices[count].usUsage = USB_USAGE_GENERIC_KEYBOARD;
80-
devices[count].dwFlags = SDL_GetHintBoolean(SDL_HINT_WINDOWS_RAW_KEYBOARD_NOHOTKEY) ? 0x200 : 0;
80+
devices[count].dwFlags = SDL_GetHintBoolean(SDL_HINT_WINDOWS_RAW_KEYBOARD_NOHOTKEY, false) ? RIDEV_NOHOTKEYS : 0;
8181
devices[count].hwndTarget = window;
8282
++count;
8383
}

0 commit comments

Comments
 (0)