al_set_mouse_xy(3)
π 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