mirror of
https://github.com/libretro/RetroArch.git
synced 2024-12-04 06:11:17 +00:00
Fix if clause that could result in a keyboard key being handled as gamepad input
This commit is contained in:
parent
2c08dc0f4f
commit
9245113738
@ -965,8 +965,10 @@ static void android_input_poll_input(void *data)
|
||||
{
|
||||
int keycode = AKeyEvent_getKeyCode(event);
|
||||
|
||||
if (is_keyboard_id(id) && !predispatched)
|
||||
android_input_poll_event_type_keyboard(event, keycode, &handled);
|
||||
if (is_keyboard_id(id))
|
||||
{
|
||||
if (!predispatched) android_input_poll_event_type_keyboard(event, keycode, &handled);
|
||||
}
|
||||
else
|
||||
android_input_poll_event_type_key(android_app,
|
||||
event, port, keycode, source, type_event, &handled);
|
||||
|
Loading…
Reference in New Issue
Block a user