Read only variable used to check if a mouse button is currently pressed down
mouse_button;
Returns: constant (Left, Right, Middle, mb_none, mb_x1, mb_x2)
constant (Left, Right, Middle, mb_none, mb_x1, mb_x2)
This read-only variable can be used to check if during a step a button is being pressed down by checking the variable by a constant.
if (mouse_button == Left)) { var shoot = 1; }
This code will set var shoot to 1 if the left mouse button is currently held down.
Back to Mouse
There was an error while loading. Please reload this page.