mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +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]
|
#define CONVERT_POINT() [[CocoaView get] convertPoint:[event locationInWindow] fromView:nil]
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
- (void)keyDown:(NSEvent *)theEvent
|
||||||
|
{
|
||||||
|
switch([theEvent keyCode])
|
||||||
|
{
|
||||||
|
case 0x35: /* Escape */
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
[super keyDown:theEvent];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
- (void)sendEvent:(NSEvent *)event {
|
- (void)sendEvent:(NSEvent *)event {
|
||||||
NSEventType event_type = event.type;
|
NSEventType event_type = event.type;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user