Light Pen
A light pen is an input device connected by a cable to a computer and used to draw on the screen. 

The software calculates the position of the pen and takes appropriate action.