mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
ControllerInterface: Remove unused ClearInputState
This commit is contained in:
@ -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);
|
||||
|
@ -54,8 +54,6 @@ private:
|
||||
public:
|
||||
bool UpdateInput();
|
||||
|
||||
void ClearInputState();
|
||||
|
||||
Joystick(const LPDIRECTINPUTDEVICE8 device, const unsigned int index);
|
||||
~Joystick();
|
||||
|
||||
|
Reference in New Issue
Block a user