Skip to content
This repository has been archived by the owner on Mar 9, 2023. It is now read-only.

Problem with GetButtonDown executing more than one time #40

Open
EmilioLizama opened this issue Sep 10, 2020 · 3 comments
Open

Problem with GetButtonDown executing more than one time #40

EmilioLizama opened this issue Sep 10, 2020 · 3 comments

Comments

@EmilioLizama
Copy link

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
Copy link

I am also experiencing this issue on Unity 2020.3.22f1

@raytsang
Copy link

Same here with 2019.4.9f1

@wcai49
Copy link

wcai49 commented Jul 27, 2022

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.

elblogbruno added a commit to elblogbruno/JoyconLib that referenced this issue Feb 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants