diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-04-29 13:48:27 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-04-29 13:48:27 -0700 |
commit | 5d50ac51fe1ed4eca6450812b5689142dd406265 (patch) | |
tree | 66dd1e59495f5a2709fdf0ff180247f52c2ff9ce | |
parent | 71e46835b826351815b94ca059756eaf65595fae (diff) |
revert 2ad1070/#2297 due to errors, until we figure out the right solution; see also #2310
-rw-r--r-- | src/library_sdl.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/library_sdl.js b/src/library_sdl.js index 6e235e90..077f72eb 100644 --- a/src/library_sdl.js +++ b/src/library_sdl.js @@ -686,11 +686,7 @@ var LibrarySDL = { } else { code = SDL.keyCodes[event.keyCode] || event.keyCode; } - - var scan = code & ~(1 << 10); - scan = SDL.scanCodes[scan] || scan; - - {{{ makeSetValue('SDL.keyboardState', 'scan', 'down', 'i8') }}}; + {{{ makeSetValue('SDL.keyboardState', 'code', 'down', 'i8') }}}; // TODO: lmeta, rmeta, numlock, capslock, KMOD_MODE, KMOD_RESERVED SDL.modState = ({{{ makeGetValue('SDL.keyboardState', '1248', 'i8') }}} ? 0x0040 | 0x0080 : 0) | // KMOD_LCTRL & KMOD_RCTRL ({{{ makeGetValue('SDL.keyboardState', '1249', 'i8') }}} ? 0x0001 | 0x0002 : 0) | // KMOD_LSHIFT & KMOD_RSHIFT |