Skip to content

mouse_check_button_released

CryoEagle edited this page Jan 3, 2019 · 4 revisions

mouse_check_button_released

Returns if mouse is released

Syntax:

mouse_check_button_released(button)
Argument Description
button The mouse button to being checked if is released

Returns: bool

Description:

This function is like mouse_check_button() but this will run code only once when you release mouse button.

Example:

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

This code will restart your room when you release mouse.

Back to Mouse

Clone this wiki locally