From 2f9a886c55d4cf8e82d27b45a2ad97087675f738 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 ee4488a1b1..fd45219a30 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`]