added a static boolean for inverting the y axis control