diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2022-12-28 22:21:12 +0100 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2023-01-20 01:05:22 +0100 |
commit | 459fb2b21337bae60194a2a99ce68c87aaed522d (patch) | |
tree | a7522832fa60f283e076df34c85380c5d4bc49d3 /src/input_common/drivers/joycon.h | |
parent | yuzu: Add ring controller test button (diff) | |
download | yuzu-459fb2b21337bae60194a2a99ce68c87aaed522d.tar yuzu-459fb2b21337bae60194a2a99ce68c87aaed522d.tar.gz yuzu-459fb2b21337bae60194a2a99ce68c87aaed522d.tar.bz2 yuzu-459fb2b21337bae60194a2a99ce68c87aaed522d.tar.lz yuzu-459fb2b21337bae60194a2a99ce68c87aaed522d.tar.xz yuzu-459fb2b21337bae60194a2a99ce68c87aaed522d.tar.zst yuzu-459fb2b21337bae60194a2a99ce68c87aaed522d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/input_common/drivers/joycon.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/input_common/drivers/joycon.h b/src/input_common/drivers/joycon.h index 1a04c19fd..f180b7478 100644 --- a/src/input_common/drivers/joycon.h +++ b/src/input_common/drivers/joycon.h @@ -17,6 +17,7 @@ struct Color; struct MotionData; enum class ControllerType; enum class DriverResult; +enum class IrsResolution; class JoyconDriver; } // namespace InputCommon::Joycon @@ -35,7 +36,7 @@ public: Common::Input::DriverResult SetLeds(const PadIdentifier& identifier, const Common::Input::LedStatus& led_status) override; - Common::Input::DriverResult SetCameraFormat(const PadIdentifier& identifier_, + Common::Input::DriverResult SetCameraFormat(const PadIdentifier& identifier, Common::Input::CameraFormat camera_format) override; Common::Input::NfcState SupportsNfc(const PadIdentifier& identifier_) const override; @@ -81,6 +82,8 @@ private: const Joycon::MotionData& value); void OnRingConUpdate(f32 ring_data); void OnAmiiboUpdate(std::size_t port, const std::vector<u8>& amiibo_data); + void OnCameraUpdate(std::size_t port, const std::vector<u8>& camera_data, + Joycon::IrsResolution format); /// Returns a JoyconHandle corresponding to a PadIdentifier std::shared_ptr<Joycon::JoyconDriver> GetHandle(PadIdentifier identifier) const; |