mouse_sprite(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

πŸ’– 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 itself
  • set_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