Skip to content

Commit

Permalink
Implement Debug for Gamepads (bevyengine#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 authored and inodentry committed Aug 8, 2022
1 parent f736844 commit 398ea52
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 398ea52

Please sign in to comment.