summaryrefslogtreecommitdiffstats
path: root/osdep/macosx_events_objc.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-05-26 22:39:04 +0200
committerwm4 <wm4@nowhere>2015-05-26 22:39:04 +0200
commit2dd904289dcaf7b11b30ec362288f9af90531879 (patch)
treea024ffe4631bd5c3b8ad8cdbbda675d045902128 /osdep/macosx_events_objc.h
parent39a339c813ee3bb7f8e1f65dcf325e7f0db110a2 (diff)
downloadmpv-2dd904289dcaf7b11b30ec362288f9af90531879.tar.bz2
mpv-2dd904289dcaf7b11b30ec362288f9af90531879.tar.xz
osx: never expose input_ctx from EventsResponder
Keep it internal, so we can synchronize access to it properly.
Diffstat (limited to 'osdep/macosx_events_objc.h')
-rw-r--r--osdep/macosx_events_objc.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/osdep/macosx_events_objc.h b/osdep/macosx_events_objc.h
index e9b14ed079..70a058e651 100644
--- a/osdep/macosx_events_objc.h
+++ b/osdep/macosx_events_objc.h
@@ -27,11 +27,17 @@ struct input_ctx;
+ (EventsResponder *)sharedInstance;
+- (void)setInputContext:(struct input_ctx *)ctx;
+
/// Blocks until inputContext is present.
- (void)waitForInputContext;
-- (void)handleFilesArray:(NSArray *)files;
+- (void)wakeup;
+
+- (bool)queueCommand:(char *)cmd;
-@property(nonatomic, assign) struct input_ctx *inputContext;
+- (void)putKey:(int)keycode;
+
+- (void)handleFilesArray:(NSArray *)files;
@end