Difference between revisions of "OnKeyDown"
Jump to navigation
Jump to search
Notes
imported>Haama (→See Also: Fixed) |
imported>Haama (Notes) |
||
Line 7: | Line 7: | ||
Registers a script as a listener for input events. Returns 1 for one frame when the passed key or mouse button is pressed. If used by multiple scripts, each script will be informed of the Control key's state. Will not return true again until the key is released and then pressed again. | Registers a script as a listener for input events. Returns 1 for one frame when the passed key or mouse button is pressed. If used by multiple scripts, each script will be informed of the Control key's state. Will not return true again until the key is released and then pressed again. | ||
==Notes== | |||
*Like [[GetGameLoaded]] and [[GetSecondsPassed]], this returns 1 the first time per script, and 0 each subsequent call (from the same script). | |||
*Can't detect keys disabled via [[DisableKey]] or [[DisableControl]] or tapped via [[TapKey]] or [[TapControl]]. | |||
==Control IDs== | ==Control IDs== |