mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 00:39:53 +00:00
This reverts commit 7068eebe0c59fea26a4fc176c769ef46fd3ad718.
This commit is contained in:
parent
2e5df6a973
commit
e1caf32817
@ -104,7 +104,7 @@
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
<menu key="submenu" title="Audio Options" id="661">
|
||||
<items>
|
||||
<menuItem title="Mute Toggle" tag="22" id="663">
|
||||
<menuItem title="Mute Toggle" tag="11" id="663">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
<connections>
|
||||
<action selector="basicEvent:" target="494" id="664"/>
|
||||
@ -185,7 +185,7 @@
|
||||
<action selector="basicEvent:" target="494" id="627"/>
|
||||
</connections>
|
||||
</menuItem>
|
||||
<menuItem title="Take Screenshot" tag="21" id="658">
|
||||
<menuItem title="Take Screenshot" tag="10" id="658">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
<connections>
|
||||
<action selector="basicEvent:" target="494" id="659"/>
|
||||
|
@ -104,7 +104,7 @@
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
<menu key="submenu" title="Audio Options" id="661">
|
||||
<items>
|
||||
<menuItem title="Mute Toggle" tag="22" id="663">
|
||||
<menuItem title="Mute Toggle" tag="11" id="663">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
<connections>
|
||||
<action selector="basicEvent:" target="494" id="664"/>
|
||||
@ -185,7 +185,7 @@
|
||||
<action selector="basicEvent:" target="494" id="627"/>
|
||||
</connections>
|
||||
</menuItem>
|
||||
<menuItem title="Take Screenshot" tag="21" id="658">
|
||||
<menuItem title="Take Screenshot" tag="10" id="658">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
<connections>
|
||||
<action selector="basicEvent:" target="494" id="659"/>
|
||||
|
@ -332,33 +332,6 @@ static ui_application_t ui_application_cocoa = {
|
||||
"cocoa"
|
||||
};
|
||||
|
||||
@interface CommandPerformer : NSObject
|
||||
@end // @interface CommandPerformer
|
||||
|
||||
@implementation CommandPerformer {
|
||||
void *data;
|
||||
enum event_command cmd;
|
||||
}
|
||||
|
||||
- (id)initWithData:(void *)data command:(enum event_command)cmd
|
||||
{
|
||||
self = [super init];
|
||||
if (!self)
|
||||
return self;
|
||||
|
||||
self->data = data;
|
||||
self->cmd = cmd;
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)perform
|
||||
{
|
||||
command_event(self->cmd, self->data);
|
||||
}
|
||||
|
||||
@end // @implementation CommandPerformer
|
||||
|
||||
#if defined(HAVE_COCOA_METAL)
|
||||
@interface RAWindow : NSWindow
|
||||
@end
|
||||
@ -904,12 +877,6 @@ static void open_document_handler(
|
||||
case 20:
|
||||
cmd = CMD_EVENT_FULLSCREEN_TOGGLE;
|
||||
break;
|
||||
case 21:
|
||||
cmd = CMD_EVENT_TAKE_SCREENSHOT;
|
||||
break;
|
||||
case 22:
|
||||
cmd = CMD_EVENT_AUDIO_MUTE_TOGGLE;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@ -954,12 +921,7 @@ static void ui_companion_cocoa_deinit(void *data)
|
||||
static void *ui_companion_cocoa_init(void) { return (void*)-1; }
|
||||
static void ui_companion_cocoa_notify_content_loaded(void *data) { }
|
||||
static void ui_companion_cocoa_toggle(void *data, bool force) { }
|
||||
static void ui_companion_cocoa_event_command(void *data, enum event_command cmd)
|
||||
{
|
||||
id performer = [[CommandPerformer alloc] initWithData:data command:cmd];
|
||||
[performer performSelectorOnMainThread:@selector(perform) withObject:nil waitUntilDone:NO];
|
||||
[performer release];
|
||||
}
|
||||
static void ui_companion_cocoa_event_command(void *data, enum event_command cmd) { }
|
||||
static void ui_companion_cocoa_notify_list_pushed(void *data,
|
||||
file_list_t *list, file_list_t *menu_list) { }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user