add

add keyboard events

virtuosity.inputManager.keyboard.add

Methods


Methods

keyDown

key down event (non-repeated)

virtuosity.inputManager.keyboard.add.keyDown(name, keys, event);


Parameter Type Description
name String unique name of the event
keys String / [String] array of keys that need to be down for the event to run
event Function event to run

keyUp

key up event (non-repeated)

virtuosity.inputManager.keyboard.add.keyUp(name, keys, event);


Parameter Type Description
name String unique name of the event
keys String / [String] array of keys that need to be down for the event to fire
event Function event to run