mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-11 00:29:11 +01:00
InputCommon: Remove unnecessary breaks in XInput's GetName function
This commit is contained in:
parent
859f86ac2d
commit
c2578d0668
@ -177,14 +177,22 @@ std::string Device::GetName() const
|
|||||||
{
|
{
|
||||||
switch (m_subtype)
|
switch (m_subtype)
|
||||||
{
|
{
|
||||||
case XINPUT_DEVSUBTYPE_GAMEPAD: return "Gamepad"; break;
|
case XINPUT_DEVSUBTYPE_GAMEPAD:
|
||||||
case XINPUT_DEVSUBTYPE_WHEEL: return "Wheel"; break;
|
return "Gamepad";
|
||||||
case XINPUT_DEVSUBTYPE_ARCADE_STICK: return "Arcade Stick"; break;
|
case XINPUT_DEVSUBTYPE_WHEEL:
|
||||||
case XINPUT_DEVSUBTYPE_FLIGHT_STICK: return "Flight Stick"; break;
|
return "Wheel";
|
||||||
case XINPUT_DEVSUBTYPE_DANCE_PAD: return "Dance Pad"; break;
|
case XINPUT_DEVSUBTYPE_ARCADE_STICK:
|
||||||
case XINPUT_DEVSUBTYPE_GUITAR: return "Guitar"; break;
|
return "Arcade Stick";
|
||||||
case XINPUT_DEVSUBTYPE_DRUM_KIT: return "Drum Kit"; break;
|
case XINPUT_DEVSUBTYPE_FLIGHT_STICK:
|
||||||
default: return "Device"; break;
|
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";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user