(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:
meancoot 2013-05-13 23:45:02 -04:00
parent df79b8ea3d
commit afa22f32be
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}