From fa021197ba789fe2d2159e49d01c18edecf0423c Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 10 Jun 2014 05:41:06 +0200 Subject: [PATCH] (Apple) Set driver.input_data_own to true for input driver for now - until we can teardown and reinit this entire thing properly --- input/apple_input.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/input/apple_input.c b/input/apple_input.c index b000bbb4a2..1f1eb16fdb 100644 --- a/input/apple_input.c +++ b/input/apple_input.c @@ -485,10 +485,15 @@ static bool apple_is_pressed(unsigned port_num, const struct retro_keybind *bind // Exported input driver static void *apple_input_init(void) { + if (driver.input_data) + return driver.input_data; + input_init_keyboard_lut(apple_key_map_hidusage); memset(&g_current_input_data, 0, sizeof(g_current_input_data)); joypad = input_joypad_init_driver(g_settings.input.joypad_driver); + + driver.input_data_own = true; return (void*)-1; }