The namespace containing functions for the mouse management.
- Source:
Methods
(static) add(obj, type_of_event, function_to_call)
Add a new interaction with an object
- Source:
Parameters:
Name | Type | Description |
---|---|---|
obj |
object
|
The object onto the interaction will be enabled. |
type_of_event |
string
|
Identify the type of interaction. It can be: "pointerdown", "pointerdownoutside", "pointermove", "pointerout", "pointerover", "pointerup", "pointerupoutside", "wheel" |
function_to_call |
function
|
function to call when an event occurred. The function must accept one parameter: the current scene. |
(static) remove_all(obj, type_of_event)
Remove all previous added interactions with an object of a given type of event
- Source:
Parameters:
Name | Type | Description |
---|---|---|
obj |
object
|
The object onto the interactions will be erased. |
type_of_event |
string
|
the type of interaction. It can be: "pointerdown", "pointerdownoutside", "pointermove", "pointerout", "pointerover", "pointerup", "pointerupoutside", "wheel" |