Set L/R buttons in tas input, instead of just the analog triggers.
Fixes issue 6613.
This commit is contained in:
parent
302e9c891b
commit
ec5cf60f5e
|
@ -527,6 +527,16 @@ void TASInputDlg::GetValues(SPADStatus *PadStatus, int controllerID)
|
||||||
PadStatus->button |= PAD_BUTTON_START;
|
PadStatus->button |= PAD_BUTTON_START;
|
||||||
else
|
else
|
||||||
PadStatus->button &= ~PAD_BUTTON_START;
|
PadStatus->button &= ~PAD_BUTTON_START;
|
||||||
|
|
||||||
|
if(wx_r_button->IsChecked() || rTrig >= 255)
|
||||||
|
PadStatus->button |= PAD_TRIGGER_R;
|
||||||
|
else
|
||||||
|
PadStatus->button &= ~PAD_TRIGGER_R;
|
||||||
|
|
||||||
|
if(wx_l_button->IsChecked() || lTrig >= 255)
|
||||||
|
PadStatus->button |= PAD_TRIGGER_L;
|
||||||
|
else
|
||||||
|
PadStatus->button &= ~PAD_TRIGGER_L;
|
||||||
|
|
||||||
ButtonTurbo();
|
ButtonTurbo();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue