mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
Fixed escape cancelling fullscreen mode now that the SDL window is the first res
ponder.
This commit is contained in:
parent
a2085da216
commit
16360b1979
@ -57,6 +57,7 @@
|
|||||||
- (BOOL)canBecomeKeyWindow;
|
- (BOOL)canBecomeKeyWindow;
|
||||||
- (BOOL)canBecomeMainWindow;
|
- (BOOL)canBecomeMainWindow;
|
||||||
- (void)sendEvent:(NSEvent *)event;
|
- (void)sendEvent:(NSEvent *)event;
|
||||||
|
- (void)doCommandBySelector:(SEL)aSelector;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@implementation SDLWindow
|
@implementation SDLWindow
|
||||||
@ -87,6 +88,14 @@
|
|||||||
[delegate windowDidFinishMoving];
|
[delegate windowDidFinishMoving];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* We'll respond to selectors by doing nothing so we don't beep.
|
||||||
|
* The escape key gets converted to a "cancel" selector, etc.
|
||||||
|
*/
|
||||||
|
- (void)doCommandBySelector:(SEL)aSelector
|
||||||
|
{
|
||||||
|
/*NSLog(@"doCommandBySelector: %@\n", NSStringFromSelector(aSelector));*/
|
||||||
|
}
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
|
||||||
@ -654,14 +663,6 @@ SetWindowStyle(SDL_Window * window, unsigned int style)
|
|||||||
/*Cocoa_HandleKeyEvent(SDL_GetVideoDevice(), theEvent);*/
|
/*Cocoa_HandleKeyEvent(SDL_GetVideoDevice(), theEvent);*/
|
||||||
}
|
}
|
||||||
|
|
||||||
/* We'll respond to selectors by doing nothing so we don't beep.
|
|
||||||
* The escape key gets converted to a "cancel" selector, etc.
|
|
||||||
*/
|
|
||||||
- (void)doCommandBySelector:(SEL)aSelector
|
|
||||||
{
|
|
||||||
/*NSLog(@"doCommandBySelector: %@\n", NSStringFromSelector(aSelector));*/
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)mouseDown:(NSEvent *)theEvent
|
- (void)mouseDown:(NSEvent *)theEvent
|
||||||
{
|
{
|
||||||
int button;
|
int button;
|
||||||
|
Loading…
Reference in New Issue
Block a user