Implement Debug for Gamepads (#5291)

Generally a good idea.

I ran into this because I wanted to store `Gamepads` in a wrapper struct in https://github.com/Leafwing-Studios/leafwing-input-manager/pull/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.
This commit is contained in:
Alice Cecile 2022-07-13 15:10:41 +00:00
parent bb9706c96f
commit 2f9a886c55

View file

@ -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`]