fix build failure due to -Werror=declaration-after-statement (bug #5500)
parent
8e1005f8b0
commit
141f441633
|
@ -431,12 +431,13 @@ static SDL_MOUSE_EVENT_SOURCE GetMouseMessageSource()
|
||||||
LRESULT CALLBACK
|
LRESULT CALLBACK
|
||||||
WIN_KeyboardHookProc(int nCode, WPARAM wParam, LPARAM lParam)
|
WIN_KeyboardHookProc(int nCode, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
|
KBDLLHOOKSTRUCT* hookData = (KBDLLHOOKSTRUCT*)lParam;
|
||||||
|
SDL_Scancode scanCode;
|
||||||
|
|
||||||
if (nCode < 0 || nCode != HC_ACTION) {
|
if (nCode < 0 || nCode != HC_ACTION) {
|
||||||
return CallNextHookEx(NULL, nCode, wParam, lParam);
|
return CallNextHookEx(NULL, nCode, wParam, lParam);
|
||||||
}
|
}
|
||||||
|
|
||||||
KBDLLHOOKSTRUCT* hookData = (KBDLLHOOKSTRUCT*)lParam;
|
|
||||||
SDL_Scancode scanCode;
|
|
||||||
switch (hookData->vkCode) {
|
switch (hookData->vkCode) {
|
||||||
case VK_LWIN:
|
case VK_LWIN:
|
||||||
scanCode = SDL_SCANCODE_LGUI;
|
scanCode = SDL_SCANCODE_LGUI;
|
||||||
|
|
Loading…
Reference in New Issue