Patent ID: 8907907

Claim:
A display device, comprising: a touch panel; a coordinate detecting unit configured to detect coordinates on a display surface of the touch panel; a special pen detecting unit configured to detect that a special pen comes into physical contact with the display surface; a timer unit configured to measure time having elapsed from when the coordinate detecting unit detects the coordinates; an event issuing unit configured to issue a first event when the special pen detecting unit detects the special pen coming into contact with the display surface, and issue a second event when the time having elapsed measured by the timer unit exceeds a predetermined time Δt while the special pen detecting unit is not detecting the special pen coming into contact with the display surface; and a cancelling unit configured to cancel a change applied by the second event when the event issuing unit issues the first event due to the detection of the special pen coming into contact with the display surface by the special pen detecting unit after the second event is issued.