Moved all joystick controller logic to single file.