al_set_mouse_xy(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ NAME ✨

okay so bestie, this is the manual page for al_set_mouse_xy β€” it's part of the Allegro 5 API, from the Allegro reference manual, and the page itself is titled al_set_mouse_xy(3alleg5). Basically: we're moving the mouse cursor with code. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <allegro5/allegro.h>

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

πŸ’… DESCRIPTION πŸ’…

So the whole vibe is: try to position the mouse at the coordinates you pass in (x, y) on the display you pass in (display). That's it, that's the function. πŸ–±οΈβœ¨

If the move actually works, the mouse movement it causes will generate an ALLEGRO_EVENT_MOUSE_WARPED(3alleg5) event. The way that works? You move the mouse, Allegro tells you it got warped. Iconic.

It returns true on success and false on failure. No cap.


πŸ”₯ SEE ALSO πŸ”₯


okay bestie, that's the whole page. This came from the Allegro reference manual, and the page is al_set_mouse_xy(3alleg5) β€” the footer didn't give us a date, just that source/version energy, so we're keeping it cute and minimal. bye bestie, go move that mouse πŸ’–πŸ¦‹πŸŽ€

πŸ“¦ where this page comes from