@@ -6,6 +6,7 @@ public class DefaultProbeController : ProbeController
66{
77 #region Movement Constants
88 private const float MOVE_INCREMENT_TAP = 0.010f ; // move 1 um per tap
9+ private const float MOVE_INCREMENT_TAP_ULTRA = 1.000f ;
910 private const float MOVE_INCREMENT_TAP_FAST = 0.100f ;
1011 private const float MOVE_INCREMENT_TAP_SLOW = 0.001f ;
1112 private const float MOVE_INCREMENT_HOLD = 0.100f ; // move 50 um per second when holding
@@ -20,6 +21,7 @@ public class DefaultProbeController : ProbeController
2021 #endregion
2122
2223 #region Key hold flags
24+ private bool keyUltra = false ;
2325 private bool keyFast = false ;
2426 private bool keySlow = false ;
2527 private bool keyHeld = false ; // If a key is held, we will skip re-checking the key hold delay for any other keys that are added
@@ -101,6 +103,7 @@ public override void ResetAngles()
101103
102104 private void CheckForSpeedKeys ( )
103105 {
106+ keyUltra = Input . GetKey ( KeyCode . Space ) ;
104107 keyFast = Input . GetKey ( KeyCode . LeftShift ) ;
105108 keySlow = Input . GetKey ( KeyCode . LeftControl ) ;
106109 }
@@ -379,7 +382,7 @@ public void MoveProbe_Keyboard()
379382 public void MoveProbeXYZ ( float x , float y , float z , bool pressed )
380383 {
381384 var speed = pressed || ManipulatorKeyboardControl
382- ? keyFast ? MOVE_INCREMENT_TAP_FAST : keySlow ? MOVE_INCREMENT_TAP_SLOW : MOVE_INCREMENT_TAP
385+ ? keyUltra ? MOVE_INCREMENT_TAP_ULTRA : keyFast ? MOVE_INCREMENT_TAP_FAST : keySlow ? MOVE_INCREMENT_TAP_SLOW : MOVE_INCREMENT_TAP
383386 : keyFast
384387 ? MOVE_INCREMENT_HOLD_FAST * Time . deltaTime
385388 : keySlow
0 commit comments