MouseVariables: Changed X,Y origin 1 to 0.
Code cleanup