mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
InputCommon: Make Wiimote rumble variable thread safe
This commit is contained in:
@ -5,6 +5,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
#include <atomic>
|
||||
#include <chrono>
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
@ -262,7 +263,7 @@ private:
|
||||
bool m_rumble = false;
|
||||
|
||||
// For pulse of rumble motor to simulate multiple levels.
|
||||
ControlState m_rumble_level = 0;
|
||||
std::atomic<ControlState> m_rumble_level;
|
||||
Clock::time_point m_last_rumble_change = Clock::now();
|
||||
|
||||
// Assume mode is disabled so one gets set.
|
||||
|
Reference in New Issue
Block a user