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 ππ
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms