Skip to content

mouse_check_button_released

drewmccluskey edited this page Feb 12, 2019 · 4 revisions

mouse_check_button_released

Returns if a mouse button is released

Syntax:

mouse_check_button_released(button)
Argument Description
MouseButtons button The mouse button being checked if currently released

Returns: bool

Description:

This function is like mouse_check_button() but this will run code only once when you release the mouse button, and not all the steps after of the button not being pressed.

Example:

if (mouse_check_button_released(MouseButtons.mb_left))
{
    room_restart();
}

This code will restart your room when you release the left mouse button.

Back to Mouse

Clone this wiki locally