Difference between revisions of "OnKeyDown"

Jump to navigation Jump to search
9 bytes removed ,  13:24, 16 March 2008
Clarified behavior
imported>DragoonWraith
(this uses DX scancodes, not control codes)
imported>Speedo
(Clarified behavior)
Line 6: Line 6:
  (keyPressed:bool) OnKeyDown dxScanCode:long
  (keyPressed:bool) OnKeyDown dxScanCode:long


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 once 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==
==Notes==
Anonymous user

Navigation menu