mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-22 04:35:46 +00:00
input_common: Implement joycon nfc
This commit is contained in:
parent
6e33731f29
commit
6d6b7bdbc3
9 changed files with 544 additions and 13 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue