Skip to content

Commit

Permalink
Fixed POV keyline writeout : write all POVs for all joystick devices
Browse files Browse the repository at this point in the history
  • Loading branch information
Althar93 committed Aug 2, 2023
1 parent e0f1064 commit 6d7c1e9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Falcon BMS Alternative Launcher/Override/OverrideSettingFor437.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,19 @@ protected override void OverrideVRHMD(StreamWriter cfg)
+ Convert.ToInt32(mainWindow.Misc_VR.IsChecked)
+ CommonConstants.CFGOVERRIDECOMMENT + "\r\n");
}

protected override void WriteKeyLines(string filename, Hashtable inGameAxis, DeviceControl deviceControl, KeyFile keyFile, int DXnumber)
{
StreamWriter sw = new StreamWriter
(filename, false, Encoding.GetEncoding("utf-8"));
for (int i = 0; i < keyFile.keyAssign.Length; i++)
sw.Write(keyFile.keyAssign[i].GetKeyLine());
for (int i = 0; i < deviceControl.joyAssign.Length; i++)
{
sw.Write(deviceControl.joyAssign[i].GetKeyLineDX(i, deviceControl.joyAssign.Length, DXnumber));
sw.Write(deviceControl.joyAssign[i].GetKeyLinePOV());
}
sw.Close();
}
}
}

0 comments on commit 6d7c1e9

Please sign in to comment.