OnKeyUp
OnKeyUp

Called when the user releases a key while the game window is active.

myJAM.OnKeyUp=function( Win, Key, Flag, String );

Parameters
  • Win
    The window with focus
  • Key
    The key released as ascii / constant
  • Flag
    Flags such as Window.OKF_ALT, Window.OKF_CONTROL and Window.OKF_SHIFT
  • String
    String containing the key released, 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