XInputControllerInterface: Fix device connected spam

This commit is contained in:
Connor McLaughlin 2020-11-21 18:58:27 +10:00
parent c375d04bad
commit cb407263ea
1 changed files with 7 additions and 1 deletions

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,