mouse_sprite(3)
π mouse_sprite(3) π
okay bestie, welcome to the Allegro manual β¨ this one's short and sweet, but it's important, so pay attention π«Ά
πΈ NAME πΈ
mouse_sprite, mouse_x_focus, mouse_y_focus β the global variable that holds the mouse sprite and the focus point, from the Allegro game programming library πβ¨
π SYNOPSIS π
#include <allegro.h>
extern BITMAP *mouse_sprite;
extern int mouse_x_focus;
extern int mouse_y_focus;
π¦ DESCRIPTION π¦
okay so these are global variables and they're holding two things for you: the current mouse sprite and the focus point π that's it, that's the whole job, and they ate π
but listen, and this is the important part β they are read-only π like, do NOT just reach in there and start assigning to them, bestie, that's not the vibe π
the only correct way to change them is through the proper functions:
set_mouse_sprite()β for the sprite itselfset_mouse_sprite_focus()β for the focus point
so if you wanna modify these, you go through those two, periodt. no cap π
π SEE ALSO π
and that's the whole page, gorgeous β¨ go forth and let the library handle your mouse sprite for you, the way it was literally designed to π§π
Allegro, version 4.4.3 β mwah, love u, see u in the next manpage π ππ¦
π¦ where this page comes from
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms