Skip to content
Browse files

Add back in global event emitter

  • Loading branch information...
1 parent c266500 commit 546da11bf7a5318e81bfe02895b6f972910b76b0 @creationix committed
Showing with 1 addition and 0 deletions.
  1. +1 −0 sdl.js
View
1 sdl.js
@@ -14,6 +14,7 @@ Object.defineProperty(SDL, 'events', {
now = after;
var data;
while (data = SDL.pollEvent()) {
+ events.emit('event', data);
events.emit(data.type, data);
}
events.emit('tick', delta);

0 comments on commit 546da11

Please sign in to comment.
Something went wrong with that request. Please try again.