Beispiel #1
0
 private static void TestAnalogEvent(AnalogEvent e, ref XRControllerAnalog analog, XRControllerSide side)
 {
     if (e != null && analog.value != 0)
     {
         e(side, analog.value);
     }
 }
Beispiel #2
0
 void PrintAnalog(XRControllerAnalog analog, string name)
 {
     if (analog.value >= .1f)
     {
         Debug.Log(name + " " + analog.value.ToString());
     }
 }
Beispiel #3
0
 internal void Merge(ref XRControllerAnalog analog)
 {
     if (value >= tolerance)
     {
         analog.value = value;
     }
 }