diff options
author | bunnei <bunneidev@gmail.com> | 2020-10-07 23:54:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-07 23:54:05 +0200 |
commit | 92adb69fa7fa21d2f5e078e9473c0ea08e009a71 (patch) | |
tree | f4093ecf2ed67a34a1863a7ce383cb6b577ceda0 /src/core/hle/service/hid/controllers/npad.h | |
parent | Merge pull request #4710 from Morph1984/fix-integrated-updates (diff) | |
parent | hid: Stub HomeButtonInputProtection service commands (diff) | |
download | yuzu-92adb69fa7fa21d2f5e078e9473c0ea08e009a71.tar yuzu-92adb69fa7fa21d2f5e078e9473c0ea08e009a71.tar.gz yuzu-92adb69fa7fa21d2f5e078e9473c0ea08e009a71.tar.bz2 yuzu-92adb69fa7fa21d2f5e078e9473c0ea08e009a71.tar.lz yuzu-92adb69fa7fa21d2f5e078e9473c0ea08e009a71.tar.xz yuzu-92adb69fa7fa21d2f5e078e9473c0ea08e009a71.tar.zst yuzu-92adb69fa7fa21d2f5e078e9473c0ea08e009a71.zip |
Diffstat (limited to 'src/core/hle/service/hid/controllers/npad.h')
-rw-r--r-- | src/core/hle/service/hid/controllers/npad.h | 3 |
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 e65277c7b..fd5c5a6eb 100644 --- a/src/core/hle/service/hid/controllers/npad.h +++ b/src/core/hle/service/hid/controllers/npad.h @@ -146,6 +146,8 @@ public: bool IsSixAxisSensorAtRest() const; void SetSixAxisEnabled(bool six_axis_status); LedPattern GetLedPattern(u32 npad_id); + bool IsUnintendedHomeButtonInputProtectionEnabled(u32 npad_id) const; + void SetUnintendedHomeButtonInputProtectionEnabled(bool is_protection_enabled, u32 npad_id); void SetVibrationEnabled(bool can_vibrate); bool IsVibrationEnabled() const; void ClearAllConnectedControllers(); @@ -387,6 +389,7 @@ private: std::array<Kernel::EventPair, 10> styleset_changed_events; Vibration last_processed_vibration{}; std::array<ControllerHolder, 10> connected_controllers{}; + std::array<bool, 10> unintended_home_button_input_protection{}; GyroscopeZeroDriftMode gyroscope_zero_drift_mode{GyroscopeZeroDriftMode::Standard}; bool can_controllers_vibrate{true}; bool sixaxis_sensors_enabled{true}; |