From bb619e5597d04fd5161ff37daf1b5d0925328d3f Mon Sep 17 00:00:00 2001 From: Michael Buckley Date: Sun, 10 Nov 2019 13:19:51 -0800 Subject: [PATCH] Mac: pause emulation when the user clicks the view --- macosx/mac-os.mm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/macosx/mac-os.mm b/macosx/mac-os.mm index 508504c6..2f761c76 100644 --- a/macosx/mac-os.mm +++ b/macosx/mac-os.mm @@ -2907,6 +2907,12 @@ void QuitWithFatalError ( NSString *message) os_unfair_lock_unlock(&keyLock); } +- (void)mouseDown:(NSEvent *)event +{ + pauseEmulation = true; + [self setNeedsDisplay:YES]; +} + - (void)drawRect:(NSRect)dirtyRect { os_unfair_lock_lock(&renderLock);