fix gamecube home trigger bug

This commit is contained in:
dborth 2009-04-14 03:21:21 +00:00
parent f1cdef4213
commit 04cb373864

View File

@ -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)
)