al_mouse_button_down(3)

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

okay bestie, you’re reading the Library Functions Manual entry for al_mouse_button_down(3) β€” and yes, this is the Allegro 5 API glow-up πŸ’…βœ¨

✨ NAME ✨

al_mouse_button_down β€” Allegro 5 API, and it’s literally here to check a mouse button for you πŸ–±οΈπŸ’–

πŸŽ€ SYNOPSIS πŸŽ€

#include <allegro5/allegro.h>

bool al_mouse_button_down(const ALLEGRO_MOUSE_STATE *state, int button)

πŸ’– DESCRIPTION πŸ’–

So here’s the vibe: this function returns true if the mouse button you specified was held down in the state you specified. No cap, that’s the whole main-character job. πŸ‘‘

Unlike most things, the first mouse button is numbered 1 β€” yes, 1, not 0, bestie. As a convenience, the constants ALLEGRO_MOUSE_BUTTON_LEFT, ALLEGRO_MOUSE_BUTTON_RIGHT, and ALLEGRO_MOUSE_BUTTON_MIDDLE are provided. πŸŽ€

But heads up: depending on the hardware, there may be more or fewer mouse buttons. If you want to be sure, you can check al_get_mouse_num_buttons(3) β€” she’ll tell you what’s actually there πŸ¦‹

πŸ¦‹ SEE ALSO πŸ¦‹


From the Allegro reference manual β€” al_mouse_button_down(3), signing off πŸ’–πŸ’…

πŸ“¦ 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