new _Mouse()
Look at the Input reference pages before reading these docs.
Used to create the `mouse` input object.
Extends
Classes
Members
cursor :string
The mouse's CSS cursor style.
Type:
-
string
visible :boolean
Controls whether the mouse is visible or not.
Type:
-
boolean
Methods
dragged(inp) → {boolean}
Parameters:
Name | Type | Description |
---|---|---|
inp |
string
|
Returns:
- Type:
-
boolean
true on the first frame that the user releases the input after dragging the mouse
dragging(inp) → {number}
Parameters:
Name | Type | Description |
---|---|---|
inp |
string
|
Returns:
- Type:
-
number
the amount of frames the user has been moving the mouse while pressing the input