mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 23:29:17 +00: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:
parent
c710ae7529
commit
dee24e5695
4 changed files with 57 additions and 8 deletions
|
@ -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(""));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue