XInputControllerInterface: Fix device connected spam

This commit is contained in:
Connor McLaughlin 2020-11-21 18:58:27 +10:00
parent c375d04bad
commit cb407263ea

View file

@ -158,7 +158,13 @@ void XInputControllerInterface::CheckForStateChanges(u32 index, const XINPUT_STA
void XInputControllerInterface::ClearBindings()
{
m_controllers.fill({});
for (ControllerData& cd : m_controllers)
{
cd.axis_mapping.fill({});
cd.button_mapping.fill({});
cd.axis_button_mapping.fill({});
cd.button_axis_mapping.fill({});
}
}
bool XInputControllerInterface::BindControllerAxis(int controller_index, int axis_number, AxisSide axis_side,