refactor: make controller types enum

This commit is contained in:
str1k3r committed 2026-09-05 09:13:37 -04:00
1 parent 758549ceca
commit e1fd02765a
4 files changed
+31 -22

No files matched your search

+1 -6
View File
@@ -315,13 +315,8 @@ unsigned int CInput::GetGameJoypadMaps(unsigned char ucMap, unsigned char ucActi
}
//str1k3r - renamed to match the Orbis Input lib, why did i rename it cause tism
const char* CInput::GetControllerType(int iPad)
EControllerType CInput::GetControllerType(int iPad)
{
if (!m_Joypads[iPad].m_pGamepad)
{
return "UNKNOWN";
}
return GetControllerName(SDL_GetGamepadType(m_Joypads[iPad].m_pGamepad)); // str1k3r - magic we return it :shocked:
}