freeze_mouse_flag(3alleg4)
β¨ freeze_mouse_flag β¨
okay bestie, welcome to the Allegro manual π this one's a tiny little global variable with big main-character energy and honestly? she's iconic for it. it's freeze_mouse_flag, from the Allegro game programming library π
πΈ NAME πΈ
freeze_mouse_flag β the flag that stops your mouse pointer from getting redrawn. yep. that's her whole job. and she does it flawlessly π
(also: Allegro game programming library, obvi π¦)
β SYNOPSIS β
#include <allegro.h>
extern volatile int freeze_mouse_flag;
like. look at her. one extern, one volatile, one int. no notes. π
π DESCRIPTION π
so here's the tea, bestie π β if this flag is set, the mouse pointer won't be redrawn when the mouse moves. that's it. that's the whole vibe. no cap.
and lowkey that's a huge slay, because it means you don't have to hide the pointer every single time you draw to the screen π like, imagine doing that manually every frame. exhausted. not her.
β οΈ but listen, this comes with one lil condition, and it's not optional: you have to make sure your drawing doesn't overlap with the current pointer position. if you draw right on top of where the pointer is chilling, you're gonna have a bad time. so keep your drawing out of her lane, mkay? π«Ά
π¦ SEE ALSO π¦
show_mouse(3alleg4)β the other half of this situationship, go read it too π
and that's the whole page, bestie!! this lil gem came to you from Allegro version 4.4.3 π k bye, go forth and draw 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