From ec5cf60f5eafcb8d1ff7231af21267e0ed3d414a Mon Sep 17 00:00:00 2001 From: Rachel Bryk Date: Tue, 17 Sep 2013 09:56:45 -0400 Subject: [PATCH] Set L/R buttons in tas input, instead of just the analog triggers. Fixes issue 6613. --- Source/Core/DolphinWX/Src/TASInputDlg.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Source/Core/DolphinWX/Src/TASInputDlg.cpp b/Source/Core/DolphinWX/Src/TASInputDlg.cpp index e3db56e7fb..2bae92287b 100644 --- a/Source/Core/DolphinWX/Src/TASInputDlg.cpp +++ b/Source/Core/DolphinWX/Src/TASInputDlg.cpp @@ -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(); }