From 74d6a5d8834ded2d7ab23a4e97b124c49cf778c6 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sun, 21 Apr 2013 21:54:33 +0200 Subject: [PATCH] Nomenclature fix. --- src/cocoa_window.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cocoa_window.m b/src/cocoa_window.m index 23aff3d8..c23db7c2 100644 --- a/src/cocoa_window.m +++ b/src/cocoa_window.m @@ -477,20 +477,20 @@ static NSCursor *emptyCursor = nil; - (void)flagsChanged:(NSEvent *)event { - int mode, key; + int action, key; unsigned int newModifierFlags = [event modifierFlags] & NSDeviceIndependentModifierFlagsMask; if (newModifierFlags > window->ns.modifierFlags) - mode = GLFW_PRESS; + action = GLFW_PRESS; else - mode = GLFW_RELEASE; + action = GLFW_RELEASE; window->ns.modifierFlags = newModifierFlags; key = convertMacKeyCode([event keyCode]); if (key != -1) - _glfwInputKey(window, key, mode); + _glfwInputKey(window, key, action); } - (void)keyUp:(NSEvent *)event