ALLEGRO_GAMEPAD_BUTTON(3)
okay bestie, welcome to ALLEGRO_GAMEPAD_BUTTON(3) straight out of the Library Functions Manual ๐ this is the whole gamepad-button enum situation and we are gonna get you fluent, no cap โจ
๐ธ NAME ๐ธ
ALLEGRO_GAMEPAD_BUTTON โ Allegro 5 API ๐ฎ
๐ฆ SYNOPSIS ๐ฆ
#include <allegro5/allegro.h>
typedef enum ALLEGRO_GAMEPAD_BUTTON
โจ DESCRIPTION โจ
okay so this enum is basically the group chat of gamepad buttons, and every member has a name, so let's meet them ๐
ALLEGRO_GAMEPAD_BUTTON_Aโ the A button ๐ ฐ๏ธ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, also called select sometimes ๐ALLEGRO_GAMEPAD_BUTTON_STARTโ the start button โญALLEGRO_GAMEPAD_BUTTON_GUIDEโ the guide/home button, and heads up bestie: this sometimes is intercepted on the OS level, so do not rely on being able to handle it ๐ญALLEGRO_GAMEPAD_BUTTON_LEFT_THUMBโ the button on the left thumb stick ๐ALLEGRO_GAMEPAD_BUTTON_RIGHT_THUMBโ the button on the right thumb stick ๐
๐ SINCE ๐
5.2.11 โ been iconic since then, periodt โจ
๐ SEE ALSO ๐
[Unstable API]: New API. ๐จ like, it's new, bestie โ treat it accordingly ๐
and that's the whole vibe from the Allegro reference manual โ ALLEGRO_GAMEPAD_BUTTON(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