A method of controlling a position detection device, comprising:
- shooting, by an imaging element, a shooting range including a part of a display surface;
- and
- making data of a shot image shot by the imaging element;
- detecting an operation to the display surface from the data of the shot image;
- identifying a pointing element with which the operation detected in the detecting is performed, and associating the operation and the pointing element with each other;
- processing the operation associated with the pointing element out of the operations detected in the detecting,
- wherein, when a first operation and a second operation, which is performed within a predetermined period of time before the first operation, with a single pointing element are detected, and a coordinate of the first operation and a coordinate of the second operation are located within a predetermined range, the coordinate of the first operation is treated as the same coordinate as the coordinate of the second operation in the associating, and
- a predetermined range is changed in accordance with a detection position in the display surface of the operation detected in the detecting;
- and
- determining whether or not the coordinate of the first operation is treated as the same coordinate as the coordinate of the second operation in accordance with configuration information that includes threshold values for a distance used to determine whether or not the coordinate of the first operation and the coordinate of the second operation on the display surface pointed by the pointing element are treated as the same coordinate,
- wherein the threshold values include:
- (i) a first threshold value for when the pointing element points to a second position, and (ii) a second threshold value for when the pointing element points to a first position, the first threshold value being set to a higher value than the second threshold value.