Difference between revisions of "OnControlDown"

Jump to navigation Jump to search
267 bytes added ,  22:06, 26 November 2007
Notes
imported>Haama
(→‎See Also: New links)
imported>Haama
(Notes)
Line 7: Line 7:


Registers a script as a listener for input events. Returns 1 for one frame when the key and/or mouse button assigned to the Control ID 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 (and/or keys) is released and then pressed again.
Registers a script as a listener for input events. Returns 1 for one frame when the key and/or mouse button assigned to the Control ID 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 (and/or keys) 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==
Anonymous user

Navigation menu