1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-08 12:15:49 +00:00

Fix RUNLOOP_CTL_FRONTEND_KEY_EVENT_GET

This commit is contained in:
twinaphex 2016-01-21 19:45:43 +01:00
parent 4995490588
commit 7924823b32

View File

@ -1139,7 +1139,7 @@ bool runloop_ctl(enum runloop_ctl_state state, void *data)
case RUNLOOP_CTL_FRONTEND_KEY_EVENT_GET:
{
retro_keyboard_event_t **key_event = (retro_keyboard_event_t**)data;
if (!key_event || !global)
if (!key_event)
return false;
*key_event = &runloop_frontend_key_event;
}