摘要 |
According to an aspect, a display device with a touch detection function, during a touch detection operation, derives a signal value based on the touch detection signal at coordinates at which the pointer is in contact with or in proximity to the device and in the vicinity of the coordinates; derives a three-dimensional waveform which employs a magnitude of the signal value as a height direction; derives a straight line in the three-dimensional waveform, the straight line connecting between a barycenter based on a volume of a three-dimensional waveform portion equal to or greater than a first threshold value in the height direction and a barycenter based on a volume of a three-dimensional waveform portion equal to or greater than a second threshold value in the height direction; and detects based on the straight line whether the pointer is in contact with or in proximity to the device. |