ALLEGRO_MOUSE_STATE(3)
ALLEGRO_MOUSE_STATE(3) π
okay so this one is from the Library Functions Manual, and itβs the Allegro 5 API page, bestie β weβre talking about the mouse state struct and itβs lowkey iconic π¦
β¨ NAME β¨
ALLEGRO_MOUSE_STATE β Allegro 5 API
π SYNOPSIS π
drop this in and youβre so set:
#include <allegro5/allegro.h>
typedef struct ALLEGRO_MOUSE_STATE ALLEGRO_MOUSE_STATE;
πΈ DESCRIPTION πΈ
okay so the tea is Public fields (read only): β like, theyβre public but read only, so admire from afar bestie β¨
xβ mouse x positionyβ mouse y positionw,zβ mouse wheel position (2Dball)displayβ the display the mouse is on (coordinates are relative to this)buttonsβ mouse buttons bitfield
the zeroth bit is set if the primary mouse button is held down, the first bit is set if the secondary mouse button is held down, and so on.
pressureβ pressure, ranging from0.0to1.0
periodt, thatβs the whole struct tea βπ
π¦ SEE ALSO π¦
thatβs it, bestie β mwah π from the Allegro reference manual, page ALLEGRO_MOUSE_STATE(3), and ngl thereβs no separate date printed on this footer, so weβre just keeping it cute and accurate ππ«Ά
π¦ where this page comes from
- arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms