mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-02-18 11:55:38 +00:00
XInputControllerInterface: Fix device connected spam
This commit is contained in:
parent
c375d04bad
commit
cb407263ea
|
@ -158,7 +158,13 @@ void XInputControllerInterface::CheckForStateChanges(u32 index, const XINPUT_STA
|
||||||
|
|
||||||
void XInputControllerInterface::ClearBindings()
|
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,
|
bool XInputControllerInterface::BindControllerAxis(int controller_index, int axis_number, AxisSide axis_side,
|
||||||
|
|
Loading…
Reference in a new issue