mouse_sprite(3alleg4)

✨ mouse_sprite ✨

okay so bestie, welcome to the 3alleg4 manual page for mouse_sprite β€” aka the global variable that's holding your mouse sprite AND your focus point, plus its two little besties mouse_x_focus and mouse_y_focus. it's giving Allegro game programming library realness πŸ¦‹


🌸 SYNOPSIS 🌸

#include <allegro.h>

extern BITMAP *mouse_sprite;

extern int mouse_x_focus;

extern int mouse_y_focus;

πŸ’– DESCRIPTION πŸ’–

so these are global variables, right? and they're holding two things: the current mouse sprite and the focus point. that's it, that's the whole vibe ✨

🚨 IMPORTANT BESTIE MOMENT: these are read-only. do NOT just go in there and start editing them yourself, okay? like, hands off πŸ™ˆ

the only way you're supposed to change them is through the set_mouse_sprite() and set_mouse_sprite_focus() functions. that's the sanctioned route, no cap. use the functions, not the raw variables. periodt πŸ’…


πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole page, bestie, you ate that πŸ“ this was Allegro, version 4.4.3, serving you mouse_sprite(3alleg4) β€” mwah, go forth and move your mouse icon around responsibly πŸŽ€πŸ’œ