| | |
| | |
| |
|
| | |
| | |
| | |
| | |
| |
|
| | #pragma once |
| |
|
| | #include <vector> |
| |
|
| | #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 RingConProtocol final : private JoyconCommonProtocol { |
| | public: |
| | explicit RingConProtocol(std::shared_ptr<JoyconHandle> handle); |
| |
|
| | Common::Input::DriverResult EnableRingCon(); |
| |
|
| | Common::Input::DriverResult DisableRingCon(); |
| |
|
| | Common::Input::DriverResult StartRingconPolling(); |
| |
|
| | bool IsEnabled() const; |
| |
|
| | private: |
| | Common::Input::DriverResult IsRingConnected(bool& is_connected); |
| |
|
| | Common::Input::DriverResult ConfigureRing(); |
| |
|
| | bool is_enabled{}; |
| | }; |
| |
|
| | } |
| |
|