add

add mouse events

virtuosity.inputManager.mouse.add

Methods


Methods

leftDown

add a left mouse button down event

virtuosity.inputManager.mouse.add.leftDown(name, event);


Parameter Type Description
name String unique name of the event
event Function event to run

middleDown

add a middle mouse button down event

virtuosity.inputManager.mouse.add.middleDown(name, event);


Parameter Type Description
name String unique name of the event
event Function event to run

rightDown

add a right mouse button down event

virtuosity.inputManager.mouse.add.rightDown(name, event);


Parameter Type Description
name String unique name of the event
event Function event to run

backDown

add a back mouse button down event

virtuosity.inputManager.mouse.add.backDown(name, event);


Parameter Type Description
name String unique name of the event
event Function event to run

forwardDown

add a forward mouse button down event

virtuosity.inputManager.mouse.add.forwardDown(name, event);


Parameter Type Description
name String unique name of the event
event Function event to run

leftUp

add a left mouse button up event

virtuosity.inputManager.mouse.add.leftUp(name, event);


Parameter Type Description
name String unique name of the event
event Function event to run

middleUp

add a middle mouse button up event

virtuosity.inputManager.mouse.add.middleUp(name, event);


Parameter Type Description
name String unique name of the event
event Function event to run

rightUp

add a right mouse button up event

virtuosity.inputManager.mouse.add.rightUp(name, event);


Parameter Type Description
name String unique name of the event
event Function event to run

backUp

add a back mouse button up event

virtuosity.inputManager.mouse.add.backUp(name, event);


Parameter Type Description
name String unique name of the event
event Function event to run

forwardUp

add a forward mouse button up event

virtuosity.inputManager.mouse.add.forwardUp(name, event);


Parameter Type Description
name String unique name of the event
event Function event to run

scroll

add a scroll event

virtuosity.inputManager.mouse.add.scroll(name, event);


Parameter Type Description
name String unique name of the event
event Function event to run (takes ScrollY, ScrollX as parameters)

mouseMove

add a mouse move event

virtuosity.inputManager.mouse.add.mouseMove(name, event);


Parameter Type Description
name String unique name of the event
event Function event to run