implementing the gamepad, screen rotate