ALLEGRO_MOUSE_STATE(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

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 position
  • y β€” mouse y position
  • w, z β€” mouse wheel position (2D ball)
  • 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 from 0.0 to 1.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