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