mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
fix input
This commit is contained in:
parent
49398698b5
commit
9486d8154c
@ -57,6 +57,7 @@ static bool sdl_key_pressed(int key)
|
||||
|
||||
int num_keys = 0xFFFF;
|
||||
Uint8 *keymap = SDL_GetKeyState(&num_keys);
|
||||
if (sym < 0 || sym >= num_keys)
|
||||
return false;
|
||||
|
||||
return keymap[sym];
|
||||
|
Loading…
x
Reference in New Issue
Block a user