Trackballs are input devices used to control the movement of a cursor on a computer screen. They were originally developed in the 1970s as an alternative to mice and have since been used in various applications such as laptops and gaming devices. Trackballs work by detecting the rotation of a ball located underneath the device, which translates that motion into cursor movement on the display.