[chronojump] New class TriggerXForce to manage triggers while capturing



commit 4099bb11a54159306d452d594b2f8e3312806cd4
Author: Xavier de Blas <xaviblas gmail com>
Date:   Fri Nov 5 14:55:25 2021 -0300

    New class TriggerXForce to manage triggers while capturing

 src/forceSensor.cs | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
---
diff --git a/src/forceSensor.cs b/src/forceSensor.cs
index 2aa7e592d..2e6754ad2 100644
--- a/src/forceSensor.cs
+++ b/src/forceSensor.cs
@@ -1391,6 +1391,22 @@ public class ForceSensorCapturePoints
        }
 }
 
+public class TriggerXForce
+{
+       public Trigger trigger;
+       public int x; //x on screen
+       public double force; //force at trigger
+       public bool painted;
+
+       public TriggerXForce (Trigger trigger, int x, double force)
+       {
+               this.trigger = trigger;
+               this.x = x;
+               this.force = force;
+               this.painted = false;
+       }
+}
+
 public class CalculatedForceMaxAvgInWindow
 {
        private int countA;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]