diff options
author | Michael Lutz <michi@icosahedron.de> | 2021-02-03 22:43:06 +0100 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2021-02-13 22:21:17 +0100 |
commit | 965ce1294726427bf31da33bb5c7650773f8aada (patch) | |
tree | 508286c554e90e8e8296a69116c65224515cea0b /src/video/cocoa/cocoa_wnd.h | |
parent | 42af13c141eb74f63e58827f8a33e7f66d7d829a (diff) | |
download | openttd-965ce1294726427bf31da33bb5c7650773f8aada.tar.xz |
Codechange: [OSX] Use newer mouse tracking API.
Diffstat (limited to 'src/video/cocoa/cocoa_wnd.h')
-rw-r--r-- | src/video/cocoa/cocoa_wnd.h | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/src/video/cocoa/cocoa_wnd.h b/src/video/cocoa/cocoa_wnd.h index 744a65786..449b457af 100644 --- a/src/video/cocoa/cocoa_wnd.h +++ b/src/video/cocoa/cocoa_wnd.h @@ -32,20 +32,8 @@ extern NSString *OTTDMainLaunchGameEngine; - (void)appDidUnhide:(NSNotification*)note; @end -/** Subclass of NSView to fix Quartz rendering and mouse awareness */ -@interface OTTD_CocoaView : NSView <NSTextInputClient> { - VideoDriver_Cocoa *driver; -} -- (instancetype)initWithFrame:(NSRect)frameRect andDriver:(VideoDriver_Cocoa *)drv; - -- (BOOL)acceptsFirstResponder; -- (void)setTrackingRect; -- (void)clearTrackingRect; -- (void)resetCursorRects; -- (void)viewWillMoveToWindow:(NSWindow *)win; -- (void)viewDidMoveToWindow; -- (void)mouseEntered:(NSEvent *)theEvent; -- (void)mouseExited:(NSEvent *)theEvent; +/** Subclass of NSView to support mouse awareness and text input. */ +@interface OTTD_CocoaView : NSView <NSTextInputClient> @end /** Delegate for our NSWindow to send ask for quit on close */ |