ControllerInterface: Remove unused ClearInputState

This commit is contained in:
Jasper St. Pierre
2014-11-13 00:56:32 -08:00
parent 367a42dcfd
commit 61fcfc4bf2
7 changed files with 3 additions and 36 deletions

View File

@ -149,7 +149,9 @@ Joystick::Joystick( /*const LPCDIDEVICEINSTANCE lpddi, */const LPDIRECTINPUTDEVI
InitForceFeedback(m_device, (int)objects.size());
}
ClearInputState();
ZeroMemory(&m_state_in, sizeof(m_state_in));
// set hats to center
memset(m_state_in.rgdwPOV, 0xFF, sizeof(m_state_in.rgdwPOV));
}
Joystick::~Joystick()
@ -158,13 +160,6 @@ Joystick::~Joystick()
m_device->Release();
}
void Joystick::ClearInputState()
{
ZeroMemory(&m_state_in, sizeof(m_state_in));
// set hats to center
memset(m_state_in.rgdwPOV, 0xFF, sizeof(m_state_in.rgdwPOV));
}
std::string Joystick::GetName() const
{
return GetDeviceName(m_device);