1get_mouse_mickeys(3)            Allegro manual            get_mouse_mickeys(3)
2
3
4

NAME

6       get_mouse_mickeys  - How far the mouse has moved since the last call to
7       this function. Allegro game programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       void get_mouse_mickeys(int *mickeyx, int *mickeyy);
14

DESCRIPTION

16       Measures how far the mouse has moved since the last call to this  func‐
17       tion.  The  values  of  mickeyx and mickeyy will become negative if the
18       mouse is moved left or up, respectively. The  mouse  will  continue  to
19       generate  movement mickeys even when it reaches the edge of the screen,
20       so this form of input can be useful for games that require an  infinite
21       range of mouse movement.
22
23       Note  that  the  infinite movement may not work in windowed mode, since
24       under some platforms the mouse would leave the window, and may not work
25       at all if the hardware cursor is in use.
26
27

SEE ALSO

29       install_mouse(3), exmouse(3)
30
31
32
33Allegro                          version 4.4.2            get_mouse_mickeys(3)
Impressum