al_set_mouse_xy(3)

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

πŸŽ€ NAME πŸŽ€

al_set_mouse_xy β€” Allegro 5 API. This is the Library Functions Manual bestie, here to talk about trying to move that mouse cursor. πŸ’…

✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

bool al_set_mouse_xy(ALLEGRO_DISPLAY *display, int x, int y)

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so al_set_mouse_xy tries to position the mouse at the given coordinates on the given display. She takes an ALLEGRO_DISPLAY *display, plus int x and int y.

If the move succeeds, the mouse movement resulting from it will generate an ALLEGRO_EVENT_MOUSE_WARPED(3) event. Cute, right? ✨

And the return vibe check: returns true on success, false on failure. No cap. πŸ’–

🌸 SEE ALSO 🌸


Source/version vibes: this one came from the Allegro reference manual, and its page name is al_set_mouse_xy(3). The original footer didn't include a date, so no fake timestamp here bestie β€” just pure Allegro reference manual energy. 🫢✨

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