mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
(Apple/OSX) Setup remapping for basicEvent
This commit is contained in:
parent
3a501e750f
commit
47de32450d
@ -317,9 +317,21 @@ static char** waiting_argv;
|
||||
|
||||
- (IBAction)basicEvent:(id)sender
|
||||
{
|
||||
unsigned cmd = (unsigned)[sender tag];
|
||||
if (!g_extern.main_is_init)
|
||||
return;
|
||||
unsigned sender_tag, cmd;
|
||||
sender_tag = (unsigned)[sender tag];
|
||||
|
||||
switch (sender_tag)
|
||||
{
|
||||
case 1:
|
||||
cmd = RARCH_CMD_RESET;
|
||||
break;
|
||||
case 2:
|
||||
cmd = RARCH_CMD_LOAD_STATE;
|
||||
break;
|
||||
case 3:
|
||||
cmd = RARCH_CMD_SAVE_STATE;
|
||||
break;
|
||||
}
|
||||
|
||||
rarch_main_command(cmd);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user