IsKeyDown
IsKeyDown

Checks if a key is pressed

bDown = myMouseKeyboard.IsKeyDown( Key )

Return value
TRUE if the key is down, FALSE if not

Parameters
  • Key
    Either a Keyboard. constant, or a string containing the key to check. Note: "A" and "a" are treated differently.
Comments

Unlike Keyboard.IsKeyDown, this function will also check the case of the pressed key. This is done by checking if Caps Lock is on, or (technically XOR) if shift is pressed.

See also
MouseKeyboard:IsCapsLock



JAM © 2005 no one in particular
Project started by David Evans in 2005