Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Set L/R buttons in tas input, instead of just the analog triggers.
Fixes issue 6613.
  • Loading branch information
RachelBryk committed Sep 17, 2013
1 parent 302e9c8 commit ec5cf60
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Source/Core/DolphinWX/Src/TASInputDlg.cpp
Expand Up @@ -527,6 +527,16 @@ void TASInputDlg::GetValues(SPADStatus *PadStatus, int controllerID)
PadStatus->button |= PAD_BUTTON_START;
else
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();
}
Expand Down

0 comments on commit ec5cf60

Please sign in to comment.