mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-08 09:09:04 +00:00
nJoy: Added radius option to advanced settings
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3716 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
1c52139d94
commit
8fa315879a
8 changed files with 86 additions and 25 deletions
|
@ -174,8 +174,10 @@ void Config::Save(int Slot)
|
|||
file.Set(SectionName.c_str(), "eventnum", PadMapping[i].eventnum);
|
||||
file.Set(SectionName.c_str(), "use_rumble", PadMapping[i].rumble);
|
||||
|
||||
file.Set(SectionName.c_str(), "Radius", PadMapping[i].SRadius);
|
||||
file.Set(SectionName.c_str(), "RadiusOnOff", PadMapping[i].bRadiusOnOff);
|
||||
file.Set(SectionName.c_str(), "Diagonal", PadMapping[i].SDiagonal);
|
||||
file.Set(SectionName.c_str(), "SquareToCircle", PadMapping[i].bSquareToCircle);
|
||||
file.Set(SectionName.c_str(), "SquareToCircle", PadMapping[i].bSquareToCircle);
|
||||
// ======================================
|
||||
|
||||
// Debugging
|
||||
|
@ -268,6 +270,8 @@ void Config::Load(bool ChangePad, bool ChangeSaveByID)
|
|||
file.Get(SectionName.c_str(), "eventnum", &PadMapping[i].eventnum, 0);
|
||||
file.Get(SectionName.c_str(), "use_rumble", &PadMapping[i].rumble, false);
|
||||
|
||||
file.Get(SectionName.c_str(), "Radius", &PadMapping[i].SRadius, "100%");
|
||||
file.Get(SectionName.c_str(), "RadiusOnOff", &Tmp, false); PadMapping[i].bRadiusOnOff = Tmp;
|
||||
file.Get(SectionName.c_str(), "Diagonal", &PadMapping[i].SDiagonal, "100%");
|
||||
file.Get(SectionName.c_str(), "SquareToCircle", &Tmp, false); PadMapping[i].bSquareToCircle = Tmp;
|
||||
// =============================
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue