From 201d0a78b14757a3440151b4da7546c45218f33e Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Wed, 25 Sep 2013 23:55:05 +0200 Subject: [PATCH] Fixed Grave and World 1 being flipped. --- README.md | 3 +++ src/cocoa_window.m | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 483ae381..859c5000 100644 --- a/README.md +++ b/README.md @@ -208,6 +208,9 @@ See the [GLFW documentation](http://www.glfw.org/docs/latest/). ## Changelog + - [Cocoa] Bugfix: The `GLFW_KEY_GRAVE_ACCENT` and `GLFW_KEY_WORLD_1` keys had + been flipped + ## Contact diff --git a/src/cocoa_window.m b/src/cocoa_window.m index b1b324d7..0016a701 100644 --- a/src/cocoa_window.m +++ b/src/cocoa_window.m @@ -264,7 +264,7 @@ static int translateKey(unsigned int key) /* 07 */ GLFW_KEY_X, /* 08 */ GLFW_KEY_C, /* 09 */ GLFW_KEY_V, - /* 0a */ GLFW_KEY_GRAVE_ACCENT, + /* 0a */ GLFW_KEY_WORLD_1, /* 0b */ GLFW_KEY_B, /* 0c */ GLFW_KEY_Q, /* 0d */ GLFW_KEY_W, @@ -304,7 +304,7 @@ static int translateKey(unsigned int key) /* 2f */ GLFW_KEY_PERIOD, /* 30 */ GLFW_KEY_TAB, /* 31 */ GLFW_KEY_SPACE, - /* 32 */ GLFW_KEY_WORLD_1, + /* 32 */ GLFW_KEY_GRAVE_ACCENT, /* 33 */ GLFW_KEY_BACKSPACE, /* 34 */ GLFW_KEY_UNKNOWN, /* 35 */ GLFW_KEY_ESCAPE,