摘要 |
A method, system and computer program product for pointing to an object displayed on a touchscreen, the touchscreen having a display function. The coordinates of a point P, the point P being a position of a fingertip of a user on a surface of the touchscreen, is calculated. A vertical distance R between the surface of the touchscreen and the fingertip is further calculated. Furthermore, the coordinates of a point Q of a line segment OQ is calculated, the line segment OQ extending in the same direction as a line segment OP connecting an origin O on the surface of the touchscreen and the point P, the line segment OQ having a length that is proportional to the vertical distance R. In response to an object being displayed at the coordinates of the point Q, determining that the object has been pointed to. |