|
Gama C Library
Gama C API Documentation
|
Structure representing the current state of the mouse. More...
#include <mouse.h>
Data Fields | |
| gmPos | position |
| gmPos | lastPosition |
| gmPos | movement |
| uint8_t | clicked |
| uint8_t | down |
Structure representing the current state of the mouse.
This struct holds various properties related to mouse input, including its position, movement, and button click states.
| uint8_t _gmMouse::clicked |
True (1) if the mouse button was just pressed in this frame, otherwise false (0).
| uint8_t _gmMouse::down |
True (1) if the mouse button is currently held down, otherwise false (0).
| gmPos _gmMouse::lastPosition |
The X,Y coordinates of the mouse in the previous frame.
| gmPos _gmMouse::movement |
The change in mouse position since the last frame.
| gmPos _gmMouse::position |
The current X,Y coordinates of the mouse.