refactor: make controller types enum
This commit is contained in:
@@ -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:
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user