fix for screen rotation and joystick