mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-24 00:55:37 +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
|
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 a new issue