Updated code in basic mouse tutorial.