mouse input for density and direction