mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-24 00:15:40 +00:00
fix build failure due to -Werror=declaration-after-statement (bug #5500)
This commit is contained in:
parent
8e1005f8b0
commit
141f441633
|
@ -431,12 +431,13 @@ static SDL_MOUSE_EVENT_SOURCE GetMouseMessageSource()
|
|||
LRESULT CALLBACK
|
||||
WIN_KeyboardHookProc(int nCode, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
KBDLLHOOKSTRUCT* hookData = (KBDLLHOOKSTRUCT*)lParam;
|
||||
SDL_Scancode scanCode;
|
||||
|
||||
if (nCode < 0 || nCode != HC_ACTION) {
|
||||
return CallNextHookEx(NULL, nCode, wParam, lParam);
|
||||
}
|
||||
|
||||
KBDLLHOOKSTRUCT* hookData = (KBDLLHOOKSTRUCT*)lParam;
|
||||
SDL_Scancode scanCode;
|
||||
switch (hookData->vkCode) {
|
||||
case VK_LWIN:
|
||||
scanCode = SDL_SCANCODE_LGUI;
|
||||
|
|
Loading…
Reference in a new issue