bevyengine / bevy

A refreshingly simple data-driven game engine built in Rust
https://bevyengine.org
Apache License 2.0
36.15k stars 3.57k forks source link

Sending a `GamepadButtonChangedEvent` but `Axis<GamepadButton>` is not changed #13195

Open Shute052 opened 6 months ago

Shute052 commented 6 months ago

Bevy version

What you did

Sending a GamepadButtonChangedEvent to modify the state of Axis<GamepadButton>.

What went wrong

Nothing changed.

s-puig commented 6 months ago

I fixed this in #12770.

An easy fix would be writing them back (bypassing change detection) in gamepad_button_event_system

IMO, regardless of this bug, bevy_gilrs should be changed to send raw events and let bevy_input handle the filtering.