mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-15 11:08:26 +08:00
Added invert mouse option.
This commit is contained in:
+12
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user