diff --git a/CHANGELOG.md b/CHANGELOG.md index 370e4f4..41b8457 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Changes +## 1.1.2 + +- Fix inability to use mouse and keyboard while mod is installed + +## 1.1.1 + +- Fix left over debug code suppressing crash logs + +## 1.1.0 + +- Add config file support for defining devices and inputs + ## 1.0.3 - Fix gun animation break and eventual crash when input is received when paused or tabbed out. diff --git a/src/OrientationInjector.cs b/src/OrientationInjector.cs index 622feca..591c0c3 100644 --- a/src/OrientationInjector.cs +++ b/src/OrientationInjector.cs @@ -59,7 +59,7 @@ static Vector3 ApplySixAxisRotation(Vector3 vector) return vector; } - return InputHandler.Rotation; + return VectorUtils.Clamp(vector + InputHandler.Rotation, -1f, 1f); } } } diff --git a/src/SixAxisPlugin.cs b/src/SixAxisPlugin.cs index 71fca67..d75ad5d 100644 --- a/src/SixAxisPlugin.cs +++ b/src/SixAxisPlugin.cs @@ -11,7 +11,7 @@ namespace RoboPhredDev.Shipbreaker.SixAxis { - [BepInPlugin("net.robophreddev.shipbreaker.SixAxis", "Six Axis Joystick support for Shipbreaker", "1.1.1.0")] + [BepInPlugin("net.robophreddev.shipbreaker.SixAxis", "Six Axis Joystick support for Shipbreaker", "1.1.2.0")] public class SixAxisPlugin : BaseUnityPlugin { public static SixAxisPlugin Instance; diff --git a/src/ThrustInjector.cs b/src/ThrustInjector.cs index 6801971..ae3354e 100644 --- a/src/ThrustInjector.cs +++ b/src/ThrustInjector.cs @@ -55,7 +55,7 @@ static Vector3 ApplySixAxisTranslation(Vector3 vector) return vector; } - return InputHandler.Translation; + return VectorUtils.Clamp(vector + InputHandler.Translation, -1f, 1f); } } }