| OnKeyDown
Called when the user presses a key while the game window is active.
myJAM.OnKeyDown=function( Win, Key, Flag, String );
Parameters
- Win
The window with focus
- Key
The key pressed as ascii / constant
- Flag
Flags such as Window.OKF_ALT, Window.OKF_CONTROL and Window.OKF_SHIFT
- String
String containing the key pressed, if alphanumeric
Comments
Beware that this function may be called during your game loop. It will not wait until the end of the loop to run.
JAM © 2005 no one in particular Project started by David Evans in 2005 | |