CN107329619B - Method and device for triggering click event on touch terminal - Google Patents

Method and device for triggering click event on touch terminal Download PDF

Info

Publication number
CN107329619B
CN107329619B CN201710532565.8A CN201710532565A CN107329619B CN 107329619 B CN107329619 B CN 107329619B CN 201710532565 A CN201710532565 A CN 201710532565A CN 107329619 B CN107329619 B CN 107329619B
Authority
CN
China
Prior art keywords
contact point
point coordinate
coordinates
accumulated
read
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710532565.8A
Other languages
Chinese (zh)
Other versions
CN107329619A (en
Inventor
李新
张连峰
王武军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Visual Technology Co Ltd
Original Assignee
Hisense Visual Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Visual Technology Co Ltd filed Critical Hisense Visual Technology Co Ltd
Priority to CN201710532565.8A priority Critical patent/CN107329619B/en
Publication of CN107329619A publication Critical patent/CN107329619A/en
Application granted granted Critical
Publication of CN107329619B publication Critical patent/CN107329619B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a method and a device for triggering a click event when a click operation occurs on a touch screen, and relates to the technical field of touch control. The method comprises the following steps: successively reading the contact coordinates and the number of the contact coordinates in a time period lasting in one-time clicking operation; when the distance between the first contact point coordinate read at one moment and the second contact point coordinate read before the first contact point coordinate is smaller than a first threshold value and the distance is larger than a second threshold value, performing accumulated counting on the number of the first contact point coordinates; and if the accumulated value obtained after the number of the first contact point coordinates is accumulated and counted is smaller than the difference value between the accumulated value and the number of the contact point coordinates, triggering a click event. The method and the device can solve the problem that when the distance between the first coordinate and the second coordinate is between the first threshold and the second threshold, the click event cannot be triggered, and further the click event cannot be executed on the application layer to respond to the click operation.

Description

Method and device for triggering click event on touch terminal
Technical Field
The invention relates to the technical field of touch control, in particular to a method and a device for triggering a click event when a click operation occurs on a touch screen.
Background
In the related art, a touch terminal includes a touch screen, a detection device, a controller, a memory, and an event processor, where a touch object on the touch screen forms a touch operation from falling to rising, a signal indicating a position of the touch operation is sent to the controller by the detection device disposed at the front end of the touch screen, the controller maps the signal into a touch point coordinate and then stores the touch point coordinate in the memory, the event processor reads the touch point coordinate from the memory in sequence, and determines whether to trigger a touch event according to a distance between the touch point coordinate read at a moment and the touch point coordinate read before the touch point coordinate, and the touch event includes a falling event, a rising event, and a sliding event.
And when the distance is larger than a first threshold value, triggering a sliding event for responding to the sliding operation, otherwise, triggering a clicking event for responding to the clicking operation if the distances are not larger than the first threshold value.
In some cases, the distance is increased due to the deviation of the click operation, a sliding event is triggered by mistake, a second threshold value smaller than the first threshold value is set in order to overcome the mismatch of the click operation and the sliding event, the click event is triggered when the distances are all smaller than the second threshold value, and the sliding event is triggered when the distances are not smaller than the first threshold value.
However, when all the distances are smaller than the first threshold and the distance greater than the second threshold exists, neither the click event nor the slide event is triggered, and the touch operation is also an invalid operation.
Disclosure of Invention
The invention provides a method and a device for triggering a click event when a click operation occurs on a touch screen and a touch terminal, which can solve the problem that when the distance between a first touch point coordinate read at one moment and a second touch point coordinate read before the first touch point coordinate is between a first threshold and a second threshold, both the click event and a sliding event are not triggered, and further the touch operation is invalid.
In order to achieve the purpose, the embodiment of the invention adopts the technical scheme that:
in a first aspect, the present invention provides a method for triggering a click event when a click operation occurs on a touch screen, the method comprising the steps of:
successively reading the contact coordinates and the number of the contact coordinates in a time period lasting in one-time clicking operation; when the distance between the first contact point coordinate read at one moment and the second contact point coordinate read before the first contact point coordinate is smaller than a first threshold value and the distance is larger than a second threshold value, performing accumulated counting on the number of the first contact point coordinates; and if the accumulated value obtained after the number of the first contact point coordinates is accumulated and counted is smaller than the difference value between the accumulated value and the number of the contact point coordinates, triggering a click event.
In a second aspect, the present invention provides an apparatus for triggering a click event trigger event for responding to a click operation on a touch terminal, including the following units:
the reading unit is used for reading the contact coordinates and the number of the contact coordinates in a time period lasting in one-time clicking operation in sequence;
the counting unit is used for counting the number of the first contact point coordinates in an accumulated mode when the distances between the first contact point coordinates read at one moment and the second contact point coordinates read before the first contact point coordinates are all smaller than a first threshold value and the distances are larger than a second threshold value;
and the triggering unit is used for triggering a click event if the accumulated value obtained after the number of the first contact point coordinates is accumulated and counted is smaller than the difference value between the accumulated value and the number of the contact point coordinates.
In a third aspect, a touch device is provided, including: a touch screen, a controller, a memory, an event processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the method steps of the first aspect when executing the program.
The invention provides a method and a device for triggering a click event when a click operation occurs on a touch screen, and a touch terminal.
Compared with the prior art, the invention has the following beneficial effects:
the invention can set a second threshold value smaller than the first threshold value, ensure that the response of reducing clicking operation errors is taken as the sliding operation, and overcome the problem that the clicking event and the sliding event are not triggered to cause the touch operation to be invalid operation when the distance between the first contact point coordinate and the second contact point coordinate read before the first contact point coordinate is between the first threshold value and the second threshold value.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
In order to clearly illustrate the technical solutions of the present invention or the prior art, the following briefly describes the drawings required for the embodiments or the prior art descriptions, and it is obvious that the drawings in the following description are only some possible embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the following drawings without inventive efforts.
Fig. 1 is a schematic diagram of steps of a method for triggering a click event when a click operation occurs on a touch screen according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of a touch point coordinate generated by performing a single-point click operation on a capacitive screen according to an embodiment of the present invention.
Fig. 3 is a schematic diagram illustrating the time when the coordinates of the contact points in fig. 2 are read.
Fig. 4 is a schematic diagram illustrating a time when a touch point coordinate generated by performing a two-point click operation on a capacitive screen is read according to an embodiment of the present invention.
Fig. 5 is a schematic diagram illustrating a touch point coordinate generated by performing a single-point click operation on a capacitive screen in a preset area according to an embodiment of the present invention.
Fig. 6 is a schematic diagram of a specific step S12 of a method for triggering a click event when a click operation occurs on a touch screen according to an embodiment of the present invention.
Fig. 7 is a schematic diagram of setting an initial parameter set by using a first second contact coordinate parameter according to a first embodiment of the present invention.
Fig. 8 is a schematic diagram illustrating two initial parameter sets set by two second contact coordinate parameters read first according to a first embodiment of the present invention.
Fig. 9 is a schematic diagram of the distribution of the first contact point coordinate and the second contact point coordinate in the first embodiment of the present invention.
Fig. 10 is a schematic diagram illustrating the cumulative count of the first contact point coordinates in fig. 9.
Fig. 11 is a schematic diagram of a distribution of coordinate areas of 4 touch points read before the timing end time in the first embodiment of the present invention.
Fig. 12 is a schematic diagram illustrating a distance between the first contact point coordinate and the second contact point coordinate in fig. 11.
Fig. 13 is a schematic diagram of a distribution of coordinate areas of 5 touch points read before the timing end time in the first embodiment of the present invention.
Fig. 14a is a schematic diagram of a method and an apparatus for triggering a click event when a click operation occurs on a touch screen according to a second embodiment of the present invention.
Fig. 14b is a schematic diagram of a unit specifically included in the counting unit 142 in fig. 14 a.
Fig. 15 is a schematic view of a touch terminal for a method of triggering a click event when a click operation occurs according to a second embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the cited examples of the invention without any inventive effort, are within the scope of protection of the invention.
An embodiment of the present invention provides a method for triggering a click event for indicating a click operation on a touch terminal, as shown in fig. 1, the method includes the following specific steps:
step S11: and successively reading the touch point coordinates and the number of the touch point coordinates in a time period lasting in one-time clicking operation.
When one-time clicking operation occurs on the Touch screen, the event processor calls a Touch event function and a subfunction thereof, and then reads Touch point coordinate parameters in sequence, wherein the coordinate parameters comprise an X coordinate and a Y coordinate corresponding to a Touch screen coordinate system, the subfunction of the Touch event comprises a clicking event, and the clicking event comprises a Down (Touch Down) event and a Up (Touch Up) event.
When the touch point coordinate is read firstly, triggering a falling event and starting timing, correspondingly, when the touch point coordinate is read finally, triggering a lifting event and ending timing, wherein the time interval from the start of timing to the end of timing is used for representing the time period for one-time clicking operation to last.
Exemplarily, taking a single-point click operation performed on the capacitive screen as an example, as shown in fig. 2, a coordinate system F including a horizontal axis X and a vertical axis Y is established on the capacitive screen AD, and contact point coordinates 21, 22, and 23 corresponding to the coordinate system F are sequentially generated, where horizontal coordinates of each contact point coordinate are sequentially: x1、X2、X3The ordinate is in turn: y is1、Y2、Y3Correspondingly, as shown in fig. 3, the time when the parameters of the touch point coordinates 21, 22 and 23 are read by the event processor are t1, t2 and t3, respectively, wherein the time of t1 starts to time and triggers the falling event, the time of t3 ends to time, the time of the timing ends to trigger the rising event, and the time interval 400ms from the time of the timing start to the time of the timing end is the time of the clicking operationFor a sustained period of time.
The touch point coordinate read at each moment in the time period is a first touch point coordinate, and the touch point coordinate read before the first touch point coordinate is a second touch point coordinate. The cumulative value obtained after the cumulative count of the first touch point coordinates from the start of the time counting to the end of the time counting is the total number of touch point coordinates, and the total number may be read from the storage device at the start of the time counting.
Exemplarily, taking a two-point click operation performed once on the capacitive screen as an example, as shown in fig. 4, touch point coordinates 41 to 45 generated by the one-point click operation are read successively, and the reading time corresponding to each touch point coordinate is t1, t2, t3, t4, and t5 in sequence; when touch point coordinate 41 is read at time t1, touch point coordinate 41 is a first touch point coordinate and there is no second touch point coordinate; when the contact point coordinate 45 is read at time t5, the contact point coordinate 45 is the first contact point coordinate and the contact point coordinates 41 to 44 read before the first contact point coordinate are all the second contact point coordinates.
Step S12: and when the distances between the first contact point coordinate read at one moment and the second contact point coordinate read before the first contact point coordinate are all smaller than a first threshold value and the distances are larger than a second threshold value, the number of the first contact point coordinates is counted in an accumulated mode.
And calculating the distance between the first contact point coordinate and each second contact point coordinate according to the first contact point coordinate and the second contact point coordinate parameter thereof, comparing each distance with the first threshold value and the magnitude of the second threshold value, performing accumulated counting on the contact point coordinate, reading the first contact point coordinate parameter at the next moment, and repeatedly performing the accumulated counting until the timing is finished.
Specifically, the preset first threshold is greater than the second threshold, the first threshold is used as a parameter to represent the maximum boundary of the click operation slide, the second threshold is used as a parameter to represent the minimum boundary of the slide operation slide, and the difference value between the first threshold and the second threshold can reduce the problem that when the first threshold is used as the maximum boundary value of the click operation slide, a slide event for executing the slide operation is easily triggered, so that the click operation is mistakenly executed as the slide operation.
Exemplarily, taking a single-point click operation performed on the capacitive screen AD as an example, as shown in fig. 5, taking a touch point coordinate 51 read first as a center of a circle, and a first threshold R1 as a maximum area whose diameter represents a sliding of the click operation, setting a first threshold R1 equal to a distance between 8 pixels, where twice the distance is equal to a second threshold R2, and a second threshold R2 as a diameter represents a minimum boundary that triggers a sliding event, where a boundary from the minimum boundary to the maximum area is a distance between 4 pixels, where the distance is used to reduce a false execution of the click operation as the sliding operation.
On the basis of fig. 1, the embodiment of the present invention further discloses a detailed flowchart of step S12, and as shown in fig. 6, step S12 specifically includes the following steps:
step S121: setting an initial parameter set by using the first contact coordinate parameter read firstly;
specifically, the number of initial parameter groups is set according to the number of first contact coordinates read first, and initial values in the initial parameter groups are set using the abscissa and ordinate of each first contact coordinate as parameters, and since the second contact coordinate is not read before the timing start time, the abscissa difference Δ X and the ordinate difference Δ Y in each initial parameter group are set to 0 and 0 are substituted into the formula, and Δ X and Δ Y are substituted into 0
Figure GDA0002879854280000051
(1) A distance equal to 0 is obtained, which can be used as an initial value of the first accumulated value corresponding to the initial parameter group.
Example 1
As shown in fig. 7, which is a partial schematic view of a capacitive screen AD coordinate system F, touch point coordinates 71 to 74 generated by one single-point click operation are read in sequence, where the touch point coordinate 74 is a first touch point coordinate, and the touch point coordinate 71 (X) read before the first touch point coordinate and corresponding to the timing start time is read (X is a first touch point coordinate), and corresponds to the timing start time1,Y1) For the second contact point coordinate, since the first read second contact point coordinate is only one, when the contact point coordinate 71 is read, one including X is set1And Y1An initial set of parameters, andsubstituting the abscissa difference Δ X as 0 and the ordinate difference Δ Y as 0
Figure GDA0002879854280000052
In (3), a distance of 0 is obtained.
Example two
As shown in FIG. 8, the first contact point coordinates 81 (X) generated by one two-point click operation are read simultaneously1,Y1) And 82 (X)2, Y2) Is provided with X1And Y1And comprises X2And Y2The difference between the horizontal and vertical coordinates in each initial parameter set is equal to 0, and after the difference 0 is substituted into the above formula (1), two distances equal to 0 are obtained, and each 0 value is included in the two initial parameter sets respectively.
Step S122: and after judging the distance between the first contact point coordinate read at the next moment and the second contact point coordinate read before the first contact point coordinate, the first threshold and the second threshold, and accumulating and counting the number of the first contact point coordinates.
Specifically, after the timing start time, the distance between the first touch point coordinate read at the next time and the second touch point coordinate read before the first touch point coordinate is calculated, and each distance is compared with the first threshold value to determine that the first touch point coordinate does not exceed the minimum boundary representing the sliding operation, and then compared with the second threshold value, if the distance is smaller than the second threshold value, the distance equal to 0 in the initial parameter group is taken as the initial value of the cumulative count, and the number of the first touch point coordinates is cumulatively counted once to obtain the first cumulative value.
When the number of the second touch point coordinates corresponding to the timing start time is at least two, the distance between each first read second touch point coordinate and the first touch point coordinate is calculated respectively, the distance between each first read second touch point coordinate and the first touch point coordinate is compared to obtain the minimum distance in each distance, and the number of the first touch point coordinates is counted accumulatively on the basis of an initial value 0 corresponding to the minimum distance.
Exemplarily, as shown in fig. 9, after the timing start time, a first contact point coordinate 93 (X) at the next time is read3,Y3) The first contact point coordinate 93 falls on the second contact point coordinate 91 (X) corresponding to the time counting start time1,Y1) As a center of circle, and between the two regions represented by the first and second threshold values R1 and R2 as diameters, similarly, also fall at the second contact coordinate 92 (X)2,Y2) As a center of the circle, and the first threshold R1 and the second threshold R2 are between two regions represented by diameters.
As shown in fig. 10, the parameter difference Δ X between the first contact point coordinate 93 and the second contact point coordinate 91 is used1=X3-X1And Δ Y1=Y3-Y1Calculating to obtain the distance L1And the parameter difference DeltaX from the second contact point coordinate 922=X3-X2And Δ Y2=Y3-Y2Calculating to obtain the distance L2Due to the distance R1<L1<L2<R2, the first contact point coordinate 93 is closer to the second contact point coordinate 91, and the number of the first contact point coordinate 93 is counted once in an accumulation manner on the basis of the distance equal to 0 in the initial parameter group corresponding to the second contact point coordinate 91, and the accumulated value obtained after the accumulation is 1.
Optionally, after the number of the first touch point coordinates is counted up, according to a distance between the first touch point coordinates and the second touch point coordinates which are read first, calculating a first difference between the distance and a first threshold value and a second difference between the distance and a second threshold value; and when the second difference is not smaller than the first difference, accumulating and counting the number of the distances once to obtain a second accumulated value.
Step S123: step S122 is repeatedly executed until the accumulated value after the cumulative count is obtained at the timing end.
Exemplarily, as shown in fig. 11, after reading the first touch point coordinate 114 corresponding to the timing end time, the first touch point coordinate 114 falls within the area D1 represented by the first read second touch point coordinate 111 as a center and the first threshold R1 as a diameter, and falls outside the area D2 represented by the second threshold R2 as a diameter, and the second touch point coordinates 112 and 113 fall within the area D2.
As shown in fig. 12, the distances between the first contact point coordinate 114 and the second contact point coordinates 111, 112, and 113 are L in order1、L2And L3Wherein L is3<R2,L1And L2Are both between R1 and R2, and the distances between the second contact coordinates 112 and 113 and the first-read second contact coordinate 111 are L, respectively4And L5And L is4=L5<R2, the first integrated value obtained by integrating and counting the number of the first contact point coordinates 114 once is 1.
Step S13: and if the accumulated value obtained after the number of the first contact point coordinates is accumulated and counted is smaller than the difference value between the accumulated value and the number of the contact point coordinates, triggering a click event.
And after the timing is finished, determining the number difference of the touch point coordinates according to the accumulated value obtained by accumulating and counting the number of the first touch point coordinates and the total number of the first touch point coordinates and the touch point coordinates, wherein the difference is used for representing the number of the touch point coordinates in the area which takes the touch point coordinate read firstly as the center of a circle and takes the first threshold as the diameter.
If the accumulated value is smaller than the difference value, returning a Boolean value true representing that the click event is triggered, otherwise, if the accumulated value is not smaller than the difference value, returning a Boolean value false representing that the click event is not triggered.
Exemplarily, as shown in fig. 13, the touch point coordinates 131 to 135 generated by one single-point click operation are successively read, wherein after one accumulated count is performed on the last read first touch point coordinate 135, a first accumulated value of 2 and a difference value 3 between 2 and the total number of touch point coordinates 5 are obtained, the difference value 3 indicates that the second touch point coordinates 133 and 134 both fall within the area D2 represented by the first read second touch point coordinate 131 as a center, and the second threshold R2 is a diameter, and since the number 3 of the second touch point coordinates falling within the area D3 is greater than the first accumulated value 2 falling outside the area D3 and falling within the area D1 represented by the first read second touch point coordinate 131 as a center, and the first threshold R1 is a diameter, the boolean value true representing the trigger click event is returned.
Alternatively, when the boolean value returned is true, a second touchpoint coordinate that falls between two areas represented by the first read touchpoint coordinate as the center of a circle and the first threshold and the second threshold as the diameters is queried, the number of the second touchpoint coordinates being equal to the second accumulated value, and a third difference between the second accumulated value and the first accumulated value is determined.
And when the difference value is greater than the second accumulated value, returning the touch point coordinate in the area represented by taking the touch point coordinate read firstly as the center of a circle and the diameter of the second threshold value as the diameter, otherwise, returning the second touch point coordinate between the two areas, and reporting the returned second touch point coordinate and the triggered click event to the application layer so as to execute the click event at the position of the second touch point coordinate of the application layer corresponding to the touch screen coordinate system.
It should be noted that, the total number of the touchpoint coordinates may be directly read from the memory, or during the execution of step S12, the touchpoint coordinates included in the distance smaller than the second threshold are cumulatively counted to obtain a third cumulative value, and the specific real-time manner of the cumulative count is already described in step S12, and is not described here again.
Compared with the prior art, the method provided by the first embodiment of the invention can overcome the problem that when the distance between the first coordinate and the second coordinate is between the first threshold and the second threshold, the click event cannot be triggered, and further the click event cannot be executed on the application layer to respond to the click operation.
Example two
According to the method provided by the first embodiment, the second embodiment of the present invention also provides a device for locating a touch area, which is described in detail below.
As shown in fig. 14a, an apparatus for triggering a click event when a click operation occurs on a touch screen includes a reading unit 141, configured to successively read touch point coordinates and the number of touch point coordinates within a time period during which one click operation lasts; a counting unit 142, configured to count the number of first touch point coordinates in an accumulated manner when all distances between a first touch point coordinate read at a time and a second touch point coordinate read before the first touch point coordinate are smaller than a first threshold and the distances are greater than a second threshold; the triggering unit 143 is configured to trigger a click event if an accumulated value obtained by accumulating and counting the number of the first contact coordinates is smaller than a difference value between the accumulated value and the number of the contact coordinates.
As shown in fig. 14b, the counting unit 143 specifically includes an initial value determining unit 1431, a judging unit 1432, a first unit 1433, and a second counting unit 1434:
an initial value determination unit 1431 is configured to determine that an initial value of the first accumulation value is 0 using the contact point coordinate read first as a parameter.
The determining unit 1432 is configured to determine a first difference between the distance and the first threshold and a second difference between the distance and the second threshold according to a distance between the first contact coordinate and the second contact coordinate read first.
The first counting unit 1433 is configured to count the number of the first contact coordinates in an accumulated manner.
A second counting unit 1433, configured to perform cumulative counting on a distance between the first contact coordinate and the second contact coordinate read first;
in the device for triggering the click event when the click operation occurs on the touch screen, which is provided by the second embodiment of the present invention, since the second threshold smaller than the first threshold is set, the click operation is reduced from being erroneously executed as a sliding operation, and when the distance between the touch point coordinate and the touch point coordinate read before the touch point coordinate is between the first threshold and the second threshold, the click event can be triggered, so as to respond to the click operation.
For further explanation and explanation of the device for triggering a click event provided in the second embodiment of the present invention, reference may be made to the specific description of the method for triggering a click event in the first embodiment, and the implementation principle and the beneficial effects of the device and the method are similar and will not be described herein again.
For convenience of description, the device triggering the click event is divided into units by function and described separately. Of course, in implementing the present invention, the functions of each unit may be implemented in one or more software and/or hardware, and may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
EXAMPLE III
The present embodiment provides an infrared touch terminal, including: the touch screen, the memory, the processor and the computer program stored in the memory and capable of running on the processor, wherein the event processor implements the method for triggering the click event when the click operation occurs on the touch screen provided by the embodiment when executing the program.
Exemplarily, as shown in fig. 15, the memory 151 and the event processor 152 are connected by a control signal line 154 and extend out of the communication interface 153, wherein the memory 151 stores a computer program in advance, and the computer program can be executed by the processor to implement the method for triggering a click event when a click operation occurs on the touch screen in the first embodiment.
The touch point coordinates are stored in the memory 151, and the processor successively calls the touch point coordinates according to the touch point coordinate generation sequence during operation, so as to set an initial parameter group by using a first touch point coordinate parameter read first, calculate a distance between a first touch point coordinate read at each moment and a second touch point coordinate read before the first touch point coordinate, compare the distance with a first threshold value, and count the number of touch point coordinates between the first threshold value and a second threshold value in the distance in an accumulated manner after the distance and the first threshold value are compared with each other and the size of the second threshold value is larger than the second threshold value.
It should be noted that the touch terminal device may further include other components, such as an input/output subsystem, a peripheral device interface, a controller, a storage device, and the like, for being used in cooperation with the device for triggering a click event provided in this embodiment, and details of the other components are not repeated herein.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by hardware associated with computer program instructions, and the programs may be stored in a computer readable storage medium, and when executed, may include the processes of the embodiments described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory or a random access memory.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method for triggering a click event when a click operation occurs on a touch screen, the method comprising the steps of:
successively reading the contact coordinates and the number of the contact coordinates in a time period lasting in one-time clicking operation;
when the distance between the first contact point coordinate read at one moment and the second contact point coordinate read before the first contact point coordinate is smaller than a first threshold value and the distance is larger than a second threshold value, performing accumulated counting on the number of the first contact point coordinates;
and if the accumulated value obtained after the number of the first contact point coordinates is accumulated and counted is smaller than the difference value between the accumulated value and the number of the contact point coordinates, triggering a click event, wherein the number of the contact point coordinates is the number of the contact point coordinates in a time period for which one click operation lasts.
2. The method according to claim 1, wherein when all distances between a first touch point coordinate read at a time and a second touch point coordinate read before the first touch point coordinate are smaller than a first threshold value and the distances are larger than a second threshold value, after the first touch point coordinate is cumulatively counted, the method further comprises:
and repeatedly performing accumulated counting on the number of the first touch point coordinates until all the first touch point coordinates are read and an accumulated value after the accumulated counting is obtained.
3. The method according to claim 1, wherein when all distances between a first touch point coordinate read at a time and a second touch point coordinate read before the first touch point coordinate are smaller than a first threshold value and the distances are larger than a second threshold value, the method further comprises the steps of:
determining a first difference value between the distance and a first threshold value and a second difference value between the distance and a second threshold value according to the distance between the first contact point coordinate and a second contact point coordinate read first;
when the second difference is not smaller than the first difference, the number of the distances between the first contact point coordinate and the first read second contact point coordinate is counted up;
and determining a third difference value according to an accumulated value obtained by respectively accumulating and counting the number of the distances and the number of the first contact point coordinates.
4. The method according to claim 3, wherein after determining the third difference value by using an accumulated value obtained by cumulatively counting the number of the distances and the number of the first contact point coordinates, the method further comprises:
judging the magnitude of the accumulated value obtained by accumulating and counting the number of the distances and the third difference value;
when the accumulated value obtained after the number of the distances is accumulated and counted is not smaller than the third difference value, returning the second contact point coordinate which falls in the area represented by the diameter with the first read second contact point coordinate as the center of a circle and the second threshold value as the diameter;
and when the accumulated value obtained after the number of the distances is accumulated and counted is larger than the third difference value, returning the coordinates of the second contact point which falls outside the area.
5. The method according to claim 4, wherein when the accumulated value obtained by cumulatively counting the number of distances is greater than the third difference value, the method returns the coordinates of the second contact point falling outside the area, and further comprising:
determining a location indicating execution of the click event at an application layer with the second contact coordinates.
6. Method according to any one of claims 1 to 5, in the cumulative counting of the number of first contact coordinates when the distances between a first contact coordinate read at a time and a second contact coordinate read before it are all smaller than a first threshold value and there is a distance greater than a second threshold value, characterized in that:
when the number of the first read second contact point coordinates is at least two, respectively calculating the distance between each first read second contact point coordinate and the first contact point coordinate;
and searching the minimum distance in the distances, and cumulatively counting the number of the first contact point coordinates corresponding to the minimum distance.
7. The method according to claim 6, wherein when all distances between a first touch point coordinate read at a time and a second touch point coordinate read before the first touch point coordinate are smaller than a first threshold value and the distances are larger than a second threshold value, the method further comprises the steps of:
the initial value of the cumulative count of the number of first contact point coordinates is 0.
8. A device for triggering a click event when a click operation occurs on a touch screen is characterized by specifically comprising the following units:
the reading unit is used for reading the contact coordinates and the number of the contact coordinates in a time period lasting in one-time clicking operation in sequence;
the counting unit is used for counting the number of the first contact point coordinates in an accumulated mode when the distances between the first contact point coordinates read at one moment and the second contact point coordinates read before the first contact point coordinates are all smaller than a first threshold value and the distances are larger than a second threshold value;
and the triggering unit is used for triggering a click event if the accumulated value obtained after the number of the first contact point coordinates is accumulated and counted is smaller than the difference value between the accumulated value and the number of the contact point coordinates, wherein the number of the contact point coordinates is the number of the contact point coordinates in a time period for which one click operation lasts.
9. The apparatus according to claim 8, wherein the counting unit specifically includes an initial value setting unit, a judging unit, and a counting unit:
an initial value determination unit for determining an initial value of the first accumulated value to be 0 using the contact point coordinate read first as a parameter;
the judging unit is used for determining a first difference value between the distance and a first threshold value and a second difference value between the distance and a second threshold value according to the distance between the first contact point coordinate and the second contact point coordinate read firstly;
and the counting unit is used for performing accumulated counting on the number of the first contact point coordinates.
10. A touch terminal, comprising: touch screen, memory, event processor, and computer program stored on said memory and executable on said event processor, characterized in that said event processor when executing said program performs the steps comprising the method steps of any of claims 1-7.
CN201710532565.8A 2017-07-03 2017-07-03 Method and device for triggering click event on touch terminal Active CN107329619B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710532565.8A CN107329619B (en) 2017-07-03 2017-07-03 Method and device for triggering click event on touch terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710532565.8A CN107329619B (en) 2017-07-03 2017-07-03 Method and device for triggering click event on touch terminal

Publications (2)

Publication Number Publication Date
CN107329619A CN107329619A (en) 2017-11-07
CN107329619B true CN107329619B (en) 2021-06-15

Family

ID=60198090

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710532565.8A Active CN107329619B (en) 2017-07-03 2017-07-03 Method and device for triggering click event on touch terminal

Country Status (1)

Country Link
CN (1) CN107329619B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110727372B (en) * 2019-09-29 2023-04-07 RealMe重庆移动通信有限公司 False touch prevention method, terminal and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103605441A (en) * 2013-11-26 2014-02-26 厦门雅迅网络股份有限公司 Touch screen sampling optimization method based on dual circular domain
US20150046862A1 (en) * 2013-08-11 2015-02-12 Silicon Graphics International Corp. Modifying binning operations
CN106547400A (en) * 2016-10-31 2017-03-29 广东欧珀移动通信有限公司 The method of reporting information, device and terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2378403A1 (en) * 2010-04-19 2011-10-19 Tyco Electronics Services GmbH Method and device for determining a user's touch gesture
CN102541332A (en) * 2010-12-30 2012-07-04 联咏科技股份有限公司 Click gesture judging method, touch induction control chip, touch system and computer system
CN102622116A (en) * 2011-01-30 2012-08-01 联咏科技股份有限公司 Single-finger gesture judgment method, touch control sensing control chip and touch control system
CN106484181A (en) * 2016-09-20 2017-03-08 青岛海信电器股份有限公司 The touch-responsive method and device of infrared touch panel

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150046862A1 (en) * 2013-08-11 2015-02-12 Silicon Graphics International Corp. Modifying binning operations
CN103605441A (en) * 2013-11-26 2014-02-26 厦门雅迅网络股份有限公司 Touch screen sampling optimization method based on dual circular domain
CN106547400A (en) * 2016-10-31 2017-03-29 广东欧珀移动通信有限公司 The method of reporting information, device and terminal

Also Published As

Publication number Publication date
CN107329619A (en) 2017-11-07

Similar Documents

Publication Publication Date Title
US20150268789A1 (en) Method for preventing accidentally triggering edge swipe gesture and gesture triggering
CN109361985B (en) TWS earphone wearing detection method and system, electronic device and storage medium
WO2016045095A1 (en) Method, apparatus and device for correcting detection distance
WO2017133498A1 (en) Intelligent device and intelligent device control method
CN103823213B (en) A kind of method found range by proximity transducer and terminal
WO2015131675A1 (en) Compensation method for broken slide paths, electronic device and computer storage medium
CN108759892B (en) Sensor calibration method, electronic device and computer-readable storage medium
US20120249448A1 (en) Method of identifying a gesture and device using the same
US20110069028A1 (en) Method and system for detecting gestures on a touchpad
WO2019223461A1 (en) Touch detection method and computer-readable storage medium
WO2018000343A1 (en) Method and device for preventing touch screen edge misoperation
CN110647803A (en) Gesture recognition method, system and storage medium
CN108399042B (en) Touch identification method, device and system
WO2015131590A1 (en) Method for controlling blank screen gesture processing and terminal
CN107329619B (en) Method and device for triggering click event on touch terminal
CN108604142B (en) Touch screen device operation method and touch screen device
JP6212201B2 (en) Pan and scaling detection during multi-finger touch interaction
CN110442266B (en) Object recognition method, object recognition device, electronic equipment and storage medium
WO2024007807A1 (en) Error correction method and apparatus, and mobile device
CN112487376A (en) Man-machine verification method and device
WO2017096797A1 (en) Operating assembly control method and system based on motion sensing
CN109254672A (en) Control method of cursor and cursor control system
CN109002216B (en) Touch screen repairing method and device and electronic equipment
CN107943536B (en) Method and device for adjusting threshold, storage medium and electronic equipment
TWI622921B (en) Capacitance value detecting method of touch device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 266100 No. 151, Zhuzhou Road, Laoshan District, Shandong, Qingdao

Applicant after: Hisense Video Technology Co.,Ltd.

Address before: 266100 No. 151, Zhuzhou Road, Laoshan District, Shandong, Qingdao

Applicant before: HISENSE ELECTRIC Co.,Ltd.

GR01 Patent grant
GR01 Patent grant