al_get_joystick_type(3)

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

🌸 NAME 🌸

okay so this is al_get_joystick_type(3), straight out of the Library Functions Manual, and it’s giving Allegro 5 API realness, no cap.

  • al_get_joystick_type β€” Allegro 5 API

✨ SYNOPSIS ✨

this is the exact shape of it, bestie:

#include <allegro5/allegro.h>

ALLEGRO_JOYSTICK_TYPE al_get_joystick_type(ALLEGRO_JOYSTICK *joy)

πŸ’… DESCRIPTION πŸ’…

so this function returns the joystick type. that’s the whole vibe. πŸ’–

if the type is ALLEGRO_JOYSTICK_TYPE_GAMEPAD, then you can use ALLEGRO_GAMEPAD_BUTTON(3) and ALLEGRO_GAMEPAD_STICK(3) to interpret the button/stick events and states more easily. iconic, honestly.

joystick types will typically be unknown unless al_set_joystick_mappings(3) is called first. so like… call that first if you want the type to actually mean something, iykyk. 🫢


πŸŽ€ SINCE πŸŽ€

5.2.11 β€” that’s when it showed up, periodt. πŸ’…


πŸ¦‹ SEE ALSO πŸ¦‹

⚠️ [Unstable API]: New API.

signed off by the Allegro reference manual β€” that’s the source/version footer energy β€” and the date isn’t shown in this copy, so no cap, that’s all she wrote for al_get_joystick_type(3). πŸ’–πŸ«Άβœ¨

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