Difference between revisions of "OnControlDown"
Jump to navigation
Jump to search
Clarified behavior
imported>Haama (Notes) |
imported>Speedo (Clarified behavior) |
||
Line 6: | Line 6: | ||
(controlPressed:bool) OnControlDown whichControl:short | (controlPressed:bool) OnControlDown whichControl:short | ||
Registers a script as a listener for input events. Returns 1 | Registers a script as a listener for input events. Returns 1 once 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== | ==Notes== |