mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +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
|
- (IBAction)basicEvent:(id)sender
|
||||||
{
|
{
|
||||||
unsigned cmd = (unsigned)[sender tag];
|
unsigned sender_tag, cmd;
|
||||||
if (!g_extern.main_is_init)
|
sender_tag = (unsigned)[sender tag];
|
||||||
return;
|
|
||||||
|
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);
|
rarch_main_command(cmd);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user