summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/hid/controllers/npad.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-04-10 07:42:23 +0200
committerbunnei <bunneidev@gmail.com>2021-05-06 01:40:51 +0200
commit89edbe8aa20d278d6f2c5ab735163f0d96ff88d2 (patch)
tree568023bd7dbb880730c2cbbcbafe025045fe2f7b /src/core/hle/service/hid/controllers/npad.h
parenthle: kernel: Move slab heap management to KernelCore. (diff)
downloadyuzu-89edbe8aa20d278d6f2c5ab735163f0d96ff88d2.tar
yuzu-89edbe8aa20d278d6f2c5ab735163f0d96ff88d2.tar.gz
yuzu-89edbe8aa20d278d6f2c5ab735163f0d96ff88d2.tar.bz2
yuzu-89edbe8aa20d278d6f2c5ab735163f0d96ff88d2.tar.lz
yuzu-89edbe8aa20d278d6f2c5ab735163f0d96ff88d2.tar.xz
yuzu-89edbe8aa20d278d6f2c5ab735163f0d96ff88d2.tar.zst
yuzu-89edbe8aa20d278d6f2c5ab735163f0d96ff88d2.zip
Diffstat (limited to 'src/core/hle/service/hid/controllers/npad.h')
-rw-r--r--src/core/hle/service/hid/controllers/npad.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/hle/service/hid/controllers/npad.h b/src/core/hle/service/hid/controllers/npad.h
index 515cf7c37..b3de272b6 100644
--- a/src/core/hle/service/hid/controllers/npad.h
+++ b/src/core/hle/service/hid/controllers/npad.h
@@ -573,8 +573,9 @@ private:
NpadHandheldActivationMode handheld_activation_mode{NpadHandheldActivationMode::Dual};
NpadCommunicationMode communication_mode{NpadCommunicationMode::Default};
// Each controller should have their own styleset changed event
- std::array<std::unique_ptr<Kernel::KEvent>, 10> styleset_changed_events;
- std::array<std::array<std::chrono::steady_clock::time_point, 2>, 10> last_vibration_timepoints;
+ std::array<Kernel::KEvent*, 10> styleset_changed_events{};
+ std::array<std::array<std::chrono::steady_clock::time_point, 2>, 10>
+ last_vibration_timepoints{};
std::array<std::array<VibrationValue, 2>, 10> latest_vibration_values{};
bool permit_vibration_session_enabled{false};
std::array<std::array<bool, 2>, 10> vibration_devices_mounted{};