From 398ea523c04e0c4540ee148af94294a4d12c5f2b Mon Sep 17 00:00:00 2001 From: Alice Cecile Date: Wed, 13 Jul 2022 15:10:41 +0000 Subject: [PATCH] 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. --- crates/bevy_input/src/gamepad.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_input/src/gamepad.rs b/crates/bevy_input/src/gamepad.rs index ee4488a1b1c43..fd45219a30614 100644 --- a/crates/bevy_input/src/gamepad.rs +++ b/crates/bevy_input/src/gamepad.rs @@ -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`]