ALLEGRO_GAMEPAD_BUTTON(3alleg5)

πŸ“¦ version 5.2.11.3, in ubuntu resolute, ubuntu stonking

✨ 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