GetKeyState
GetKeyState

Returns the state of a key

state = myMouseKeyboard.GetKeyState( Key )

Return value
The state of the key (see comments for more details)

Comments

The return value can be one of 4:
  • 0b00 (0)
    Key is released and toggle flag is off
  • 0b01 (1)
    Key is released and toggle flag is on
  • 0b10 (2)
    Key is pressed and toggle flag is off
  • 0b11 (3)
    Key is pressed and toggle flag is on
Toggle flag is only used in keys such as CapsLock, NumLock, ScrollLock, Insert and Pause/Break.

See also
MouseKeyboard:IsKeyDown



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