scare_mouse(3alleg4)
β¨ scare_mouse β¨
okay bestie, gather round, because this one is a lil function in the Allegro game programming library and it is literally here to save your eyeballs from a flickering mouse cursor π
πΈ NAME πΈ
scare_mouse β the helper that hides the mouse pointer before you draw, no cap. Part of the Allegro game programming library, bestie π
π¦ SYNOPSIS π¦
#include <allegro.h>
void scare_mouse();
π DESCRIPTION π
So here's the vibe: scare_mouse is the helper you call to hide the mouse pointer before you do a drawing operation. Iconic behaviour, honestly.
The way it works is that it will temporarily get rid of the pointer for you β but only if that is really required. Like, it's not out here doing extra work for no reason. The conditions where it actually bothers are:
- the mouse is visible, and
- it's displayed on the physical screen rather than some other memory surface, and
- it is not a hardware or OS cursor.
If all of that lines up, boom, pointer gone. And the previous mouse state gets stored away so that your later calls to unscare_mouse() can bring everything right back. Periodt. π«Ά
π not me warning you: this is temporary hiding only. It's saving state for unscare_mouse(), so don't be out here thinking the pointer is gone-gone forever.
π SEE ALSO π
unscare_mouse(3alleg4)β the one who puts it all back π§scare_mouse_area(3alleg4)β the area-specific sibling πshow_mouse(3alleg4)β the classic pointer-enabler β
and that's the whole page, bestie!! π this lil writeup lives in the Allegro manual, version 4.4.3 β slay, mwah, go hide some pointers ππ
π¦ 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