get_mouse_mickeys(3)
π get_mouse_mickeys π
okay bestie, so this one is straight out of the Allegro manual, section 3 β it's called get_mouse_mickeys, and it's giving mouse-tracking realness. πβ¨
β¨ NAME β¨
get_mouse_mickeys β literally just: how far the mouse has moved since the last time you called this function. From the Allegro game programming library, no cap. π
πΈ SYNOPSIS πΈ
#include <allegro.h>
void get_mouse_mickeys(int *mickeyx, int *mickeyy);
π¦ DESCRIPTION π¦
So the whole vibe here is: this function measures how far the mouse has moved since the last time you called it. That's it. That's the gig. π
Here's the tea on the outputs:
- If the mouse went left, then
mickeyxgoes negative. - If the mouse went up, then
mickeyygoes negative.
And here's the part that's genuinely iconic β the mouse keeps generating movement mickeys even when it hits the edge of the screen. It does not stop. It does not care. So if your game needs an infinite range of mouse movement, this form of input is literally built for you. π
β οΈ BUT. Bestie. Listen. That infinite movement may not work in windowed mode, because on some platforms the mouse would just leave the window β bye π β and it also may not work at all if the hardware cursor is in use. So don't come for me when it doesn't behave. π
π SEE ALSO π
and that's the whole page, bestie π«Ά this lil legend ships with Allegro, version 4.4.3, and the page itself goes by get_mouse_mickeys(3). mwah, go track some mickeys. ππΈβ¨
π¦ where this page comes from
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms