Gamepad input example doesn't detect buttons, only some axes
- Dominant language
- Rust
- Stars
- 48.2k
- Forks
- 4.8k
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 171
Description
## Bevy version
0.16.0
## What you did
I copied the code from https://github.com/bevyengine/bevy/blob/main/examples/input/gamepad_input_events.rs and ran it locally.
## What went wrong
My joystick (Virpil WarBRD-D (base) and Virpil Alpha Prime(stick)) get detected correctly and 5 out of 6 axes work and print their events. But none of the buttons show anything and the last (6th axis also doesn't do anything)
I also tried the example from gilrs (https://gitlab.com/gilrs-project/gilrs/-/blob/master/gilrs/examples/ev.rs?ref_type=heads) with gilrs version 0.10.10, which works perfectly, all axes and buttons print events there.
I also tested the gamepad viewer in the browser (https://bevyengine.org/examples/tools/gamepad-viewer/), there the axes are mapped differently from when I run that example locally, and in the browser some buttons are detected, but locally they aren't again.
https://hardwaretester.com/gamepad also detects all buttons and axes correctly.
## Additional information
I'm on Linux, Zorin OS 17 (based on Ubuntu).
I have calibrated and configured the joystick under windows, so there shouldn't be an issue with the hardware (also since the gilrs example works)
Contributor guide
Research direction
Start by running examples/input/gamepad_input_events.rs on Linux with the reported Virpil joystick, then compare its output with gilrs' examples/ev.rs. Trace the Bevy gamepad input handling for the missing buttons and sixth axis. Done means the local Bevy example detects and prints all reported buttons and axes consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, rust, ubuntu
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100