diff options
author | wm4 <wm4@nowhere> | 2015-05-26 22:39:04 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-05-26 22:39:04 +0200 |
commit | 2dd904289dcaf7b11b30ec362288f9af90531879 (patch) | |
tree | a024ffe4631bd5c3b8ad8cdbbda675d045902128 /osdep/macosx_events_objc.h | |
parent | 39a339c813ee3bb7f8e1f65dcf325e7f0db110a2 (diff) | |
download | mpv-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.h | 10 |
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 |