Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

set_mouse_range - Sets the area of the screen restricting mouse movement. Allegro game programming

Description

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

Name

       set_mouse_range  -  Sets  the  area  of  the  screen restricting mouse movement. Allegro game programming
       library.

See Also

install_mouse(3alleg4), set_mouse_speed(3alleg4), position_mouse(3alleg4)

Allegro                                           version 4.4.3                         set_mouse_range(3alleg4)

Synopsis

#include<allegro.h>voidset_mouse_range(intx1,inty1,intx2,inty2);

See Also