mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 15:19:09 +00:00
ControllerInterface: Remove unused ClearInputState
This commit is contained in:
parent
367a42dcfd
commit
61fcfc4bf2
7 changed files with 3 additions and 36 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue