getMouseDown()
world.input.getMouseDown(button)
Description
Returns true during the frame the user starts pressing down on the mouse button.
Parameters
Property | Type | Description |
---|---|---|
button | number | Button number. |
Mouse Button Keys
Number | Mouse Button |
---|---|
0 | Primary |
1 | Auxillary |
2 | Secondary |
3 | Fourth |
4 | Fifth |
Returns
Boolean.
Example
world.input.getMouseDown(0)