chore: cleanup the getcontrollertype stuff

This commit is contained in:
2026-09-02 18:58:45 -04:00
parent 0917179043
commit 758549ceca
4 changed files with 30 additions and 39 deletions
+3 -2
View File
@@ -314,14 +314,15 @@ unsigned int CInput::GetGameJoypadMaps(unsigned char ucMap, unsigned char ucActi
return m_JoypadMap[ucMap][ucAction];
}
const char* CInput::GetGamepadType(int iPad)
//str1k3r - renamed to match the Orbis Input lib, why did i rename it cause tism
const char* CInput::GetControllerType(int iPad)
{
if (!m_Joypads[iPad].m_pGamepad)
{
return "UNKNOWN";
}
return GamepadTypeName(SDL_GetGamepadType(m_Joypads[iPad].m_pGamepad));
return GetControllerName(SDL_GetGamepadType(m_Joypads[iPad].m_pGamepad)); // str1k3r - magic we return it :shocked:
}
void CInput::SetJoypadMapVal(int iPad, unsigned char ucMap)