|
||
The mouseFor mouse interaction, the following variables and functions exist:
mouse_x* X-coordinate of the mouse in the room. Cannot be changed. To check whether a particular mouse button is pressed you can use the following functions. This is in particular useful when multiple keys are pressed simultaneously.
mouse_check_button(numb) Returns whether the mouse button is currently down (use as values mb_none, mb_left, mb_middle, or mb_right). There are some additional functions related to mouse interaction.
mouse_clear(button) Clears the state of the mouse button. This means that it will no longer generate mouse events until the player releases it and presses it again. You can change the way the mouse cursor looks like. You can choose any sprite for this. To this end you can use the following variable:
cursor_sprite Indicates the sprite that is used to represent the cursor (default no sprite is used, represented by a value of -1). You can assign one of the sprites to this variable to have it been drawn automatically at the position of the mouse cursor. (You can also switch off the windows mouse cursor in the Global Game Settings.) « The keyboard | The joystick » |
||
|
||
|
You can also read this manual on one single long page (± 1.5 mb)
Also available in: ![]() Download helpfile
|
||





