Tas input works with bongos too.

This commit is contained in:
Rachel Bryk 2013-07-23 20:43:51 -04:00
parent ec148008d0
commit 3f03588dec
3 changed files with 3 additions and 7 deletions

View File

@ -111,7 +111,7 @@ public:
NetPlaySetupDiag* g_NetPlaySetupDiag;
wxCheatsWindow* g_CheatsWindow;
TASInputDlg* g_TASInputDlg[4];
void InitBitmaps();
void DoPause();
void DoStop();

View File

@ -649,9 +649,9 @@ void CFrame::OnTASInput(wxCommandEvent& event)
{
std::string number[4] = {"1","2","3","4"};
for(int i = 0; i < 4; i++)
for (int i = 0; i < 4; ++i)
{
if(SConfig::GetInstance().m_SIDevice[i] == SIDEVICE_GC_CONTROLLER)
if (SConfig::GetInstance().m_SIDevice[i] == SIDEVICE_GC_CONTROLLER || SConfig::GetInstance().m_SIDevice[i] == SIDEVICE_GC_TARUKONGA)
{
g_TASInputDlg[i]->Show(true);
g_TASInputDlg[i]->SetTitle("TAS Input - Controller " + number[i]);

View File

@ -459,10 +459,6 @@ void TASInputDlg::GetValues(SPADStatus *PadStatus, int controllerID)
GetKeyBoardInput(PadStatus);
SetLandRTriggers();
// TODO: implement support for more controllers
//if (controllerID != 0)
// return;
PadStatus->stickX = mainX;
PadStatus->stickY = mainY;
PadStatus->substickX = cX;