1ALLEGRO_MOUSE_STATE(3)                                  ALLEGRO_MOUSE_STATE(3)
2
3
4

NAME

6       ALLEGRO_MOUSE_STATE - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro.h>
10
11              typedef struct ALLEGRO_MOUSE_STATE ALLEGRO_MOUSE_STATE;
12

DESCRIPTION

14       Public fields (read only):
15
16       · x - mouse x position
17
18       · y - mouse y position
19
20       · w, z - mouse wheel position (2D 'ball')
21
22       · buttons - mouse buttons bitfield
23
24         The  zeroth  bit is set if the primary mouse button is held down, the
25         first bit is set if the secondary mouse button is held down,  and  so
26         on.
27
28       · pressure - pressure, ranging from 0.0 to 1.0
29

SEE ALSO

31       al_get_mouse_state(3),     al_get_mouse_state_axis(3),    al_mouse_but‐
32       ton_down(3)
33
34
35
36Allegro reference manual                                ALLEGRO_MOUSE_STATE(3)
Impressum