---
name: "al_set_joystick_mappings_f"
section: "3"
platform: "linux"
package: "allegro"
version: "5.2.11.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/al_set_joystick_mappings_f"
---

# al\_set\_joystick\_mappings\_f(3)

Allegro 5 API

## NAME

al\_set\_joystick\_mappings\_f - Allegro 5 API

## SYNOPSIS

-

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

## DESCRIPTION

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

## SEE ALSO

[al\_set\_joystick\_mappings\_f(3)](/al_set_joystick_mappings_f/3.md)

*\[Unstable API\]:* New API.
