From 04cb373864fad4940e911146cf2525983d4b54c2 Mon Sep 17 00:00:00 2001 From: dborth Date: Tue, 14 Apr 2009 03:21:21 +0000 Subject: [PATCH] fix gamecube home trigger bug --- source/ngc/pad.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/ngc/pad.cpp b/source/ngc/pad.cpp index 2467f31..a551679 100644 --- a/source/ngc/pad.cpp +++ b/source/ngc/pad.cpp @@ -576,7 +576,11 @@ void GetJoy() { if ( (userInput[i].pad.substickX < -70) || - (userInput[i].pad.btns_h & (PAD_BUTTON_START | PAD_BUTTON_A | PAD_BUTTON_B | PAD_TRIGGER_Z)) || + (userInput[i].pad.btns_h & PAD_BUTTON_START && + userInput[i].pad.btns_h & PAD_BUTTON_A && + userInput[i].pad.btns_h & PAD_BUTTON_B && + userInput[i].pad.btns_h & PAD_TRIGGER_Z + ) || (userInput[i].wpad.btns_d & WPAD_BUTTON_HOME) || (userInput[i].wpad.btns_d & WPAD_CLASSIC_BUTTON_HOME) )