`cargo run --example gamepad_input` not getting `RightTrigger2` on linux
- Dominant language
- Rust
- Stars
- 48.2k
- Forks
- 4.8k
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 161
Description
## What went wrong
`RightTrigger2` input is not logged when trying the `cargo run --example gamepad_input` example on linux. Gampad verified to be working (all axes, triggers, buttons) via https://greggman.github.io/html5-gamepad-test/
## Bevy version
(just pulled `latest`)
```
$ git branch
* latest
main
$ git rev-parse `git branch | cut -d' ' -f2`
83c6ffb73c4a91182cda10141f824987ef3fba2f
```
## Relevant system information
System
```
Release Linux Mint 20.1 Ulyssa 64-bit
Kernel Linux 5.4.0-121-generic x86_64
MATE 1.24.0
```
cargo:
```
$ cargo --version
cargo 1.60.0 (d1fd9fe 2022-03-01)
```
## What you did
Ran `cargo run --example gamepad_input`, and tried pressing all the buttons and wiggling the sticks on the gamepad.
Here are the first several lines of output when I run the example
```
$ cargo run --example gamepad_input
Compiling bevy v0.7.0 (/.../rust/bevy)
Finished dev [unoptimized + debuginfo] target(s) in 28.25s
Running `target/debug/examples/gamepad_input`
2022-07-07T01:56:36.470600Z INFO winit::platform_impl::platform::x11::window: Guessed window scale factor: 1
2022-07-07T01:56:36.589375Z INFO bevy_render::renderer: AdapterInfo { name: "NVIDIA GeForce RTX 2060", vendor: 4318, device: 7944, device_type: DiscreteGpu, backend: Vulkan }
2022-07-07T01:56:38.608285Z INFO gilrs_core::platform::platform::gamepad: Gamepad /dev/input/event5 (Generic X-Box pad) connected.
2022-07-07T01:56:38.614346Z INFO bevy_input::gamepad: Gamepad(0) Connected
2022-07-07T01:56:40.328713Z INFO gamepad_input: Gamepad(0) LeftStickX value is 0.22946167
2022-07-07T01:56:40.345702Z INFO gamepad_input: Gamepad(0) LeftStickX value is 0.24337769
```
Contributor guide
Assessment
This issue has not been assessed yet.