diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2020-10-22 12:55:23 +0200 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2020-11-16 05:33:20 +0100 |
commit | 978ca65f59f1388358ce0d45de41816e8b0aa887 (patch) | |
tree | 9185157f57f1b1a3900e529ba7a167b36831d11c /src/core/hle/service/hid/controllers/npad.h | |
parent | input_common: Add VibrationDevice and VibrationDeviceFactory (diff) | |
download | yuzu-978ca65f59f1388358ce0d45de41816e8b0aa887.tar yuzu-978ca65f59f1388358ce0d45de41816e8b0aa887.tar.gz yuzu-978ca65f59f1388358ce0d45de41816e8b0aa887.tar.bz2 yuzu-978ca65f59f1388358ce0d45de41816e8b0aa887.tar.lz yuzu-978ca65f59f1388358ce0d45de41816e8b0aa887.tar.xz yuzu-978ca65f59f1388358ce0d45de41816e8b0aa887.tar.zst yuzu-978ca65f59f1388358ce0d45de41816e8b0aa887.zip |
Diffstat (limited to 'src/core/hle/service/hid/controllers/npad.h')
-rw-r--r-- | src/core/hle/service/hid/controllers/npad.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/hle/service/hid/controllers/npad.h b/src/core/hle/service/hid/controllers/npad.h index 3ae9fb8e6..30e3cb02f 100644 --- a/src/core/hle/service/hid/controllers/npad.h +++ b/src/core/hle/service/hid/controllers/npad.h @@ -156,6 +156,12 @@ public: VibrationValue GetLastVibration(const DeviceHandle& vibration_device_handle) const; + void InitializeVibrationDevice(const DeviceHandle& vibration_device_handle); + + void InitializeVibrationDeviceAtIndex(std::size_t npad_index, std::size_t device_index); + + bool IsVibrationDeviceMounted(const DeviceHandle& vibration_device_handle) const; + std::shared_ptr<Kernel::ReadableEvent> GetStyleSetChangedEvent(u32 npad_id) const; void SignalStyleSetChangedEvent(u32 npad_id) const; @@ -416,6 +422,7 @@ private: // Each controller should have their own styleset changed event std::array<Kernel::EventPair, 10> styleset_changed_events; std::array<std::array<VibrationValue, 2>, 10> latest_vibration_values{}; + std::array<std::array<bool, 2>, 10> vibration_devices_mounted{}; std::array<ControllerHolder, 10> connected_controllers{}; std::array<bool, 10> unintended_home_button_input_protection{}; GyroscopeZeroDriftMode gyroscope_zero_drift_mode{GyroscopeZeroDriftMode::Standard}; |