Difference between revisions of "Legacy:Functions/Map/Input"

From Spherical
Jump to: navigation, search
(Reformat for new convention)
(Binding scripts to input devices: binding note)
Line 9: Line 9:
  
 
==== Binding scripts to input devices ====
 
==== Binding scripts to input devices ====
 +
'''Note''': Binding a key or joystick button overrides whatever input has already been associated with it via [[API:AttachInput|AttachInput]] or [[API:AttachInputPerson|AttachInputPerson]]!
  
 
* [[API:BindKey|BindKey]](''key'', ''on_key_down'', ''on_key_up''): Bind scripts to key events.
 
* [[API:BindKey|BindKey]](''key'', ''on_key_down'', ''on_key_up''): Bind scripts to key events.

Revision as of 23:54, 1 June 2013

Player input

Binding scripts to input devices

Note: Binding a key or joystick button overrides whatever input has already been associated with it via AttachInput or AttachInputPerson!

  • BindKey(key, on_key_down, on_key_up): Bind scripts to key events.
  • UnbindKey(key): Remove script binding from the given key.