Initialise mouse variables.