Exemple #1
0
 private static void releaseAxis(AxisStatus axis)
 {
     axis.isUp      = axis.isPressed;
     axis.isDown    = false;
     axis.isPressed = false;
 }
Exemple #2
0
 private static void pressAxis(AxisStatus axis)
 {
     axis.isUp      = false;
     axis.isDown    = !axis.isPressed;
     axis.isPressed = true;
 }