diff options
Diffstat (limited to 'src/input_common/helpers/joycon_protocol/ringcon.h')
| -rw-r--r-- | src/input_common/helpers/joycon_protocol/ringcon.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/input_common/helpers/joycon_protocol/ringcon.h b/src/input_common/helpers/joycon_protocol/ringcon.h index 6e858f3fc..9f0888de3 100644 --- a/src/input_common/helpers/joycon_protocol/ringcon.h +++ b/src/input_common/helpers/joycon_protocol/ringcon.h | |||
| @@ -13,24 +13,28 @@ | |||
| 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 RingConProtocol final : private JoyconCommonProtocol { | 22 | class RingConProtocol final : private JoyconCommonProtocol { |
| 19 | public: | 23 | public: |
| 20 | explicit RingConProtocol(std::shared_ptr<JoyconHandle> handle); | 24 | explicit RingConProtocol(std::shared_ptr<JoyconHandle> handle); |
| 21 | 25 | ||
| 22 | DriverResult EnableRingCon(); | 26 | Common::Input::DriverResult EnableRingCon(); |
| 23 | 27 | ||
| 24 | DriverResult DisableRingCon(); | 28 | Common::Input::DriverResult DisableRingCon(); |
| 25 | 29 | ||
| 26 | DriverResult StartRingconPolling(); | 30 | Common::Input::DriverResult StartRingconPolling(); |
| 27 | 31 | ||
| 28 | bool IsEnabled() const; | 32 | bool IsEnabled() const; |
| 29 | 33 | ||
| 30 | private: | 34 | private: |
| 31 | DriverResult IsRingConnected(bool& is_connected); | 35 | Common::Input::DriverResult IsRingConnected(bool& is_connected); |
| 32 | 36 | ||
| 33 | DriverResult ConfigureRing(); | 37 | Common::Input::DriverResult ConfigureRing(); |
| 34 | 38 | ||
| 35 | bool is_enabled{}; | 39 | bool is_enabled{}; |
| 36 | }; | 40 | }; |