mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
Small cleanup to input_keyboard_event
This commit is contained in:
parent
fa539c9563
commit
d98f81359f
@ -25691,9 +25691,7 @@ void input_keyboard_event(bool down, unsigned code,
|
||||
}
|
||||
else
|
||||
{
|
||||
retro_keyboard_event_t *key_event = &p_rarch->runloop_key_event;
|
||||
|
||||
if ((code == RETROK_UNKNOWN) || !key_event)
|
||||
if (code == RETROK_UNKNOWN)
|
||||
return;
|
||||
|
||||
/* Block hotkey + RetroPad mapped keyboard key events,
|
||||
@ -25707,10 +25705,12 @@ void input_keyboard_event(bool down, unsigned code,
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
{
|
||||
retro_keyboard_event_t *key_event = &p_rarch->runloop_key_event;
|
||||
if (*key_event)
|
||||
(*key_event)(down, code, character, mod);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static bool input_config_bind_map_get_valid(unsigned i)
|
||||
|
Loading…
x
Reference in New Issue
Block a user