Looking-Glass / JoyconLib

Joy-Con library for Unity.
MIT License
471 stars 91 forks source link

Problem with GetButtonDown executing more than one time #40

Open EmilioLizama opened 4 years ago

EmilioLizama commented 4 years ago

Hello! I am using this library and everything is working great, except when I had to get the values for the buttons. If I execute the method"GetButtonDown" for whatever button in the Update part of a class, it's invoked more than one time (for me is between 4 and 6 times) meaning is detecting the button pressed during 4 updates. I think this is not the intended behaviour, someone knows how to fix this? I am using unity 2019.3.15f1

tannerntannern commented 2 years ago

I am also experiencing this issue on Unity 2020.3.22f1

raytsang commented 2 years ago

Same here with 2019.4.9f1

wcai49 commented 2 years ago

Hi all, please double-check if you have added two gameObjects, and both are attached with JoyconDemo.cs Script (or any c# Script which tries to get all your joycons connected and listen to GetButtonDown() or anything else). If so, it will obviously do things twice then.