add mouse events
add a left mouse button down event
Parameter | Type | Description |
---|---|---|
name | String | unique name of the event |
event | Function | event to run |
add a middle mouse button down event
Parameter | Type | Description |
---|---|---|
name | String | unique name of the event |
event | Function | event to run |
add a right mouse button down event
Parameter | Type | Description |
---|---|---|
name | String | unique name of the event |
event | Function | event to run |
add a back mouse button down event
Parameter | Type | Description |
---|---|---|
name | String | unique name of the event |
event | Function | event to run |
add a forward mouse button down event
Parameter | Type | Description |
---|---|---|
name | String | unique name of the event |
event | Function | event to run |
add a left mouse button up event
Parameter | Type | Description |
---|---|---|
name | String | unique name of the event |
event | Function | event to run |
add a middle mouse button up event
Parameter | Type | Description |
---|---|---|
name | String | unique name of the event |
event | Function | event to run |
add a right mouse button up event
Parameter | Type | Description |
---|---|---|
name | String | unique name of the event |
event | Function | event to run |
add a back mouse button up event
Parameter | Type | Description |
---|---|---|
name | String | unique name of the event |
event | Function | event to run |
add a forward mouse button up event
Parameter | Type | Description |
---|---|---|
name | String | unique name of the event |
event | Function | event to run |
add a scroll event
Parameter | Type | Description |
---|---|---|
name | String | unique name of the event |
event | Function | event to run (takes ScrollY, ScrollX as parameters) |
add a mouse move event
Parameter | Type | Description |
---|---|---|
name | String | unique name of the event |
event | Function | event to run |