From 2dd904289dcaf7b11b30ec362288f9af90531879 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 26 May 2015 22:39:04 +0200 Subject: osx: never expose input_ctx from EventsResponder Keep it internal, so we can synchronize access to it properly. --- osdep/macosx_events_objc.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'osdep/macosx_events_objc.h') 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 -- cgit v1.2.3