mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Rearranged EmuWiimote & nJoy. Wow they can share one pad at the same time, and they also can be enabled/disabled separately.
So as long as the game supports, you can toggle controller input between them on the fly. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4691 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -127,6 +127,7 @@ void Config::Save(int Slot)
|
||||
|
||||
// Save the physical device ID
|
||||
file.Set(SectionName.c_str(), "joy_id", PadMapping[i].ID);
|
||||
file.Set(SectionName.c_str(), "enable", PadMapping[i].enable);
|
||||
// ===================
|
||||
|
||||
// ==================================================================
|
||||
@ -190,7 +191,8 @@ void Config::Save(int Slot)
|
||||
void Config::Load(bool ChangePad, bool ChangeSaveByID)
|
||||
{
|
||||
// If there are no good pads don't load
|
||||
if (NumGoodPads == 0) return;
|
||||
if (NumGoodPads == 0)
|
||||
return;
|
||||
|
||||
// Load file
|
||||
IniFile file;
|
||||
@ -219,6 +221,7 @@ void Config::Load(bool ChangePad, bool ChangeSaveByID)
|
||||
if (!ChangePad)
|
||||
{
|
||||
file.Get(SectionName.c_str(), "joy_id", &PadMapping[i].ID, 0);
|
||||
file.Get(SectionName.c_str(), "enable", &PadMapping[i].enable, false);
|
||||
}
|
||||
|
||||
// ==================================================================
|
||||
|
Reference in New Issue
Block a user