Plutonium icon indicating copy to clipboard operation
Plutonium copied to clipboard

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

Open mrdude2478 opened this issue 3 years ago • 0 comments
trafficstars

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?

mrdude2478 avatar Apr 27 '22 18:04 mrdude2478