(iOS) Clear input buffers when the driver is initialized. This prevents keys held when the last game exited from being reported on the first poll of the next.
This commit is contained in:
parent
df79b8ea3d
commit
afa22f32be
|
@ -44,6 +44,7 @@ static bool ios_is_pressed(unsigned port_num, const struct retro_keybind *binds,
|
|||
static void *ios_input_init(void)
|
||||
{
|
||||
input_init_keyboard_lut(rarch_key_map_hidusage);
|
||||
memset(&g_ios_input_data, 0, sizeof(g_ios_input_data));
|
||||
return (void*)-1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue