Difference between revisions of "OnKeyDown"
Jump to navigation
Jump to search
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 | 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== |