mirror of
https://github.com/libretro/RetroArch
synced 2025-02-22 03:40:43 +00:00
Only accept key releases.
This commit is contained in:
parent
39ef5d8e03
commit
89e48d3f1b
@ -133,10 +133,13 @@ void input_keyboard_event(bool down, unsigned code, uint32_t character, uint16_t
|
||||
static bool deferred_wait_keys;
|
||||
|
||||
if (deferred_wait_keys)
|
||||
{
|
||||
if (!down)
|
||||
{
|
||||
input_keyboard_wait_keys_cancel();
|
||||
deferred_wait_keys = false;
|
||||
}
|
||||
}
|
||||
else if (g_keyboard_press_cb)
|
||||
{
|
||||
if (down && code != RETROK_UNKNOWN && !g_keyboard_press_cb(g_keyboard_press_data, code))
|
||||
|
Loading…
x
Reference in New Issue
Block a user