diff options
Diffstat (limited to 'wrapper/wrapper.cpp')
| -rw-r--r-- | wrapper/wrapper.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/wrapper/wrapper.cpp b/wrapper/wrapper.cpp index fcbf2e8..6ee8150 100644 --- a/wrapper/wrapper.cpp +++ b/wrapper/wrapper.cpp @@ -52,6 +52,14 @@ public value struct Vec2 [JsonObject(ItemRequired = Required::Always)] [StructLayout(LayoutKind::Sequential)] +public value struct DomainArgs +{ + Vec2<double> domainXY; + double lpNorm; +}; + +[JsonObject(ItemRequired = Required::Always)] +[StructLayout(LayoutKind::Sequential)] public ref struct DriverSettings { literal String^ Key = "Driver settings"; @@ -78,6 +86,12 @@ public ref struct DriverSettings [JsonProperty(Required = Required::Default)] double minimumTime; + [JsonProperty("Stretches domain for horizontal vs vertical inputs")] + DomainArgs domainArgs; + + [JsonProperty("Stretches accel range for horizontal vs vertical inputs")] + Vec2<double> rangeXY; + bool ShouldSerializeminimumTime() { return minimumTime > 0 && minimumTime != DEFAULT_TIME_MIN; |