mirror of
https://github.com/glfw/glfw.git
synced 2024-11-26 06:14:35 +00:00
Nomenclature fix.
This commit is contained in:
parent
f5ba0d9f22
commit
74d6a5d883
@ -477,20 +477,20 @@ static NSCursor *emptyCursor = nil;
|
|||||||
|
|
||||||
- (void)flagsChanged:(NSEvent *)event
|
- (void)flagsChanged:(NSEvent *)event
|
||||||
{
|
{
|
||||||
int mode, key;
|
int action, key;
|
||||||
unsigned int newModifierFlags =
|
unsigned int newModifierFlags =
|
||||||
[event modifierFlags] & NSDeviceIndependentModifierFlagsMask;
|
[event modifierFlags] & NSDeviceIndependentModifierFlagsMask;
|
||||||
|
|
||||||
if (newModifierFlags > window->ns.modifierFlags)
|
if (newModifierFlags > window->ns.modifierFlags)
|
||||||
mode = GLFW_PRESS;
|
action = GLFW_PRESS;
|
||||||
else
|
else
|
||||||
mode = GLFW_RELEASE;
|
action = GLFW_RELEASE;
|
||||||
|
|
||||||
window->ns.modifierFlags = newModifierFlags;
|
window->ns.modifierFlags = newModifierFlags;
|
||||||
|
|
||||||
key = convertMacKeyCode([event keyCode]);
|
key = convertMacKeyCode([event keyCode]);
|
||||||
if (key != -1)
|
if (key != -1)
|
||||||
_glfwInputKey(window, key, mode);
|
_glfwInputKey(window, key, action);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)keyUp:(NSEvent *)event
|
- (void)keyUp:(NSEvent *)event
|
||||||
|
Loading…
Reference in New Issue
Block a user