[vlc-commits] macosx: SPMediaKeyTap: Use correct define
Marvin Scholz
git at videolan.org
Fri Apr 23 21:27:42 UTC 2021
vlc/vlc-3.0 | branch: master | Marvin Scholz <epirat07 at gmail.com> | Fri Apr 23 01:24:45 2021 +0200| [e79f17f63978eeb4b5cb8fb58d24f8fa9995a5fa] | committer: Marvin Scholz
macosx: SPMediaKeyTap: Use correct define
Use the proper define from IOLLEvent.h instead of a magic value.
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=e79f17f63978eeb4b5cb8fb58d24f8fa9995a5fa
---
modules/gui/macosx/SPMediaKeyTap.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/gui/macosx/SPMediaKeyTap.h b/modules/gui/macosx/SPMediaKeyTap.h
index 66aba1b50e..b8cb8b5780 100644
--- a/modules/gui/macosx/SPMediaKeyTap.h
+++ b/modules/gui/macosx/SPMediaKeyTap.h
@@ -23,10 +23,11 @@
#import <Cocoa/Cocoa.h>
#import <IOKit/hidsystem/ev_keymap.h>
+#import <IOKit/hidsystem/IOLLEvent.h>
// http://overooped.com/post/2593597587/mediakeys
-#define SPSystemDefinedEventMediaKeys 8
+#define SPSystemDefinedEventMediaKeys NX_SUBTYPE_AUX_CONTROL_BUTTONS
@interface SPMediaKeyTap : NSObject
More information about the vlc-commits
mailing list