Posts tagged as 'Keyboard polling'

Keyboard polling class – bug fix

There was an error in the Keyboard polling class that I posted yesterday. If you downloaded the class you’ll want the new version, which is available here.

Polling the keyboard in Actionscript 3

Games often need to get the current state of various keys in order to respond to user input. This is not the same as responding to key down and key up events, but is rather a case of discovering if a particular key is currently pressed.

In Actionscript 2 this was a simple matter of calling Key.isDown() with the appropriate key code. But in Actionscript 3 Key.isDown no longer exists...