ALLEGRO_GAMEPAD_BUTTON(3alleg5)
β¨ ALLEGRO_GAMEPAD_BUTTON β¨
okay so bestie, welcome to the Allegro 5 API π β this is the page for ALLEGRO_GAMEPAD_BUTTON, aka the little enum that names every single button on a gamepad so you don't have to sit there guessing what number "the squishy one on the left" is. it's giving button catalogue. π
πΈ SYNOPSIS πΈ
#include <allegro5/allegro.h>
typedef enum ALLEGRO_GAMEPAD_BUTTON
like yes, that's it, that's the whole entrance. no cap. β¨
π DESCRIPTION π
so this enum is basically the group chat roster of gamepad buttons π«Ά β every member has a name, and here they all are:
ALLEGRO_GAMEPAD_BUTTON_Aβ the A button π °οΈ (iconic, the main character)ALLEGRO_GAMEPAD_BUTTON_Bβ the B button π ±οΈALLEGRO_GAMEPAD_BUTTON_Xβ the X button βALLEGRO_GAMEPAD_BUTTON_Yβ the Y button π§‘ALLEGRO_GAMEPAD_BUTTON_LEFT_SHOULDERβ the left shoulder button πͺALLEGRO_GAMEPAD_BUTTON_RIGHT_SHOULDERβ the right shoulder button πͺALLEGRO_GAMEPAD_BUTTON_BACKβ the back button (ngl people sometimes call this one select, iykyk)ALLEGRO_GAMEPAD_BUTTON_STARTβ the start button βΆοΈALLEGRO_GAMEPAD_BUTTON_GUIDEβ the guide / home button π (heads up: this one sometimes gets intercepted at the OS level, so do not rely on being able to handle it π fr fr)ALLEGRO_GAMEPAD_BUTTON_LEFT_THUMBβ the button that lives on the left thumb stick πALLEGRO_GAMEPAD_BUTTON_RIGHT_THUMBβ the button that lives on the right thumb stick π
no buttons left behind, periodt. π
β SINCE β
5.2.11 β so she's not ancient, she's just established. π¦
π SEE ALSO π
[Unstable API]: New API. β yep, this one is literally marked unstable, so treat her like a new friend you're still getting to know π. it says new API right there, that's the whole warning, don't come for me.
and that's the page!! π this lil slice of the Allegro reference manual is filed under ALLEGRO_GAMEPAD_BUTTON(3alleg5) in the 3alleg5 section β go press some buttons, bestie, you got this πβ¨π
π¦ where this page comes from
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms