Difference between revisions of "OnControlDown"

Jump to navigation Jump to search
9 bytes removed ,  13:26, 16 March 2008
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 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 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==
Anonymous user

Navigation menu