.\" Automatically generated by Pandoc 3.6.1 .\" .TH "al_get_joystick_type" "3" "" "Allegro reference manual" .SH NAME al_get_joystick_type \- Allegro 5 API .SH SYNOPSIS .IP .EX #include \f[B]\f[R] ALLEGRO_JOYSTICK_TYPE al_get_joystick_type(ALLEGRO_JOYSTICK *joy) .EE .SH DESCRIPTION Returns the joystick type. If the type is \f[CR]ALLEGRO_JOYSTICK_TYPE_GAMEPAD\f[R], then you can use the ALLEGRO_GAMEPAD_BUTTON(3) and ALLEGRO_GAMEPAD_STICK(3) to interpret the button/stick events and states more easily. Joystick types will typically be unknown unless al_set_joystick_mappings(3) is called first. .SH SINCE 5.2.11 .SH SEE ALSO al_set_joystick_mappings(3), ALLEGRO_JOYSTICK_TYPE(3) .RS .PP \f[I][Unstable API]:\f[R] New API. .RE