1. A system for determining a location of an object on a planar surface, the system comprising: a time-of-flight sensor having multiple sensing elements that provide a field of view for the time-of-flight sensor; a motor having a rotating shaft; a mirror attached to the shaft for reflecting the field of view of the time-of-flight sensor across the planar surface, the reflected field of view being about parallel to the planar surface and sweeping the reflected view across the planar surface when the shaft is rotated; and electrical circuitry configured to: receive a plurality of range images from the time-of-flight sensor as the field of view is swept across the planar surface, wherein each range image includes information indicating detected distances associated with content of the range image; process the plurality of range images to identify at least one of the range images that includes an image of the object; and calculate a location of the object on the planar surface relative to the motor based on an angle of the shaft associated with the at least one range image and a distance of the object from time-of-flight sensor indicated in the at least one range image.