Trackball is an input device.Trackballs and mechanical mice operate alike, using a rubber or rubber-coated ball that turns two shafts connected to a pair of encoders that measure the horizontal and vertical components of a user’s movement, which are then translated into cursor movement on a computer monitor.Source: Britannica.com