al_get_mou...r_position(3)

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

al_get_mou...r_position(3) πŸ’– β€” Library Functions Manual

🌸 NAME 🌸

al_get_mouse_cursor_position β€” Allegro 5 API


✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

bool al_get_mouse_cursor_position(int *ret_x, int *ret_y)

πŸ’… DESCRIPTION πŸ’…

okay bestie, so on platforms where this info is actually available, al_get_mouse_cursor_position returns the global location of the mouse cursor, relative to the desktop. Iconic, but also very specific. πŸ–±οΈβœ¨

bestie, listen: you should not normally use this function. The info isn't useful except for special scenarios, like moving a window. It's giving "niche main character energy" β€” powerful, but only for that one situation. πŸ’€

It returns true on success and false on failure. Simple as that. πŸŽ€


πŸ¦‹ SEE ALSO πŸ¦‹


that's the whole page, bestie πŸ’œ β€” footer vibes: source/version is the Allegro reference manual, and no date is printed here. bye, ily, go move a window or something 🫢✨

πŸ“¦ 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