summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/hid/controllers/npad.h
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2020-11-10 18:09:44 +0100
committerMorph <39850852+Morph1984@users.noreply.github.com>2020-11-16 05:33:21 +0100
commitad502093835868d5d3ae43caa9faa28c8cb621f2 (patch)
tree7ca07f49137e7962396ceffa55b973d567c438f0 /src/core/hle/service/hid/controllers/npad.h
parentcontrollers/npad: Load input devices on init (diff)
downloadyuzu-ad502093835868d5d3ae43caa9faa28c8cb621f2.tar
yuzu-ad502093835868d5d3ae43caa9faa28c8cb621f2.tar.gz
yuzu-ad502093835868d5d3ae43caa9faa28c8cb621f2.tar.bz2
yuzu-ad502093835868d5d3ae43caa9faa28c8cb621f2.tar.lz
yuzu-ad502093835868d5d3ae43caa9faa28c8cb621f2.tar.xz
yuzu-ad502093835868d5d3ae43caa9faa28c8cb621f2.tar.zst
yuzu-ad502093835868d5d3ae43caa9faa28c8cb621f2.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/hid/controllers/npad.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/hle/service/hid/controllers/npad.h b/src/core/hle/service/hid/controllers/npad.h
index 99384524b..160dcbbe3 100644
--- a/src/core/hle/service/hid/controllers/npad.h
+++ b/src/core/hle/service/hid/controllers/npad.h
@@ -163,6 +163,8 @@ public:
void InitializeVibrationDeviceAtIndex(std::size_t npad_index, std::size_t device_index);
+ void SetPermitVibrationSession(bool permit_vibration_session);
+
bool IsVibrationDeviceMounted(const DeviceHandle& vibration_device_handle) const;
std::shared_ptr<Kernel::ReadableEvent> GetStyleSetChangedEvent(u32 npad_id) const;
@@ -426,6 +428,7 @@ private:
std::array<Kernel::EventPair, 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{};
std::array<ControllerHolder, 10> connected_controllers{};
std::array<bool, 10> unintended_home_button_input_protection{};