Set g_extern.frontend_key_event to new keyboard callback as soon as RETRO_ENVIRONMENT_SET_KEYBOARD_CALLBACK is called

This commit is contained in:
twinaphex 2014-10-30 06:19:51 +01:00
parent 0f7decfc53
commit 0e0d62a97b

View File

@ -709,6 +709,7 @@ bool rarch_environment_cb(unsigned cmd, void *data)
const struct retro_keyboard_callback *info =
(const struct retro_keyboard_callback*)data;
g_extern.system.key_event = info->callback;
g_extern.frontend_key_event = g_extern.system.key_event;
break;
}