scare_mouse_area
Helper for hiding the mouse cursor before drawing in an area. Allegro game programming library.
- Provided by: allegro4-doc (Version: 2:4.4.3.1-4.1build3)
- Source: allegro4.4
- Report a bug
Helper for hiding the mouse cursor before drawing in an area. Allegro game programming library.
#include <allegro.h>
void scare_mouse_area(int x, int y, int w, int h);
Like scare_mouse(), but will only hide the cursor if it is inside the specified rectangle. Otherwise the cursor will simply be frozen in place until you call unscare_mouse(), so it cannot interfere with your drawing.
unscare_mouse(3alleg4), scare_mouse(3alleg4), show_mouse(3alleg4)