From 70b3345476ff13f3b6aabd853117bf6c0881e3f7 Mon Sep 17 00:00:00 2001 From: Michael Buckley Date: Wed, 15 Jan 2020 20:01:56 -0800 Subject: [PATCH] Mac: Fix keyboard implementation for players 2-8 --- macosx/mac-os.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/macosx/mac-os.mm b/macosx/mac-os.mm index 9b5cf5ef..0ed92f3a 100644 --- a/macosx/mac-os.mm +++ b/macosx/mac-os.mm @@ -2838,7 +2838,7 @@ void QuitWithFatalError ( NSString *message) pthread_mutex_lock(&keyLock); S9xButton button = keyCodes[event.keyCode]; - if ( button.buttonCode >= 0 && button.buttonCode < kNumButtons && button.player <= 0 && button.player <= MAC_MAX_PLAYERS) + if ( button.buttonCode >= 0 && button.buttonCode < kNumButtons && button.player >= 0 && button.player <= MAC_MAX_PLAYERS) { pressedKeys[button.player][button.buttonCode] = true; } @@ -2866,7 +2866,7 @@ void QuitWithFatalError ( NSString *message) pthread_mutex_lock(&keyLock); S9xButton button = keyCodes[event.keyCode]; - if ( button.buttonCode >= 0 && button.buttonCode < kNumButtons && button.player <= 0 && button.player <= MAC_MAX_PLAYERS) + if ( button.buttonCode >= 0 && button.buttonCode < kNumButtons && button.player >= 0 && button.player <= MAC_MAX_PLAYERS) { pressedKeys[button.player][button.buttonCode] = false; }