Gama C Library
Gama C API Documentation
_gmMouse Struct Reference

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

Detailed Description

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.

Examples
/home/engon/gama/gama/lib/gama/mouse.h.

Field Documentation

◆ clicked

uint8_t _gmMouse::clicked

True (1) if the mouse button was just pressed in this frame, otherwise false (0).

Examples
/home/engon/gama/gama/lib/gama/mouse.h.

◆ down

uint8_t _gmMouse::down

True (1) if the mouse button is currently held down, otherwise false (0).

Examples
/home/engon/gama/gama/lib/gama/mouse.h.

◆ lastPosition

gmPos _gmMouse::lastPosition

The X,Y coordinates of the mouse in the previous frame.

Examples
/home/engon/gama/gama/lib/gama/mouse.h.

◆ movement

gmPos _gmMouse::movement

The change in mouse position since the last frame.

Examples
/home/engon/gama/gama/lib/gama/mouse.h.

◆ position

gmPos _gmMouse::position

The current X,Y coordinates of the mouse.

Examples
/home/engon/gama/gama/lib/gama/mouse.h.

The documentation for this struct was generated from the following file: