Record ALLEGRO_MOUSE_STATE

Hierarchy
Methods
Properties

Unit

Declaration

type ALLEGRO_MOUSE_STATE = record

Description

Stores mouse state. Fields are read-only.

See also
al_get_mouse_state
Saves the state of the mouse specified at the time the function is called into ret_state.
al_get_mouse_state_axis
Extracts the mouse axis value from the saved state.
al_mouse_button_down
Returns True if the mouse button specified was held down in the state specified.

Overview

Fields

x: AL_INT;
y: AL_INT;
z: AL_INT;
w: AL_INT;
buttons: AL_INT;
pressure: AL_FLOAT;
display: ALLEGRO_DISPLAYptr;

Description

Fields

x: AL_INT;

Mouse X position.

y: AL_INT;

Mouse Y position.

z: AL_INT;

Mouse weel position (2D ball).

w: AL_INT;

Mouse weel position (2D ball).

buttons: AL_INT;

Mouse buttons bitfield. The zeroth bit is set if the primary mouse button is held down, the first bit is set if the secondary mouse button is held down, and so on.

pressure: AL_FLOAT;

Pressure, ranging from 0.0 to 1.0.

display: ALLEGRO_DISPLAYptr;

Pointer to the display.


Generated by PasDoc 0.15.0. Generated on 2024-11-10 15:15:06.