set_mouse_range(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

✨ NAME ✨

okay so bestie, this is the set_mouse_range(3) page from the Allegro manual. It's the Allegro game programming library, and this function sets the area of the screen restricting mouse movement. πŸ’…

🌸 SYNOPSIS 🌸

#include <allegro.h>

void set_mouse_range(int x1, int y1, int x2, int y2);

πŸ’– DESCRIPTION πŸ’–

So set_mouse_range sets the area of the screen within which the mouse can move. Pass the top left corner and the bottom right corner β€” and yes, those corners are inclusive, no cap. If you don't call this function, the range defaults to (0, 0, SCREEN_W-1, SCREEN_H-1). Periodt. ✨

πŸ¦‹ SEE ALSO πŸ¦‹

Go give these pages a lil kiss too:


mwah πŸ’– that's the whole thing, bestie. This was set_mouse_range(3) from Allegro, version 4.4.3. Stay iconic, protect your mouse range, and don't let the cursor wander into the void. πŸŽ€βœ¨

πŸ“¦ where this page comes from