Hi, I'm trying to do a game with this amazing soft but I have a little problem when game loses focus (for exemple when pressing alt, opening another window etc...)
http://www.blommouth.com/vrac/constructTest/
<img src="http://www.blommouth.com/vrac/constructTest/events.png" border="0">
The text is "1" when space key is down, otherwise it's "0"
If you leave the browser while space is pressed and then release the key, when you return to game the text still prints "1"
The best solution would be to pause the game when losing focus but i don't know if it's possible to detect if game is active...
Furthermore, is it possible to disable "alt" key when playing ?