Skip to content

SDL2: A and B buttons swapped on Switch Pro Controller #1204

Open
@DJtheMan2101

Description

@DJtheMan2101

The current profile for the Nintendo Switch Pro Controller on the SDL2 controller driver (sdl2/Nintendo Switch Pro Controller.cfg) appears to have the inputs for RetroPad-A and RetroPad-B swapped, which can be seen easily enough from Remote RetroPad. The Pro Controller's A (right face) button maps to RetroPad-B (bottom), and Pro Controller-B (bottom) maps to RetroPad-A (right).

The issue does not affect any other buttons, and all the labels are in the correct positions (so only the inputs themselves are swapped). Setting input_a_btn = "0" (instead of 1) and input_b_btn = "1" (instead of 0) fixes the issue.

Tested on macOS Sonoma 14.7.1 with RetroArch 1.19.1 (nightly 3d8c981ac). I first noticed it on a self-compiled Linux build from June 2024. Maybe a recent SDL2 update swapped the button mappings?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions