fix build failure due to -Werror=declaration-after-statement (bug #5500)

This commit is contained in:
Brandon DeRosier committed 2021-02-10 10:22:16 -05:00
1 parent 8e1005f8b0
commit 141f441633
1 file changed
+3 -2
+3 -2
View File
@@ -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;