mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
(Apple OSX) Swallow 'escape' key being pressed - would previously make the game
go from fullscreen to windowed
This commit is contained in:
parent
412a1885b2
commit
ea9f3f13ca
@ -350,6 +350,17 @@ static ui_application_t ui_application_cocoa = {
|
||||
#define CONVERT_POINT() [[CocoaView get] convertPoint:[event locationInWindow] fromView:nil]
|
||||
#endif
|
||||
|
||||
- (void)keyDown:(NSEvent *)theEvent
|
||||
{
|
||||
switch([theEvent keyCode])
|
||||
{
|
||||
case 0x35: /* Escape */
|
||||
break;
|
||||
default:
|
||||
[super keyDown:theEvent];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)sendEvent:(NSEvent *)event {
|
||||
NSEventType event_type = event.type;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user