mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-26 12:21:39 +00:00
remove hid::GetInputDeviceName() from hid.ccp
Now that SDL_GameControllerName handles Controller naming conventions, the hid.ccp portion of GetInputDeviceName is no longer needed.
This commit is contained in:
parent
c77ce2b359
commit
95d491762f
2 changed files with 0 additions and 57 deletions
|
|
@ -27,59 +27,3 @@ bool hid::IsInputDeviceController()
|
||||||
return hid::g_inputDevice != hid::EInputDevice::Keyboard &&
|
return hid::g_inputDevice != hid::EInputDevice::Keyboard &&
|
||||||
hid::g_inputDevice != hid::EInputDevice::Mouse;
|
hid::g_inputDevice != hid::EInputDevice::Mouse;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string hid::GetInputDeviceName()
|
|
||||||
{
|
|
||||||
switch (g_inputDevice)
|
|
||||||
{
|
|
||||||
case EInputDevice::Keyboard:
|
|
||||||
return "Keyboard";
|
|
||||||
|
|
||||||
case EInputDevice::Mouse:
|
|
||||||
return "Mouse";
|
|
||||||
}
|
|
||||||
|
|
||||||
switch (g_inputDeviceExplicit)
|
|
||||||
{
|
|
||||||
case EInputDeviceExplicit::Xbox360:
|
|
||||||
return "Xbox 360 Controller";
|
|
||||||
|
|
||||||
case EInputDeviceExplicit::XboxOne:
|
|
||||||
return "Xbox Wireless Controller";
|
|
||||||
|
|
||||||
case EInputDeviceExplicit::DualShock3:
|
|
||||||
return "DualShock 3";
|
|
||||||
|
|
||||||
case EInputDeviceExplicit::DualShock4:
|
|
||||||
return "DualShock 4";
|
|
||||||
|
|
||||||
case EInputDeviceExplicit::SwitchPro:
|
|
||||||
return "Nintendo Switch Pro Controller";
|
|
||||||
|
|
||||||
case EInputDeviceExplicit::Virtual:
|
|
||||||
return "Virtual Controller";
|
|
||||||
|
|
||||||
case EInputDeviceExplicit::DualSense:
|
|
||||||
return "DualSense";
|
|
||||||
|
|
||||||
case EInputDeviceExplicit::Luna:
|
|
||||||
return "Amazon Luna Controller";
|
|
||||||
|
|
||||||
case EInputDeviceExplicit::Stadia:
|
|
||||||
return "Google Stadia Controller";
|
|
||||||
|
|
||||||
case EInputDeviceExplicit::NvShield:
|
|
||||||
return "NVIDIA SHIELD Controller";
|
|
||||||
|
|
||||||
case EInputDeviceExplicit::SwitchJCLeft:
|
|
||||||
return "Nintendo Switch Joy-Con (Left)";
|
|
||||||
|
|
||||||
case EInputDeviceExplicit::SwitchJCRight:
|
|
||||||
return "Nintendo Switch Joy-Con (Right)";
|
|
||||||
|
|
||||||
case EInputDeviceExplicit::SwitchJCPair:
|
|
||||||
return "Nintendo Switch Joy-Con (Pair)";
|
|
||||||
}
|
|
||||||
|
|
||||||
return "Unknown";
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -46,5 +46,4 @@ namespace hid
|
||||||
void SetProhibitedInputs(uint16_t wButtons = 0, bool leftStick = false, bool rightStick = false);
|
void SetProhibitedInputs(uint16_t wButtons = 0, bool leftStick = false, bool rightStick = false);
|
||||||
bool IsInputAllowed();
|
bool IsInputAllowed();
|
||||||
bool IsInputDeviceController();
|
bool IsInputDeviceController();
|
||||||
std::string GetInputDeviceName();
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue