summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/hid/controllers/npad.h
diff options
context:
space:
mode:
authorRodrigo Locatti <rodrigo.locatti@gmail.com>2021-06-22 08:16:21 +0200
committerRodrigo Locatti <rodrigo.locatti@gmail.com>2021-06-22 08:16:21 +0200
commit15cc561d12719ef4e7bfc62701be88526f4869fe (patch)
tree5476a0527b131d64cbde0b477c34fb9282e331b6 /src/core/hle/service/hid/controllers/npad.h
parentMerge pull request #6499 from FernandoS27/we-were-on-a-break (diff)
downloadyuzu-15cc561d12719ef4e7bfc62701be88526f4869fe.tar
yuzu-15cc561d12719ef4e7bfc62701be88526f4869fe.tar.gz
yuzu-15cc561d12719ef4e7bfc62701be88526f4869fe.tar.bz2
yuzu-15cc561d12719ef4e7bfc62701be88526f4869fe.tar.lz
yuzu-15cc561d12719ef4e7bfc62701be88526f4869fe.tar.xz
yuzu-15cc561d12719ef4e7bfc62701be88526f4869fe.tar.zst
yuzu-15cc561d12719ef4e7bfc62701be88526f4869fe.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/hid/controllers/npad.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hle/service/hid/controllers/npad.h b/src/core/hle/service/hid/controllers/npad.h
index c050c9a44..1409d82a2 100644
--- a/src/core/hle/service/hid/controllers/npad.h
+++ b/src/core/hle/service/hid/controllers/npad.h
@@ -6,6 +6,8 @@
#include <array>
#include <atomic>
+#include <mutex>
+
#include "common/bit_field.h"
#include "common/common_types.h"
#include "common/quaternion.h"
@@ -563,6 +565,8 @@ private:
using MotionArray = std::array<
std::array<std::unique_ptr<Input::MotionDevice>, Settings::NativeMotion::NUM_MOTIONS_HID>,
10>;
+
+ std::mutex mutex;
ButtonArray buttons;
StickArray sticks;
VibrationArray vibrations;