diff options
author | german77 <juangerman-13@hotmail.com> | 2022-12-22 08:07:46 +0100 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2023-01-20 01:05:21 +0100 |
commit | 6d6b7bdbc327528d155f0422ef096846559844c0 (patch) | |
tree | 6954aaa23abe6d725f8452afb1fd19a59e962800 /src/input_common/helpers/joycon_protocol/poller.cpp | |
parent | input_common: Add dual joycon support (diff) | |
download | yuzu-6d6b7bdbc327528d155f0422ef096846559844c0.tar yuzu-6d6b7bdbc327528d155f0422ef096846559844c0.tar.gz yuzu-6d6b7bdbc327528d155f0422ef096846559844c0.tar.bz2 yuzu-6d6b7bdbc327528d155f0422ef096846559844c0.tar.lz yuzu-6d6b7bdbc327528d155f0422ef096846559844c0.tar.xz yuzu-6d6b7bdbc327528d155f0422ef096846559844c0.tar.zst yuzu-6d6b7bdbc327528d155f0422ef096846559844c0.zip |
Diffstat (limited to '')
-rw-r--r-- | src/input_common/helpers/joycon_protocol/poller.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/input_common/helpers/joycon_protocol/poller.cpp b/src/input_common/helpers/joycon_protocol/poller.cpp index cb76e1e06..fd05d98f3 100644 --- a/src/input_common/helpers/joycon_protocol/poller.cpp +++ b/src/input_common/helpers/joycon_protocol/poller.cpp @@ -74,6 +74,10 @@ void JoyconPoller::UpdateColor(const Color& color) { callbacks.on_color_data(color); } +void JoyconPoller::updateAmiibo(const std::vector<u8>& amiibo_data) { + callbacks.on_amiibo_data(amiibo_data); +} + void JoyconPoller::UpdateRing(s16 value, const RingStatus& ring_status) { float normalized_value = static_cast<float>(value - ring_status.default_value); if (normalized_value > 0) { |