mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Added support for recording multiple GameCube controllers at once.
Fixed recording playback to automatically enable/disable the correct controllers. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6188 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -628,8 +628,18 @@ void CFrame::OnChangeDisc(wxCommandEvent& WXUNUSED (event))
|
||||
|
||||
void CFrame::OnRecord(wxCommandEvent& WXUNUSED (event))
|
||||
{
|
||||
// TODO: Take controller settings from Gamecube Configuration menu
|
||||
if(Frame::BeginRecordingInput(1))
|
||||
int controllers = 0;
|
||||
|
||||
if (SConfig::GetInstance().m_SIDevice[0] == SI_GC_CONTROLLER)
|
||||
controllers |= 0x01;
|
||||
if (SConfig::GetInstance().m_SIDevice[1] == SI_GC_CONTROLLER)
|
||||
controllers |= 0x02;
|
||||
if (SConfig::GetInstance().m_SIDevice[2] == SI_GC_CONTROLLER)
|
||||
controllers |= 0x04;
|
||||
if (SConfig::GetInstance().m_SIDevice[3] == SI_GC_CONTROLLER)
|
||||
controllers |= 0x08;
|
||||
|
||||
if(Frame::BeginRecordingInput(controllers))
|
||||
BootGame(std::string(""));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user