From 3e08a0b48b44026424846c88e1b1692b84049b41 Mon Sep 17 00:00:00 2001 From: ZappoMan Date: Wed, 5 Feb 2014 13:26:46 -0800 Subject: [PATCH] fix spacebar capture --- examples/spaceInvadersExample.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/spaceInvadersExample.js b/examples/spaceInvadersExample.js index 79e6837f21..c817afcdd4 100644 --- a/examples/spaceInvadersExample.js +++ b/examples/spaceInvadersExample.js @@ -275,6 +275,9 @@ function cleanupGame() { if (missileFired) { Particles.deleteParticle(myMissile); } + + Controller.releaseKeyEvents({text: " "}); + Script.stop(); } Script.scriptEnding.connect(cleanupGame);