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

NAME

6       set_mouse_range  -  Sets the area of the screen restricting mouse move‐
7       ment. Allegro game programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       void set_mouse_range(int x1, int y1, int x2, int y2);
14

DESCRIPTION

16       Sets the area of the screen within which the mouse can move.  Pass  the
17       top  left  corner and the bottom right corner (inclusive). If you don't
18       call  this  function  the  range  defaults  to   (0,   0,   SCREEN_W-1,
19       SCREEN_H-1).
20
21

SEE ALSO

23       install_mouse(3), set_mouse_speed(3), position_mouse(3)
24
25
26
27Allegro                          version 4.2.2              set_mouse_range(3)
Impressum