logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

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