A computer mouse is a hand-held device that detects two-dimensional motion relative to a surface and translates this into cursor movement on a display. It originally used a rolling ball but now uses optical sensors. Mice have buttons to allow selection and other elements like touch surfaces and scroll wheels. A joystick is an input device with a stick that pivots on a base and reports its angle or direction. Joysticks are commonly used to control aircraft and video games and have buttons. They are also used to control machines like cranes and vehicles as well as devices like phones.