Touch detection method and touch detector using the same
First Claim
1. A touch detection method applied in a touch detector for detecting a double click event triggered on a touch panel, the touch detection method comprising:
- (a) determining whether a first touch event triggered on the touch panel is detected;
(b) when the first touch event is triggered, recording a first set of touch location corresponding to the first touch event, activating a counting operation for determining an operation period, and setting an operation flag as a first value;
(c) determining whether the operation period ends;
(d) when the operation period does not end and the operation flag is corresponding to the first value, determining whether a first touch termination event triggered on the touch panel is detected;
if so, having a touch flag ascended by 1, having the operation flag set as a second value, and repeating step (c);
(e) when the operation period does not end and the operation flag is corresponding to the second value, determining whether a second touch event is triggered on the touch panel is detected;
if so, recording a second set of touch location corresponding to the second touch event, having the operation flag set as a third value, and repeating step (c);
(f) when the operation period does not end and the operation flag corresponding to the third value, determining whether a second touch termination event triggered on the touch panel is detected;
if so, the having the touch flag ascended by 1, having the operation flag set as the first value, and repeating step (c);
(g) when the operation period does end, determining whether the touch flag corresponds to a value greater than or equal to N+2, and determining whether a set of distances between the first set and the second set locations is smaller than or equal to a threshold, wherein N is an initial value of the touch flag; and
(h) when the value of the touch flag is greater than or equal to N+2 and the set of distances is smaller than or equal to the threshold, determining the double click event is achieved.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for double click detection includes the following steps. Firstly whether first event is detected is determined, if so, first corresponding position is obtained, a period counting is triggered, and first flag is set. Then whether the period ends is judged; if not and the first flag exists, a counter is incremented and second flag is set when first ending event is detected; if not and the second flag exists, second corresponding position is obtained and third flag is set when second event is detected; if not and the third flag exists, the counter is incremented when second ending event is detected; if so, a double click event is determined when the incremented value is greater than a threshold and a distance between the first and the second positions is smaller a threshold.
-
Citations
14 Claims
-
1. A touch detection method applied in a touch detector for detecting a double click event triggered on a touch panel, the touch detection method comprising:
-
(a) determining whether a first touch event triggered on the touch panel is detected; (b) when the first touch event is triggered, recording a first set of touch location corresponding to the first touch event, activating a counting operation for determining an operation period, and setting an operation flag as a first value; (c) determining whether the operation period ends; (d) when the operation period does not end and the operation flag is corresponding to the first value, determining whether a first touch termination event triggered on the touch panel is detected;
if so, having a touch flag ascended by 1, having the operation flag set as a second value, and repeating step (c);(e) when the operation period does not end and the operation flag is corresponding to the second value, determining whether a second touch event is triggered on the touch panel is detected;
if so, recording a second set of touch location corresponding to the second touch event, having the operation flag set as a third value, and repeating step (c);(f) when the operation period does not end and the operation flag corresponding to the third value, determining whether a second touch termination event triggered on the touch panel is detected;
if so, the having the touch flag ascended by 1, having the operation flag set as the first value, and repeating step (c);(g) when the operation period does end, determining whether the touch flag corresponds to a value greater than or equal to N+2, and determining whether a set of distances between the first set and the second set locations is smaller than or equal to a threshold, wherein N is an initial value of the touch flag; and (h) when the value of the touch flag is greater than or equal to N+2 and the set of distances is smaller than or equal to the threshold, determining the double click event is achieved. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A touch detector, comprising:
-
a non-transitory computer readable medium, storing program codes; and a processor, for reading the computer readable medium and executing a touch detection method for detecting a double click event triggered on a touch panel, the touch detection method comprising; (a) determining whether a first touch event triggered on the touch panel is detected; (b) when the first touch event is triggered, recording a first set of touch location corresponding to the first touch event, activating a counting operation for determining an operation period, and setting an operation flag as a first value; (c) determining whether the operation period ends; (d) when the operation period does not end and the operation flag is corresponding to the first value, determining whether a first touch termination event triggered on the touch panel is detected;
if so, having a touch flag ascended by 1, having the operation flag set as a second value, and repeating step (c);(e) when the operation period does not end and the operation flag is corresponding to the second value, determining whether a second touch event is triggered on the touch panel is detected;
if so, recording a second set of touch location corresponding to the second touch event, having the operation flag set as a third value, and repeating step (c);(f) when the operation period does not end and the operation flag corresponding to the third value, determining whether a second touch termination event triggered on the touch panel is detected;
if so, the having the touch flag ascended by 1, having the operation flag set as the first value, and repeating step (c);(g) when the operation period does end, determining whether the touch flag corresponds to a value greater than or equal to N+2, and determining whether a set of distances between the first set and the second set locations is smaller than or equal to a threshold, wherein N is an initial value of the touch flag; and (h) when the value of the touch flag is greater than or equal to N+2 and the set of distances is smaller than or equal to the threshold, determining the double click event is achieved. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
Specification