A mouse is a pointing device that functions by detecting two-dimensional motion relative to its supporting surface.