al_grab_mouse(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

πŸ’– 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 πŸ¦‹


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