summaryrefslogtreecommitdiff
path: root/Config.cs
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2026-02-06 22:13:30 -0500
committerAndrew Opalach <andrew@akon.city> 2026-02-06 22:13:30 -0500
commitae2b2cd782a69010a0241db7b0084b5d171fd4ad (patch)
treedabbbaade2db61268f5c79f1f02d6c39a22bf7ea /Config.cs
parentd10b1bd95a9f09560786aa4eeba8d8b178e28c43 (diff)
downloadNewCamera-ae2b2cd782a69010a0241db7b0084b5d171fd4ad.tar.gz
NewCamera-ae2b2cd782a69010a0241db7b0084b5d171fd4ad.tar.bz2
NewCamera-ae2b2cd782a69010a0241db7b0084b5d171fd4ad.zip
Revert to single precision floats, use MathF
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'Config.cs')
-rwxr-xr-xConfig.cs14
1 files changed, 7 insertions, 7 deletions
diff --git a/Config.cs b/Config.cs
index cea23cb..43f2cca 100755
--- a/Config.cs
+++ b/Config.cs
@@ -8,7 +8,7 @@ namespace MHWNewCamera
internal class Config : IConfig
{
public String Name => "MHWNewCamera";
- public String Version => "4.0";
+ public String Version => "4.1";
public struct Settings
{
@@ -16,8 +16,8 @@ namespace MHWNewCamera
public const float DEFAULT_SPEED_MODIFIER = 0.40f;
public const float DEFAULT_SENSITIVITY = 0.0425f;
public const float DEFAULT_ZOOM_SPEED = 0.02f;
- public const double DEFAULT_PITCH_LIMIT = -1.0;
- public const double MAX_PITCH_LIMIT = 89.95;
+ public const float DEFAULT_PITCH_LIMIT = -1.0f;
+ public const float MAX_PITCH_LIMIT = 89.95f;
public const int DEFAULT_DEADZONE = 4750;
public const float DEFAULT_ALT_NEAR_CLIP = 0.3f;
@@ -36,7 +36,7 @@ namespace MHWNewCamera
public float SpeedModifier { get; set; }
public float Sensitivity { get; set; }
public float ZoomSpeed { get; set; }
- public double PitchLimit { get; set; }
+ public float PitchLimit { get; set; }
public int StickDeadzone { get; set; }
public float AlternateNearClip { get; set; }
@@ -63,11 +63,11 @@ namespace MHWNewCamera
public struct Preset
{
- public double FieldOfView { get; set; }
+ public float FieldOfView { get; set; }
public float Forward { get; set; }
public float Right { get; set; }
public float Up { get; set; }
- public double Roll { get; set; }
+ public float Roll { get; set; }
public bool DisableFading { get; set; }
}
@@ -122,7 +122,7 @@ namespace MHWNewCamera
public float TargetX { get; set; }
public float TargetY { get; set; }
public float TargetZ { get; set; }
- public double Roll { get; set; }
+ public float Roll { get; set; }
}
private static Dictionary<string, Button> buttonMap = new Dictionary<string, Button>