Skip to content

Gamepad input example doesn't detect buttons, only some axes #18958

Open
@Blechlawine

Description

@Blechlawine

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-InputPlayer input via keyboard, mouse, gamepad, and moreC-BugAn unexpected or incorrect behaviorS-Needs-InvestigationThis issue requires detective work to figure out what's going wrong

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions