Added invert mouse option.

This commit is contained in:
dexyfex
2018-01-02 11:07:24 +11:00
Unverified
parent c9fb099db7
commit 4cbf85bd03
7 changed files with 62 additions and 3 deletions
+12 -1
View File
@@ -21,7 +21,7 @@ namespace CodeWalker
private float camSensitivity = Settings.Default.CameraSensitivity;
private float camSmoothing = Settings.Default.CameraSmoothing;
private bool mouseinvert = Settings.Default.MouseInvert;
public SettingsForm(WorldForm owner)
@@ -67,6 +67,7 @@ namespace CodeWalker
{
CameraSensitivityUpDown.Value = (decimal)camSensitivity * 1000;
CameraSmoothingUpDown.Value = (decimal)camSmoothing;
MouseInvertCheckBox.Checked = mouseinvert;
}
private void LoadAdvancedSettings()
{
@@ -203,6 +204,16 @@ namespace CodeWalker
}
}
private void MouseInvertCheckBox_CheckedChanged(object sender, EventArgs e)
{
mouseinvert = MouseInvertCheckBox.Checked;
Settings.Default.MouseInvert = mouseinvert;
if (worldForm != null)
{
worldForm.SetMouseInverted(mouseinvert);
}
}
private void SaveButton_Click(object sender, EventArgs e)
{
//apply and save the settings.