DISABLE_HARDWARE_CURSOR(3alleg4)
β¨ disable_hardware_cursor β¨
okay so bestie, this one lives in the Allegro manual β section 3alleg4, if you're keeping track π
β and it's part of the Allegro game programming library. yes, that Allegro. the game dev one. iconic behavior fr.
πΈ NAME πΈ
disable_hardware_cursor β Disables the OS hardware cursor. Allegro game programming library.
π SYNOPSIS π
#include <allegro.h>
void disable_hardware_cursor(void);
no args, no return value, just vibes π¦
π DESCRIPTION π
okay so here's the tea β β the moment you call this function, Allegro takes over and Allegro becomes the one responsible for drawing the mouse cursor, instead of the operating system. you're basically telling the OS "thanks bestie, I'll handle this one" π and handing the cursor-drawing duties straight to Allegro.
and like, this actually matters, because on some platforms calling enable_hardware_cursor() makes the return values of get_mouse_mickeys() unreliable. π not a cute look. but the second you call this function, get_mouse_mickeys() goes back to returning reliable results again. slay. problem solved. main character energy restored π
ngl if your mickeys are acting sus, this is probably why π«Ά
π SEE ALSO π
install_mouse(3alleg4)show_mouse(3alleg4)set_mouse_sprite(3alleg4)get_mouse_mickeys(3alleg4)gfx_capabilities(3alleg4)enable_hardware_cursor(3alleg4)
go read those too, they're all part of the same little mouse-cursor friend group π
and that's a wrap, bestie β¨ this page is from Allegro version 4.4.3 β mwah, no cap, periodt π π
π¦ 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