-
-
Notifications
You must be signed in to change notification settings - Fork 18
mouse_check_button
drewmccluskey edited this page Feb 12, 2019
·
4 revisions
Returns if a mouse button is currently being pressed and held down
mouse_check_button(button)
Argument | Description |
---|---|
MouseButtons button |
The mouse button to being checked if is held down |
Returns: bool
This function will check if a mouse button is being held down, it will return true
or false
. It is useful for many features such as shooting, clicking, dragging, etc.
if (mouse_check_button(MouseButtons.mb_left))
{
score++;
}
This code increases the score every step that you hold down the left mouse button.
Back to Mouse