mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-07 23:20:58 +00:00
Fixed warning C6031: Return value ignored: 'GetKeyboardState'.
This commit is contained in:
parent
69b9d44bdc
commit
c7d81d936a
1 changed files with 3 additions and 1 deletions
|
|
@ -198,7 +198,9 @@ void WIN_ResetDeadKeys()
|
|||
WCHAR buffer[16];
|
||||
int keycode, scancode, result, i;
|
||||
|
||||
GetKeyboardState(keyboardState);
|
||||
if (!GetKeyboardState(keyboardState)) {
|
||||
return;
|
||||
}
|
||||
|
||||
keycode = VK_SPACE;
|
||||
scancode = MapVirtualKey(keycode, MAPVK_VK_TO_VSC);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue