get_mouse_mickeys(3alleg4)
π get_mouse_mickeys β bestie, let's talk mouse mickeys π
okay so this is get_mouse_mickeys(3alleg4), a lil function from the Allegro game programming library, and no cap it is lowkey one of the most useful mouse things you'll ever touch πβ¨
β¨ NAME β¨
get_mouse_mickeys β how far the mouse has moved since the last call to this function. Allegro game programming library. that's it, that's the whole vibe π
πΈ SYNOPSIS πΈ
#include <allegro.h>
void get_mouse_mickeys(int *mickeyx, int *mickeyy);
π DESCRIPTION π
so here's the tea, bestie π β this function measures how far the mouse has moved since the last time you called it. literally just the distance traveled, the raw delta, the movement tea β
- the values of
mickeyxandmickeyywill become negative if the mouse is moved left or up, respectively. so left = negative x, up = negative y. easy peasy π¦ - the mouse will keep generating movement mickeys even when it reaches the edge of the screen π so this form of input can be super useful for games that require an infinite range of mouse movement. like first-person shooters? obsessed. it's giving endless runway π β¨
β οΈ but wait β not me having to warn you π β the infinite movement may not work in windowed mode, since under some platforms the mouse would leave the window. and it may not work at all if the hardware cursor is in use. so like, vibe check your setup first, fr fr π
π¦ SEE ALSO π¦
and that's the whole page, bestie π«Ά go forth and track those mickeys, you absolute main character ππ
β written for the Allegro manual, version 4.4.3 π mwah, catch you in the next manpage π β¨
π¦ 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