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