aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniele Di Proietto <daniele.di.proietto@gmail.com>2014-03-07 12:13:08 +0100
committerDaniele Di Proietto <daniele.di.proietto@gmail.com>2014-03-08 15:10:25 +0100
commit3dac5a40c0fc4cf6250acac399ed9c8fd46cbf36 (patch)
tree6e7d318f7fd0ca93cd8db4fcc4561cafc239c29f /src
parent6960d2296299e96d43e694806f5d35799ef8d39c (diff)
Fix GLFW ESC key
GLFW_KEY_ESC is defined to GLFW_KEY_SPECIAL+1 (257) in system/include/GL/glfw.h.
Diffstat (limited to 'src')
-rw-r--r--src/library_glfw.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library_glfw.js b/src/library_glfw.js
index b54205ad..e5782900 100644
--- a/src/library_glfw.js
+++ b/src/library_glfw.js
@@ -51,7 +51,7 @@ var LibraryGLFW = {
DOMToGLFWKeyCode: function(keycode) {
switch (keycode) {
case 0x09: return 295 ; //DOM_VK_TAB -> GLFW_KEY_TAB
- case 0x1B: return 255 ; //DOM_VK_ESCAPE -> GLFW_KEY_ESC
+ case 0x1B: return 257 ; //DOM_VK_ESCAPE -> GLFW_KEY_ESC
case 0x6A: return 313 ; //DOM_VK_MULTIPLY -> GLFW_KEY_KP_MULTIPLY
case 0x6B: return 315 ; //DOM_VK_ADD -> GLFW_KEY_KP_ADD
case 0x6D: return 314 ; //DOM_VK_SUBTRACT -> GLFW_KEY_KP_SUBTRACT