CommonHostInterface: Throttle rumble updates to changes or every 100ms

These updates appear to be synchronous, and limit how fast we can fast
forward when controllers are connected via bluetooth.
This commit is contained in:
Connor McLaughlin
2021-01-19 00:27:33 +10:00
parent d4f52f1ec7
commit cbee8fab66
2 changed files with 26 additions and 2 deletions

View File

@ -396,6 +396,7 @@ private:
u32 num_motors;
std::array<float, MAX_MOTORS> last_strength;
ControllerRumbleCallback update_callback;
u64 last_update_time;
};
std::vector<ControllerRumbleState> m_controller_vibration_motors;