diff options
author | german77 <juangerman-13@hotmail.com> | 2023-06-28 08:20:38 +0200 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2023-06-28 17:49:47 +0200 |
commit | df9685a21c105962e90dbd95133c5a1bcef7886f (patch) | |
tree | acfd98ca20286dca669077b165943f6c4af711a6 /src/input_common/helpers/joycon_protocol/rumble.h | |
parent | Merge pull request #10933 from merryhime/dunno (diff) | |
download | yuzu-df9685a21c105962e90dbd95133c5a1bcef7886f.tar yuzu-df9685a21c105962e90dbd95133c5a1bcef7886f.tar.gz yuzu-df9685a21c105962e90dbd95133c5a1bcef7886f.tar.bz2 yuzu-df9685a21c105962e90dbd95133c5a1bcef7886f.tar.lz yuzu-df9685a21c105962e90dbd95133c5a1bcef7886f.tar.xz yuzu-df9685a21c105962e90dbd95133c5a1bcef7886f.tar.zst yuzu-df9685a21c105962e90dbd95133c5a1bcef7886f.zip |
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 @@ #include "input_common/helpers/joycon_protocol/common_protocol.h" #include "input_common/helpers/joycon_protocol/joycon_types.h" +namespace Common::Input { +enum class DriverResult; +} + namespace InputCommon::Joycon { class RumbleProtocol final : private JoyconCommonProtocol { public: explicit RumbleProtocol(std::shared_ptr<JoyconHandle> handle); - DriverResult EnableRumble(bool is_enabled); + Common::Input::DriverResult EnableRumble(bool is_enabled); - DriverResult SendVibration(const VibrationValue& vibration); + Common::Input::DriverResult SendVibration(const VibrationValue& vibration); private: u16 EncodeHighFrequency(f32 frequency) const; |