[Scummvm-git-logs] scummvm master -> 254db114199c9087c2411353d1eaac8244c9ad68

sev- noreply at scummvm.org
Mon Nov 22 22:32:41 UTC 2021


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
254db11419 BACKENDS: MACOS: Trigger GMM on the touchbar icon tap


Commit: 254db114199c9087c2411353d1eaac8244c9ad68
    https://github.com/scummvm/scummvm/commit/254db114199c9087c2411353d1eaac8244c9ad68
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2021-11-22T23:32:13+01:00

Commit Message:
BACKENDS: MACOS: Trigger GMM on the touchbar icon tap

Changed paths:
    backends/platform/sdl/macosx/macosx-touchbar.mm


diff --git a/backends/platform/sdl/macosx/macosx-touchbar.mm b/backends/platform/sdl/macosx/macosx-touchbar.mm
index 32485d1471..3feb59856c 100644
--- a/backends/platform/sdl/macosx/macosx-touchbar.mm
+++ b/backends/platform/sdl/macosx/macosx-touchbar.mm
@@ -26,6 +26,10 @@
 #include "backends/platform/sdl/macosx/appmenu_osx.h"
 
 #include "backends/platform/sdl/macosx/macosx-compat.h"
+
+#include "common/system.h"
+#include "common/events.h"
+
 #include <Cocoa/Cocoa.h>
 #include <AppKit/NSWorkspace.h>
 
@@ -86,6 +90,12 @@ NSButton *tbButton;
 	[tbButton invalidateIntrinsicContentSize];
 }
 
+- (IBAction) actionKey : (id) sender {
+	Common::Event event;
+
+	event.type = Common::EVENT_MAINMENU;
+	g_system->getEventManager()->pushEvent(event);
+}
 
 @end
 




More information about the Scummvm-git-logs mailing list