Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible Bug: more than one button held at a time. #60

Open
mrdude2478 opened this issue Apr 27, 2022 · 0 comments
Open

Possible Bug: more than one button held at a time. #60

mrdude2478 opened this issue Apr 27, 2022 · 0 comments

Comments

@mrdude2478
Copy link

mrdude2478 commented Apr 27, 2022

Firstly I am not sure if this is a bug or not but the following causes an app to crash:

if (((Down & HidNpadButton_B) || ((Held & HidNpadButton_L) && ( Held & HidNpadButton_R))) && mainApp->IsShown())

If changed to Down, it doesn't crash:
if (((Down & HidNpadButton_B) || ((Down & HidNpadButton_L) && ( Down & HidNpadButton_R))) && mainApp->IsShown())

If you hold 2 "Held" buttons at a time using the above the app crashes, to get around it I had to do this:

if (((Down & HidNpadButton_B) || ((Held & HidNpadButton_L) && ( Down & HidNpadButton_R)) || ((Down & HidNpadButton_L) && ( Held & HidNpadButton_R))) && mainApp->IsShown())

That way I could hold both buttons and it would work, Is this a bug or am I just being stupid?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant