al_set_joystick_mappings_f(3)

al_set_joystick_mappings_f3

Allegro 5 api

Usage

#include <allegro5/allegro.h>
bool al_set_joystick_mappings_f(ALLEGRO_FILE *f)

Overview

Sets the joystick mappings from a file object. This can be called multiple times, adding to and overriding existing mappings. This uses the SDL version 2.0.16 format mappings. This can and typically should be called before calling al_install_joystick.

Since

5.2.11

From allegro 5.2.11.3-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.