Skip to content

Commit

Permalink
Implement Debug for Gamepads (#5291)
Browse files Browse the repository at this point in the history
Generally a good idea.

I ran into this because I wanted to store `Gamepads` in a wrapper struct in Leafwing-Studios/leafwing-input-manager#168. 

This PR allows the `Debug` derive used there to continue working. I could workaround this with a custom impl, but a PR upstream seemed like the right fix.
  • Loading branch information
alice-i-cecile committed Jul 13, 2022
1 parent e2bd690 commit cf77d1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_input/src/gamepad.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ impl Gamepad {
}
}

#[derive(Default)]
#[derive(Default, Debug)]
/// Container of unique connected [`Gamepad`]s
///
/// [`Gamepad`]s are registered and deregistered in [`gamepad_connection_system`]
Expand Down

0 comments on commit cf77d1e

Please sign in to comment.