1al_grab_mouse(3) al_grab_mouse(3)
2
3
4
6 al_grab_mouse - Allegro 5 API
7
9 #include <allegro5/allegro.h>
10
11 bool al_grab_mouse(ALLEGRO_DISPLAY *display)
12
14 Confine the mouse cursor to the given display. The mouse cursor can
15 only be confined to one display at a time.
16
17 Returns true if successful, otherwise returns false. Do not assume
18 that the cursor will remain confined until you call al_ungrab_mouse(3).
19 It may lose the confined status at any time for other reasons.
20
21 Note: not yet implemented on Mac OS X.
22
24 al_ungrab_mouse(3)
25
26
27
28Allegro reference manual al_grab_mouse(3)