An information processing apparatus obtains a distance that an input pen is moved
in terms of the number of dots covered on a display screen, and from that number,
judges whether a pen stroke is a gesture entry or a pointing entry. When the input
pen is moved over more than a predetermined number of dots, e.g., eight dots, gesture
recognition processing is performed. If the input pen is moved less than that number
of dots, a pointing instruction is recognized, and pointing processing is performed.
If a gesture is recognized, a recognized gesture editing command and a feature
point of the gesture command are stored in RAM. Since an input by the input pen
is judged a gesture entry or a pointing entry according to the number of dots over
which the input pen is moved, a switch is not required to change data/instruction
entry modes which reduces cost and improves handling.