diff options
| author | 2023-06-29 10:01:19 -0400 | |
|---|---|---|
| committer | 2023-06-29 10:01:19 -0400 | |
| commit | 4c705db73edfa3c7210eb5821b3f4e5324d642d1 (patch) | |
| tree | 470116d2d52b3a74ad0cd761304f0f65386af708 /src/input_common/helpers/joycon_protocol/rumble.h | |
| parent | Merge pull request #10946 from goldenx86/amdBlending (diff) | |
| parent | input_common: Allow timeouts to happen while scanning for a ring (diff) | |
| download | yuzu-4c705db73edfa3c7210eb5821b3f4e5324d642d1.tar.gz yuzu-4c705db73edfa3c7210eb5821b3f4e5324d642d1.tar.xz yuzu-4c705db73edfa3c7210eb5821b3f4e5324d642d1.zip | |
Merge pull request #10937 from german77/ring
input_common: Remove duplicated enum and fix ring detection
Diffstat (limited to 'src/input_common/helpers/joycon_protocol/rumble.h')
| -rw-r--r-- | src/input_common/helpers/joycon_protocol/rumble.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/input_common/helpers/joycon_protocol/rumble.h b/src/input_common/helpers/joycon_protocol/rumble.h index 6c12b7925..5e50e531a 100644 --- a/src/input_common/helpers/joycon_protocol/rumble.h +++ b/src/input_common/helpers/joycon_protocol/rumble.h | |||
| @@ -13,15 +13,19 @@ | |||
| 13 | #include "input_common/helpers/joycon_protocol/common_protocol.h" | 13 | #include "input_common/helpers/joycon_protocol/common_protocol.h" |
| 14 | #include "input_common/helpers/joycon_protocol/joycon_types.h" | 14 | #include "input_common/helpers/joycon_protocol/joycon_types.h" |
| 15 | 15 | ||
| 16 | namespace Common::Input { | ||
| 17 | enum class DriverResult; | ||
| 18 | } | ||
| 19 | |||
| 16 | namespace InputCommon::Joycon { | 20 | namespace InputCommon::Joycon { |
| 17 | 21 | ||
| 18 | class RumbleProtocol final : private JoyconCommonProtocol { | 22 | class RumbleProtocol final : private JoyconCommonProtocol { |
| 19 | public: | 23 | public: |
| 20 | explicit RumbleProtocol(std::shared_ptr<JoyconHandle> handle); | 24 | explicit RumbleProtocol(std::shared_ptr<JoyconHandle> handle); |
| 21 | 25 | ||
| 22 | DriverResult EnableRumble(bool is_enabled); | 26 | Common::Input::DriverResult EnableRumble(bool is_enabled); |
| 23 | 27 | ||
| 24 | DriverResult SendVibration(const VibrationValue& vibration); | 28 | Common::Input::DriverResult SendVibration(const VibrationValue& vibration); |
| 25 | 29 | ||
| 26 | private: | 30 | private: |
| 27 | u16 EncodeHighFrequency(f32 frequency) const; | 31 | u16 EncodeHighFrequency(f32 frequency) const; |