diff options
| author | a1xd <[email protected]> | 2021-04-01 18:33:00 -0400 |
|---|---|---|
| committer | a1xd <[email protected]> | 2021-04-01 18:33:00 -0400 |
| commit | e9866f27d78d9909fd4639cbd14a54b8ad5c2ec1 (patch) | |
| tree | 1254f1db0dfd39d76c20a1907380ecbb60f86ab4 /wrapper | |
| parent | add flag to negate device match (diff) | |
| download | rawaccel-e9866f27d78d9909fd4639cbd14a54b8ad5c2ec1.tar.xz rawaccel-e9866f27d78d9909fd4639cbd14a54b8ad5c2ec1.zip | |
driver - apply accel disregarding num packets
add setting for max time threshold
Diffstat (limited to 'wrapper')
| -rw-r--r-- | wrapper/wrapper.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/wrapper/wrapper.cpp b/wrapper/wrapper.cpp index 873b156..ab129a8 100644 --- a/wrapper/wrapper.cpp +++ b/wrapper/wrapper.cpp @@ -130,6 +130,9 @@ public ref struct DriverSettings [JsonProperty(Required = Required::Default)] double minimumTime; + [JsonProperty(Required = Required::Default)] + double maximumTime; + [JsonProperty("Ignore devices with matching ID")] [MarshalAs(UnmanagedType::U1)] bool ignore; @@ -143,6 +146,11 @@ public ref struct DriverSettings return minimumTime != ra::DEFAULT_TIME_MIN; } + bool ShouldSerializemaximumTime() + { + return maximumTime != ra::DEFAULT_TIME_MAX; + } + DriverSettings() { Marshal::PtrToStructure(IntPtr(&default_settings), this); |