Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

AltStyle によって変換されたページ (->オリジナル) /