OnKeyDown

From MaratisWiki
Jump to: navigation, search

onKeyDown(key)

Check if key has been pressed. While isKeyPressed will return "true" continuously until a key is released, this function will return "true", when the button is pressed down and then "true","false" every few ticks depending on your OS key delay and speed settings.

  • key : key constant
spaceDown = onKeyDown("SPACE")

You can find key constants here

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox