Refactored SquareTouchPadLayout