Skip to content

Nintendo Switch Pro controller right stick axes unavailable with gamepad mapping in sim GUI #8598

@auscompgeek

Description

@auscompgeek

Describe the bug

In the simulation GUI, when using a Nintendo Switch Pro controller (including 3rd party Switch Pro controllers) over USB, the robot code cannot read the right stick axes when the gamepad mapping is enabled. This is likely because only 4 axes are available on the Switch Pro controller instead of the 6 that are required by XboxController.

To Reproduce

Steps to reproduce the behavior:

  1. Open simulation GUI
  2. Connect Switch Pro controller to Joystick[0]
  3. Tick "Map gamepad"

Expected behavior

The axes for the right thumb stick can be read.

Screenshots

screenshot

Desktop (please complete the following information):

  • OS: Fedora Linux 42
  • Project Information: robotpy 2025.2.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions