aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--AUTHORS1
-rw-r--r--src/library_glut.js2
2 files changed, 3 insertions, 0 deletions
diff --git a/AUTHORS b/AUTHORS
index 7e10ceab..001af087 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -115,3 +115,4 @@ a license to everyone to use it as detailed in LICENSE.)
* Adam C. Clifton <adam@hulkamaniac.com>
* Volo Zyko <volo.zyko@gmail.com>
* Andre Weissflog <floooh@gmail.com>
+* Alexandre Perrot <alexandre.perrot@gmail.com> \ No newline at end of file
diff --git a/src/library_glut.js b/src/library_glut.js
index 76a52b73..65ac10c4 100644
--- a/src/library_glut.js
+++ b/src/library_glut.js
@@ -122,6 +122,8 @@ var LibraryGLUT = {
return keycode; // numeric TODO handle shift?
if (65 <= keycode && keycode <= 90)
return event['shiftKey'] ? keycode : keycode + 32;
+ if (96 <= keycode && keycode <= 105)
+ return keycode - 48; // numpad numbers
if (106 <= keycode && keycode <= 111)
return keycode - 106 + 42; // *,+-./ TODO handle shift?