Skip to content

Commit

Permalink
Explain weird design choice
Browse files Browse the repository at this point in the history
  • Loading branch information
alice-i-cecile committed Jul 12, 2022
1 parent 838fd03 commit 4bf286a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/user_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,7 @@ impl<'a> InputStreams<'a> {
UserInput::VirtualDPad { .. } => {
self.get_input_axis_pair(input).unwrap_or_default().length()
}
// This is required because upstream bevy_input still waffles about whether triggers are buttons or axes
UserInput::Single(InputKind::GamepadButton(button_type)) => {
if let Some(button_axes) = self.gamepad_button_axes {
if let Some(gamepad) = self.associated_gamepad {
Expand Down

0 comments on commit 4bf286a

Please sign in to comment.