al_grab_mouse(3)
π NAME π
okay bestie, this is al_grab_mouse(3) from the Library Functions Manual β it's giving Allegro 5 API energy, highkey iconic β¨
al_grab_mouse β Allegro 5 API
β¨ SYNOPSIS β¨
#include <allegro5/allegro.h>
bool al_grab_mouse(ALLEGRO_DISPLAY *display)
π DESCRIPTION π
So like, al_grab_mouse confines the mouse cursor to the given display. The mouse cursor can only be confined to one display at a time β one display, one cursor, no sharing, periodt π
Returns true if successful, otherwise returns false π«Ά
bestie, do not assume that the cursor will remain confined until you call al_ungrab_mouse(3). It may lose the confined status at any time for other reasons π that's a real vibe check warning, fr fr
Note: not yet implemented on Mac OS X. No cap, that's the actual note π
π¦ SEE ALSO π¦
al_ungrab_mouse(3)β the un-grab bestie, obviously π
mwah π this came from the Allegro reference manual β that's the source/version energy at the bottom, and the footer didn't give a date, so I'm not inventing one, periodt β¨
π¦ where this page comes from
- arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms