From c2578d066828145a7abb67c46d912ebdc68ef9d9 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 8 Sep 2014 21:36:04 -0400 Subject: [PATCH] InputCommon: Remove unnecessary breaks in XInput's GetName function --- .../ControllerInterface/XInput/XInput.cpp | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/Source/Core/InputCommon/ControllerInterface/XInput/XInput.cpp b/Source/Core/InputCommon/ControllerInterface/XInput/XInput.cpp index b58c1c81a5..37949e03ac 100644 --- a/Source/Core/InputCommon/ControllerInterface/XInput/XInput.cpp +++ b/Source/Core/InputCommon/ControllerInterface/XInput/XInput.cpp @@ -177,14 +177,22 @@ std::string Device::GetName() const { switch (m_subtype) { - case XINPUT_DEVSUBTYPE_GAMEPAD: return "Gamepad"; break; - case XINPUT_DEVSUBTYPE_WHEEL: return "Wheel"; break; - case XINPUT_DEVSUBTYPE_ARCADE_STICK: return "Arcade Stick"; break; - case XINPUT_DEVSUBTYPE_FLIGHT_STICK: return "Flight Stick"; break; - case XINPUT_DEVSUBTYPE_DANCE_PAD: return "Dance Pad"; break; - case XINPUT_DEVSUBTYPE_GUITAR: return "Guitar"; break; - case XINPUT_DEVSUBTYPE_DRUM_KIT: return "Drum Kit"; break; - default: return "Device"; break; + case XINPUT_DEVSUBTYPE_GAMEPAD: + return "Gamepad"; + case XINPUT_DEVSUBTYPE_WHEEL: + return "Wheel"; + case XINPUT_DEVSUBTYPE_ARCADE_STICK: + return "Arcade Stick"; + case XINPUT_DEVSUBTYPE_FLIGHT_STICK: + return "Flight Stick"; + case XINPUT_DEVSUBTYPE_DANCE_PAD: + return "Dance Pad"; + case XINPUT_DEVSUBTYPE_GUITAR: + return "Guitar"; + case XINPUT_DEVSUBTYPE_DRUM_KIT: + return "Drum Kit"; + default: + return "Device"; } }