NYGACN Fightstick recognized as multiple inputs

Open
#15,533 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
linux

Research direction

Start by reproducing the issue on Batocera build 41-20250106 and use evtest to inspect the four SHANWAN input devices listed in the report. Compare which controls appear on each device and investigate how Batocera identifies this fightstick; done means it is recognized in a usable controller mode, with its joystick and buttons available as expected.

Written by the indexing model from the issue text.

Description

Batocera build version

41-20250106

Your architecture

X86_64 LENOVO LAPTOP

Your Graphic Processor Unit(s) (GPU)

iGPU

Issue description

Connecting fightstick results in the following popup:
SHANWAN Android Gamepad Connected
And evtest lists 4 different SHANWAN devices (when device is plugged in)

/dev/input/event12:     SHANWAN Android Gamepad
/dev/input/event13:     SHANWAN Android Gamepad System Control
/dev/input/event14:     SHANWAN Android Gamepad Consumer Control
/dev/input/event15:     SHANWAN Android Gamepad Keyboard

Joystick and buttons start and clear will be registered as part of a keyboard, while rest of the buttons are part of the gamepad.

This same fightstick, when connected to windows, has a functional MODE button, allowing a switch between xbox 360 controller and PS3/PC controller.

At some point I remember seeing a different popup (~PS/PC gamepad connected) and the fightstick was working perfectly. So batocera is capable of recognizing the device correctly, but since then I reinstalled batocera and I can't get it to work again, I don't think I did anything special that time I got it to work, I remember finding it strange it's a different message but I remapped it, played a bit then continued tinkering, reinstalled batocera later etc.

Image
Details of any attempts to fix this yourself

I tried many different button combinations to try switching input mode from the fightstick, as well as many different options within batocera, but nothing worked.

Dominant language
Python
Stars
3.2k
Forks
748
Avg merge
9h 51m
Merged PRs (30d)
170

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from batocera-linux/batocera.linux

All issues in batocera-linux/batocera.linux

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.