1ALLEGRO_MOUSE_STATE(3)     Library Functions Manual     ALLEGRO_MOUSE_STATE(3)
2
3
4

NAME

6       ALLEGRO_MOUSE_STATE
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 on.
26

SEE ALSO

28       al_get_mouse_state(3),    al_get_mouse_state_axis(3),     al_mouse_but‐
29       ton_down(3)
30
31
32
33Allegro reference manual                                ALLEGRO_MOUSE_STATE(3)
Impressum