summaryrefslogtreecommitdiff
path: root/wrapper/wrapper.cpp
diff options
context:
space:
mode:
authorJacob Palecki <[email protected]>2021-01-10 23:49:28 -0800
committerJacob Palecki <[email protected]>2021-01-10 23:49:28 -0800
commitde6b18db8226650cee9726c4694931bdc4b89fad (patch)
treec5bffd4d1eaad53842394c92d4907acb65c6ff84 /wrapper/wrapper.cpp
parentAdd to stigma, directional to settings (diff)
downloadrawaccel-de6b18db8226650cee9726c4694931bdc4b89fad.tar.xz
rawaccel-de6b18db8226650cee9726c4694931bdc4b89fad.zip
Implement direcitonality UI
Diffstat (limited to 'wrapper/wrapper.cpp')
-rw-r--r--wrapper/wrapper.cpp14
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;