summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Palecki <[email protected]>2021-04-04 23:18:23 -0700
committerJacob Palecki <[email protected]>2021-04-04 23:18:23 -0700
commit54a6f02eec23758b7f73fbf0affdedb6c4e046b7 (patch)
tree647671b4bb74f840754671fa590a868120cddf9d
parentFix most errors from wrapper rewrite (diff)
downloadrawaccel-54a6f02eec23758b7f73fbf0affdedb6c4e046b7.tar.xz
rawaccel-54a6f02eec23758b7f73fbf0affdedb6c4e046b7.zip
Fix two more errors, add LUT layout
-rw-r--r--grapher/Form1.cs4
-rw-r--r--grapher/Layouts/LUTLayout.cs27
2 files changed, 29 insertions, 2 deletions
diff --git a/grapher/Form1.cs b/grapher/Form1.cs
index 120bced..12fc9ff 100644
--- a/grapher/Form1.cs
+++ b/grapher/Form1.cs
@@ -33,9 +33,9 @@ namespace grapher
try
{
- driverVersion = VersionHelper.ValidateAndGetDriverVersion(assemVersion);
+ driverVersion = VersionHelper.ValidOrThrow();
}
- catch (VersionException ex)
+ catch (InteropException ex)
{
MessageBox.Show(ex.Message);
throw;
diff --git a/grapher/Layouts/LUTLayout.cs b/grapher/Layouts/LUTLayout.cs
new file mode 100644
index 0000000..97bfd60
--- /dev/null
+++ b/grapher/Layouts/LUTLayout.cs
@@ -0,0 +1,27 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace grapher.Layouts
+{
+ public class LUTLayout : LayoutBase
+ {
+ public LUTLayout()
+ : base()
+ {
+ Name = "LookUpTable";
+ Index = (int)AccelMode.lut;
+
+ AccelLayout = new OptionLayout(false, Acceleration);
+ ScaleLayout = new OptionLayout(false, string.Empty);
+ CapLayout = new OptionLayout(false, Cap);
+ WeightLayout = new OptionLayout(false, Weight);
+ OffsetLayout = new OptionLayout(false, Offset);
+ LimitLayout = new OptionLayout(false, string.Empty);
+ ExponentLayout = new OptionLayout(false, Exponent);
+ MidpointLayout = new OptionLayout(false, string.Empty);
+ }
+ }
+}