diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-05-23 15:06:40 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-05-23 15:06:40 -0700 |
commit | 608c3ce208f406b172f98272710df0032088a248 (patch) | |
tree | 8265287631667fdb91fff65eccbe7b665735d2ec /src/library_sdl.js | |
parent | 7c64a8d77cf577709f950da69651a0d03bebc8e2 (diff) |
SDL fix for addEventListener
Diffstat (limited to 'src/library_sdl.js')
-rw-r--r-- | src/library_sdl.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library_sdl.js b/src/library_sdl.js index a795cffd..d4e7b687 100644 --- a/src/library_sdl.js +++ b/src/library_sdl.js @@ -130,7 +130,7 @@ mergeInto(Library, { SDL_Init: function(what) { SDL.startTime = Date.now(); ['keydown', 'keyup', 'keypress'].forEach(function(event) { - addEventListener(event, SDL.receiveEvent); + addEventListener(event, SDL.receiveEvent, true); }); return 0; // success }, |