added mouse controls for desktop mode