aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-05-23 15:06:40 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-05-23 15:06:40 -0700
commit608c3ce208f406b172f98272710df0032088a248 (patch)
tree8265287631667fdb91fff65eccbe7b665735d2ec
parent7c64a8d77cf577709f950da69651a0d03bebc8e2 (diff)
SDL fix for addEventListener
-rw-r--r--src/library_sdl.js2
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
},