aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-10-30 20:09:51 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-10-30 20:09:51 -0700
commit1e4eddb702888b30cc0f1b1136f2732b2a5a4dbb (patch)
tree5d02f865153d932d887c6aa260b256eda5369462
parent4a226fce3e70f59958149a9e2fc31ac1a409d027 (diff)
add some more sdl scancodes
-rw-r--r--src/library_sdl.js43
1 files changed, 24 insertions, 19 deletions
diff --git a/src/library_sdl.js b/src/library_sdl.js
index 4620035e..04a66351 100644
--- a/src/library_sdl.js
+++ b/src/library_sdl.js
@@ -153,25 +153,30 @@ var LibrarySDL = {
120: 27,
121: 28,
122: 29, // Z
- 44: 54, // comma
- 46: 55, // period
- 47: 56, // slash
- 49: 30, // 1
- 50: 31,
- 51: 32,
- 52: 33,
- 53: 34,
- 54: 35,
- 55: 36,
- 56: 37,
- 57: 38, // 9
- 48: 39, // 0
- 13: 40, // return
- 8: 42, // backspace
- 9: 43, // tab
- 27: 41, // escape
- 32: 44, // space
- 92: 49, // backslash
+ 49: 30, // 1
+ 50: 31,
+ 51: 32,
+ 52: 33,
+ 53: 34,
+ 54: 35,
+ 55: 36,
+ 56: 37,
+ 57: 38, // 9
+ 48: 39, // 0
+ 13: 40, // return
+ 27: 41, // escape
+ 8: 42, // backspace
+ 9: 43, // tab
+ 32: 44, // space
+ 61: 46, // equals
+ 91: 47, // left bracket
+ 93: 48, // right bracket
+ 92: 49, // backslash
+ 59: 51, // ;
+ 96: 52, // apostrophe
+ 44: 54, // comma
+ 46: 55, // period
+ 47: 56, // slash
305: 224, // ctrl
308: 226, // alt
},