From 34d13cd0a9c05e6608e57bc0e758951f058a7c6d Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Thu, 9 Mar 2023 20:28:05 +0300 Subject: [PATCH] made IsModifierKeyPressed() helper static --- src/video/cocoa/SDL_cocoakeyboard.m | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/video/cocoa/SDL_cocoakeyboard.m b/src/video/cocoa/SDL_cocoakeyboard.m index a7c90035dc..dbe56577ae 100644 --- a/src/video/cocoa/SDL_cocoakeyboard.m +++ b/src/video/cocoa/SDL_cocoakeyboard.m @@ -183,10 +183,10 @@ @end -bool IsModifierKeyPressed(unsigned int flags, - unsigned int target_mask, - unsigned int other_mask, - unsigned int either_mask) +static bool IsModifierKeyPressed(unsigned int flags, + unsigned int target_mask, + unsigned int other_mask, + unsigned int either_mask) { bool target_pressed = (flags & target_mask) != 0; bool other_pressed = (flags & other_mask) != 0; @@ -227,7 +227,7 @@ static void HandleModifiers(_THIS, SDL_Scancode code, unsigned int modifierFlags pressed = IsModifierKeyPressed(modifierFlags, NX_DEVICERCMDKEYMASK, NX_DEVICELCMDKEYMASK, NX_COMMANDMASK); } else { - return; + return; } if (pressed) {