input: use std::array for sticks, sensors and motors

We always have the same amount of those.
So using a vector has always been a bit confusing.
This commit is contained in:
Megamouse 2024-10-15 00:53:07 +02:00
parent c882f0baf0
commit 7b92cbcb9a
5 changed files with 39 additions and 46 deletions

View file

@ -212,11 +212,8 @@ void pad_thread::SetRumble(const u32 pad, u8 large_motor, bool small_motor)
if (pad >= m_pads.size())
return;
if (m_pads[pad]->m_vibrateMotors.size() >= 2)
{
m_pads[pad]->m_vibrateMotors[0].m_value = large_motor;
m_pads[pad]->m_vibrateMotors[1].m_value = small_motor ? 255 : 0;
}
m_pads[pad]->m_vibrateMotors[0].m_value = large_motor;
m_pads[pad]->m_vibrateMotors[1].m_value = small_motor ? 255 : 0;
}
void pad_thread::SetIntercepted(bool intercepted)