diff options
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; |