CN105183340B - Touch control operation identifies and response method, device and game control method, device - Google Patents

Touch control operation identifies and response method, device and game control method, device Download PDF

Info

Publication number
CN105183340B
CN105183340B CN201510471718.3A CN201510471718A CN105183340B CN 105183340 B CN105183340 B CN 105183340B CN 201510471718 A CN201510471718 A CN 201510471718A CN 105183340 B CN105183340 B CN 105183340B
Authority
CN
China
Prior art keywords
touch control
control operation
acceleration
duration
threshold value
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
CN201510471718.3A
Other languages
Chinese (zh)
Other versions
CN105183340A (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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201510471718.3A priority Critical patent/CN105183340B/en
Publication of CN105183340A publication Critical patent/CN105183340A/en
Application granted granted Critical
Publication of CN105183340B publication Critical patent/CN105183340B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a kind of touch control operation recognition methods, this method includes:In response to the touch control operation of user, the operation duration of start recording touch control operation;When the operation duration reaches the second duration threshold value, second order peak acceleration is obtained;If the second order peak acceleration obtained is more than the first acceleration rate threshold and less than the second acceleration rate threshold, judgement touch control operation is drag operation;If the second order peak acceleration obtained is more than second acceleration rate threshold, judgement touch control operation is swiping.Using the embodiment of the present invention, it can effectively distinguish and swipe and drag operation, so as to which the touch control operation of user be fast and accurately identified.The embodiment of the present invention additionally provides touch control operation response method and game control method.Meanwhile the embodiment of the present invention additionally provides touch control operation identification device, touch control operation responding device and game control device, is respectively used to perform above-mentioned touch control operation recognition methods, touch control operation response method and game control method.

Description

Touch control operation identifies and response method, device and game control method, device
Technical field
The present invention relates to touch screen technology field more particularly to a kind of identifications of touch control operation and response method, device and game Control method, device.
Background technology
As current touch screen is more and more universal, operating habit of the people when using electronic product is by past physical button It is changed into touch screen mode.Touch screen button obtains user view by the behavior on the screen of the user's finger that is received on screen, To instruct the method for operation of down-stream.Touch control operation meta schema includes clicks, long-press, slip, dragging, it is other operate by These types of atom operation is composed.
It is a kind of closely similar behavior due to pulling and swiping, accurately and rapidly distinguishes their not a duck soups.Currently Operation identification module provisioned in application software on touch-screen equipment cannot still be distinguished well to swipe and drag operation, current Operation identification module will usually swipe and dragging is considered as same operation, and can only at most identify click simultaneously, long-press, swipe or Pull three generic operations.In actual life, Three models can not meet user's use.For example, in many Games Softwares, drag The operation dragged can control the movement of game charater, and the operation to swipe is commonly used to attack target.Some are using soft Part swipes and drag operation takes additional restrictive condition, such as the motor performance in some region is considered to distinguish It is to swipe, the motor performance in another region is considered as to pull, such as the directionkeys in game application, essence are exactly Scope limitation is carried out in a circular virtual region, the movement in border circular areas is regarded as pulling, in circle Moving operation except domain is considered as to swipe.However, it is this setting be it is extremely disagreeableness, they or limit the defeated of user Entering or additional requirement has been done to the input of user, user pulls to input and swipes and to be carried out in different regions, It can be described as a kind of caving-in bash.Therefore, under the background to reach its maturity in current mobile equipment, effective distinguish swipes and pulls Operation just becomes very necessary.
Invention content
The purpose of the present invention is to propose to a kind of touch control operation identification and response method, device and game control method, device, It can effectively distinguish and swipe and drag operation, so as to which the touch control operation of user be fast and accurately identified, and be tied according to identification Fruit performs corresponding response events or the corresponding game action of response.
To achieve the above object, the embodiment of the present invention provides a kind of touch control operation recognition methods, including:
In response to the touch control operation of user, the operation duration of start recording user;
When the operation duration reaches the second duration threshold value, second order peak acceleration is obtained;
If the second order peak acceleration obtained is more than the first acceleration rate threshold and less than the second acceleration rate threshold, judgement The touch control operation is drag operation;
If the second order peak acceleration obtained is more than second acceleration rate threshold, judge the touch control operation to draw Screen operation;
Wherein, the second order peak acceleration refers to that touch control operation is most during a length of second duration threshold value when operated High acceleration;The second duration threshold value, the first acceleration rate threshold and the second acceleration rate threshold are preset value, and described first adds Threshold speed is less than second acceleration rate threshold.
Further, the touch control operation recognition methods further includes:
When the operation duration reaches preset first duration threshold value, single order peak acceleration is obtained;
If the single order peak acceleration obtained is less than first acceleration rate threshold, judge the touch control operation for length By operation;
Wherein, the single order peak acceleration refers to that touch control operation is most during a length of first duration threshold value when operated High acceleration;The first duration threshold value is less than the second duration threshold value.
Further, the touch control operation recognition methods further includes:
Terminate in response to user's touch control operation, obtain whole peak acceleration and complete operation duration;
If the whole peak acceleration obtained is less than first acceleration rate threshold, and the complete operation duration is small In the first duration threshold value, judge the touch control operation for clicking operation;
Wherein, the complete operation duration refers to the operation duration recorded at the end of responding user's touch-control;The whole process is most High acceleration refers to the peak acceleration of the touch control operation in the complete operation duration.
Further, the touch control operation recognition methods further includes:
If the whole peak acceleration obtained is more than first acceleration rate threshold, and the complete operation duration is small In the second duration threshold value, judge the touch control operation for swiping.
Further, the touch control operation recognition methods further includes:
In response to the touch control operation of user, with the position of acquisition of certain sampling period touch screen point;
According to the touch screen point in the position at t-1 moment, t moment and t+1 moment, calculate in t moment contact action Acceleration simultaneously stores;T is positive integer.
Further, it is further included after the acceleration of t moment touch control operation is calculated:
By in the acceleration of t moment touch control operation compared with history peak acceleration;
If the acceleration in t moment touch control operation is more than history peak acceleration, by the history peak acceleration more New is the acceleration in t moment touch control operation;
Then described when the operation duration reaches the second duration threshold value, it is specifically when described to obtain second order peak acceleration When operation duration reaches the second duration threshold value, history peak acceleration is obtained as second order peak acceleration.
Correspondingly, the embodiment of the present invention also provides a kind of touch control operation identification device, including:
Duration logging modle is operated, for the touch control operation in response to user, the operation duration of start recording touch control operation;
Second order acceleration acquisition module, for when the operation duration reaches the second duration threshold value, it is maximum to obtain second order Acceleration;
Determination module is pulled, for being more than the first acceleration rate threshold and less than the when the second order peak acceleration obtained During two acceleration rate thresholds, judge the touch control operation for drag operation;
First swipes determination module, for being more than second acceleration rate threshold when the second order peak acceleration obtained When, judge the touch control operation for swiping;
Wherein, the second order peak acceleration refers to that touch control operation is most during a length of second duration threshold value when operated High acceleration;The second duration threshold value, the first acceleration rate threshold and the second acceleration rate threshold are preset value, and described first adds Threshold speed is less than second acceleration rate threshold.
Further, the touch control operation identification device further includes:
Single order acceleration acquisition module, for when the operation duration reaches preset first duration threshold value, obtaining one Rank peak acceleration;
Long-press determination module, for when the single order peak acceleration of acquisition be less than first acceleration rate threshold when, Judge that the touch control operation is operated for long-press;
Wherein, the single order peak acceleration refers to that touch control operation is most during a length of first duration threshold value when operated High acceleration;The first duration threshold value is less than the second duration threshold value.
Further, the touch control operation identification device further includes:
Whole physical quantity acquisition module, for terminating in response to user's touch control operation, obtain whole peak acceleration with it is complete Whole operation duration;
Determination module is clicked, for being less than first acceleration rate threshold when the whole peak acceleration obtained, and When the complete operation duration is less than the first duration threshold value, judge the touch control operation for clicking operation;
Wherein, the complete operation duration refers to the operation duration recorded at the end of responding user's touch-control;The whole process is most High acceleration refers to the peak acceleration of the touch control operation in the complete operation duration.
Further, the touch control operation identification device further includes:
Second swipes determination module, for being more than the first acceleration threshold when the whole peak acceleration obtained Value, and the complete operation duration be less than the second duration threshold value when, judge the touch control operation for swiping.
Further, the identification device of the touch control operation further includes:
Touch screen point acquisition module, for the touch control operation in response to user, with the position of acquisition of certain sampling period touch screen point It puts;
Acceleration calculation module, for according to the touch screen point in the position at t-1 moment, t moment and t+1 moment, meter Calculate the acceleration in t moment contact action and storage;T is positive integer.
Further, the touch control operation identification device further includes:
Acceleration comparison module, for by the acceleration of t moment touch control operation compared with history peak acceleration;
Peak acceleration update module, for when the acceleration in t moment touch control operation be more than history peak acceleration when, The history peak acceleration is updated to the acceleration in t moment touch control operation;
Then the second order acceleration acquisition module is specifically used for, when the operation duration reaches the second duration threshold value, obtaining History peak acceleration is as second order peak acceleration.
Meanwhile the present invention also provides a kind of contact action response method, including above-mentioned contact action recognition methods Step and
According to the contact action recognition methods to the judgement of contact action as a result, performing corresponding response events.
Correspondingly, the present invention also provides a kind of contact action responding device, including above-mentioned contact action identification device And response events execution module;
The response events execution module be used for according to the contact action recognition methods to the judgement of contact action as a result, Perform corresponding response events.
Meanwhile the present invention also provides a kind of game control method, the step of including above-mentioned touch control operation recognition methods, And
According to the touch control operation recognition methods to the judgement of touch control operation as a result, responding corresponding game action.
Correspondingly, the present invention also provides a kind of game control device, including above-mentioned touch control operation identification device and Game action respond module;
The game action respond module be used for according to the touch control operation identification device to the judgement of touch control operation as a result, Respond corresponding game action.
Implement the embodiment of the present invention, have the advantages that:
An embodiment of the present invention provides a kind of touch control operation recognition methods, by obtaining the maximum in the second duration threshold value Acceleration (i.e. second order peak acceleration), and compared with preset first acceleration rate threshold and the second acceleration rate threshold, if second order Peak acceleration is more than the first acceleration rate threshold and less than the second acceleration rate threshold, then is determined as drag operation;If second order is maximum Acceleration is more than the second acceleration rate threshold, then is determined as swiping.First acceleration rate threshold, which is practically used for distinguishing, clicks length By a generic operation and the generic operation that swipes is pulled, and the second acceleration rate threshold is pulled and is swiped for distinguishing.The present invention Embodiment, which overcomes the prior art, cannot efficiently differentiate dragging and the defects of swipe, by setting the first acceleration rate threshold, the Two acceleration rate thresholds and the second duration threshold value can efficiently differentiate dragging and swipe, it is highly preferred that the present invention can also lead to It crosses the first duration threshold value of setting to click and long-press to distinguish, is click, length so as to which touch control operation is fast and accurately identified By, pull or swipe.The embodiment of the present invention additionally provides a kind of touch control operation response method and game control method, according to tactile The judgement of operation is controlled as a result, promptly performing corresponding response events or the corresponding game action of response, as long as because when operating Length, which reaches the second duration threshold value, to be judged, therefore the response time for pulling or swiping all is the second duration threshold value, and nothing It need to just be responded after touch screen.Meanwhile the embodiment of the present invention additionally provides touch control operation identification device, touch control operation response dress It puts and plays control device, be respectively used to perform above-mentioned touch control operation recognition methods, touch control operation response method and game behaviour Prosecutor method.
Description of the drawings
Fig. 1 is that the present inventor is swiped and acceleration-time chart during drag operation by what test statistics obtained;
Fig. 2 is the flow diagram of the first embodiment of touch control operation recognition methods provided by the invention;
Fig. 3 is the flow diagram of the second embodiment of touch control operation recognition methods provided by the invention;
Fig. 4 is the flow diagram of the 3rd embodiment of touch control operation recognition methods provided by the invention;
Fig. 5 is the flow diagram of the fourth embodiment of touch control operation recognition methods provided by the invention;
Fig. 6 is the schematic diagram of the fourth embodiment of touch control operation recognition methods provided by the invention.
Fig. 7 is the structure diagram of the first embodiment of touch control operation identification device provided by the invention;
Fig. 8 is the structure diagram of the second embodiment of touch control operation identification device provided by the invention;
Fig. 9 is the structure diagram of the 3rd embodiment of touch control operation identification device provided by the invention;
Figure 10 is the structure diagram of the fourth embodiment of touch control operation identification device provided by the invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts Embodiment shall fall within the protection scope of the present invention.
Touch control operation meta schema includes click, long-press, slip, dragging, and others operation is combined by these types of atom operation It forms.When user operates on the screen, arbitrary operation is the variation of two dimensions of time and space, is come from time dimension It says:Operation is quick or at a slow speed, for Spatial Dimension:Operation is static or movement.Pass through time and Spatial Dimension Combination, can form four basic atom operations.It is quick on time dimension and is static operation on Spatial Dimension, Then it is considered clicking operation;It is quick on time dimension and is the operation of movement on Spatial Dimension, then it is assumed that is to swipe Operation;On time dimension be at a slow speed and be static operation on Spatial Dimension, then it is assumed that be long-press operation;In time dimension Be on degree at a slow speed and the operation that on Spatial Dimension is movement, then it is assumed that be drag operation.
Inventors noted that swiping is extremely similar with drag operation behavior, and still, the operation acceleration of the two It is different, swiping is fast, and drag operation is slow.From the viewpoint of user, swipe and pull when user receives respectively Instruction when, message is passed to the muscle group of control finger by nervous system by the brain of user, and muscle group is receiving instruction Afterwards, it can be stretched with different strength degree and shrink (dynamics that swipes, which is more than, to be pulled), the movement that the finger enable is responded. This strength is ascending, is finally reduced again.With reference to Newton interpolation algorithm, compared with service speed, the intention of user (strength that namely muscle shows) and the acceleration of finger motion are a kind of more direct correspondences.For this purpose, invention People is by testing the acceleration-temporal information for having counted user respectively and having swiped and pulling.As shown in Figure 1, it is inventor's statistics Acceleration-time chart during what is obtained swipe and pull.
From figure 1 it appears that as the time increases, the acceleration of swiping and drag operation gradually increases, then Acceleration declines again, when the time is in TimeSwipeWhen, the acceleration difference of the two reaches maximum.Therefore, we can exist according to user TimeSwipeWithin peak acceleration distinguish swiping and drag operation.We set up an acceleration threshold herein Value (uses Acce in figureSwipeRepresent), that is to say, that drag operation is in TimeSwipeInterior peak acceleration is less than or equal to AcceSwipe, and swiping is in TimeSwipeInterior peak acceleration is more than AcceSwipe
Based on the above-mentioned Method And Principle for distinguishing swiping and drag operation, the present invention provides a kind of knowledges of touch control operation Other method.It is the flow diagram of the first embodiment of touch control operation recognition methods provided by the invention referring to Fig. 1, this method Include the following steps:
S101, in response to the touch control operation of user, the operation duration of start recording touch control operation;
S102 when the operation duration reaches the second duration threshold value, obtains second order peak acceleration;
S103, if the second order peak acceleration obtained is more than the first acceleration rate threshold and less than the second acceleration threshold Value, judges the touch control operation for drag operation;
S104 if the second order peak acceleration obtained is more than second acceleration rate threshold, judges the touch-control behaviour As swiping;
Wherein, the second order peak acceleration refers to that touch control operation is most during a length of second duration threshold value when operated High acceleration;The second duration threshold value, the first acceleration rate threshold and the second acceleration rate threshold are preset value, and described first adds Threshold speed is less than second acceleration rate threshold.
It should be noted that the touch control operation in response to user refers to, detect that user's (such as saying with finger) connects Contact the signal generated in a flash of screen, similarly, what is hereinafter occurred terminates to refer to use in response to user's touch control operation The signal generated in a flash that family (such as saying with finger) frames out, these are all that those skilled in the art can be appreciated simultaneously And determine.
In step S103 and S104, if the second order peak acceleration obtained is equal to second acceleration rate threshold, It can be determined that as drag operation or swiping, mainly judged according to advance setting.
The principle of touch control operation recognition methods provided in this embodiment is as follows:By obtaining in the second duration threshold value most High acceleration (i.e. second order peak acceleration), and compared with preset first acceleration rate threshold and the second acceleration rate threshold, if two Rank peak acceleration is more than the first acceleration rate threshold and less than the second acceleration rate threshold, then is determined as drag operation;If second order is most High acceleration is more than the second acceleration rate threshold, then is determined as swiping.First acceleration rate threshold is practically used for distinguishing and click Long-press is a kind of and pulls the one kind that swipes, and the second acceleration rate threshold is pulled and swiped for distinguishing.
The embodiment of the present invention overcomes the defects of prior art cannot efficiently differentiate dragging and swipe, and passes through setting first Acceleration rate threshold, the second acceleration rate threshold and the second duration threshold value can efficiently differentiate and click long-press one kind and pull Swipe a kind of operation, and determines that touch control operation still swipes to pull.In the present embodiment, as long as operation duration reaches the Two duration threshold values can be judged that the i.e. response time of drag operation and swiping is all the second duration threshold value, and Without terminating just to respond until touch control operation, therefore the embodiment of the present invention can quickly, accurately and efficiently identify dragging and draw Shield two kinds of touch control operations.
Specifically, the embodiment of the present invention further includes following steps:
In response to the touch control operation of user, with the position of acquisition of certain sampling period touch screen point;
According to the touch screen point in the position at t-1 moment, t moment and t+1 moment, calculate in t moment contact action Acceleration simultaneously stores;T is positive integer.
Computational methods are as follows:
1) according to the touch screen point in t-1 moment and the position of t moment, the movement at calculating t-1 moment to t moment touch screen point Distance l1
2) according to the touch screen point in t moment and the position at t+1 moment, the movement of calculating t moment to t+1 moment touch screen point Distance l2
3) it is varied less in view of the acceleration a from the t-1 moment to t moment contact action, then according to physics formula a= Δs/T2=(l2-l1)/T2The acceleration a in t moment contact action can be calculated.
It is above one of which calculation, but is not limited to above-mentioned mode.
Scheme more preferably further includes after the acceleration of t moment touch control operation is calculated:
By in the acceleration of t moment touch control operation compared with history peak acceleration;
If the acceleration in t moment touch control operation is more than history peak acceleration, by the history peak acceleration more New is the acceleration in t moment touch control operation;
Then described when the operation duration reaches the second duration threshold value, it is specifically when described to obtain second order peak acceleration When operation duration reaches the second duration threshold value, history peak acceleration is obtained as second order peak acceleration.
If the acceleration value at all moment before relatively just is obtained peak acceleration when just thinking to reach some condition, Very big calculation amount can be generated.Therefore in the scheme of the present embodiment, whenever an acceleration value is calculated, this can be accelerated Angle value is compared with history peak acceleration, if the acceleration value is more than history peak acceleration, the history maximum is accelerated Degree is updated to the acceleration value.So as to when needing to obtain peak acceleration, directly acquire history peak acceleration, greatly Reduce system-computed amount.Therefore, the scheme of the peak acceleration of above-mentioned acquisition touch control operation be have it is more accurate, more convenient with And more efficiently the advantages of.
It is the flow diagram of the second embodiment of touch control operation recognition methods provided by the invention referring to Fig. 2, this method Step S101, S102, S103 and S104 of first embodiment including above-mentioned touch control operation recognition methods, further include step S105 It is specific as follows with step S106:
S105 when the operation duration reaches preset first duration threshold value, obtains single order peak acceleration;
S106 if the single order peak acceleration obtained is less than first acceleration rate threshold, judges the touch-control behaviour It is operated as long-press.
Wherein, the single order peak acceleration refers to that touch control operation is most during a length of first duration threshold value in operation High acceleration;The first duration threshold value is less than the second duration threshold value.
In step s 106, when the single order peak acceleration is equal to first acceleration rate threshold, it is possible to determine that described Contact action is long-press operation, can also be determined as other operations of non-long-press operation, this be can according to advance setting come Judge.
The present embodiment is being further improved to the first embodiment of above-mentioned touch control operation recognition methods, passes through setting first Duration threshold value come judge long-press operate.It is spatially static, then work as institute at a slow speed to be in time due to long-press operation The peak acceleration (i.e. single order peak acceleration) when operation duration reaches preset first duration threshold value is stated less than described first During acceleration rate threshold, you can judge touch control operation for long-press.As long as operation duration, which reaches the first duration threshold value, to be judged, That is the response time of long-press operation is the first duration threshold value, without waiting until that touch control operation terminates just to respond, therefore this hair Bright embodiment can quickly, accurately and efficiently identify dragging, swipe and three kinds of touch control operations of long-press.
It is the flow diagram of the 3rd embodiment of touch control operation recognition methods provided by the invention referring to Fig. 3, this method Step S101~S106 of second embodiment including above-mentioned touch control operation recognition methods, further includes step S107 and step S108, it is specific as follows:
S107 terminates in response to user's touch control operation, obtains whole peak acceleration and complete operation duration;
S108, if the whole peak acceleration obtained is less than first acceleration rate threshold, and the complete operation Duration is less than the first duration threshold value, judges the touch control operation for clicking operation;
Wherein, the complete operation duration refers to the operation duration recorded at the end of responding user's touch-control;The whole process is most High acceleration refers to the peak acceleration of the touch control operation in the complete operation duration.
The present embodiment is being further improved to the second embodiment of above-mentioned touch control operation recognition methods.Due to single-click operation It is quick in time, is spatially static, complete operation duration should be less than the first duration threshold value, and its Whole peak acceleration should be less than first acceleration rate threshold.Therefore in the present embodiment, in response to user's touch control operation At the end of, whole peak acceleration is first obtained, then judge whether to meet:The whole process peak acceleration is less than described first and accelerates Threshold value is spent, and the complete operation duration is less than the first duration threshold value;If so, it is determined as single-click operation.Single-click operation Response time be complete operation duration, therefore the embodiment of the present invention can quickly, accurately and efficiently identify dragging, swipe, Long-press and click four kinds of touch control operations.
It is the flow diagram of the fourth embodiment of touch control operation recognition methods provided by the invention referring to Fig. 4, this method Step S101~S108 of 3rd embodiment including above-mentioned touch control operation recognition methods further includes step S109, specific as follows:
S109, if the whole peak acceleration obtained is more than first acceleration rate threshold, and the complete operation Duration is less than the second duration threshold value, judges the touch control operation for swiping.
In first, second or third embodiment of touch control operation recognition methods provided by the invention, swiping is judged Premise be operation duration to reach the second duration threshold value.But since swiping is a relatively violent movement so that behaviour Make that there are many unstability, swiping does not probably come into full contact with screen due to finger, and causes complete operation Duration is less than the second duration threshold value.In this case, at the end of in response to user's touch control operation, judge whether to meet following item Part:The whole process peak acceleration is more than first acceleration rate threshold, and the operation duration is less than the second duration threshold Value;If so, judge the touch control operation for swiping.I.e. there are two types of situations for swiping, and one kind is complete operation duration More than the second duration threshold value, and the peak acceleration in the second duration threshold value is more than the second acceleration rate threshold, and another kind has been Whole operation duration is less than the second duration threshold value, and the peak acceleration in complete operation duration is more than the first acceleration rate threshold. Therefore, the present invention also further contemplates the unstable characteristic of swiping, is more than in the whole peak acceleration of acquisition First acceleration rate threshold, and it is described operation duration be less than the second duration threshold value when, judge the touch control operation for draw Screen operation, so as to recognition accuracy higher.
As shown in fig. 6, it is the schematic diagram of the fourth embodiment of touch control operation recognition methods provided by the invention.
It is just over assuming that the touch control operation of user is operated at it when duration does not reach the first duration threshold value, from Fig. 6 is it is found that touch control operation may be clicking operation or swiping, thus by obtaining whole peak acceleration and described in judging The size of whole peak acceleration and the first acceleration rate threshold, you can it is clicking operation or swiping to determine touch control operation.
Assuming that the operation duration of the touch control operation of user is greater than or equal to the first duration threshold value (TimeClick), from Fig. 6 It is found that touch control operation may be long-press operation, swiping or drag operation.When by acquisition, length reaches first in operation Peak acceleration during long threshold value, i.e. single order peak acceleration, and judge the single order peak acceleration and the first acceleration threshold It is worth (AcceClick) size, when the single order peak acceleration is less than first acceleration rate threshold, judge touch-control behaviour It is operated as long-press.It should be noted that if the single order peak acceleration is more than first acceleration rate threshold, due to touch-control Operation may be swiping or drag operation, thus not can determine that the type of touch control operation still.
If the operation duration of the touch control operation of user is greater than or equal to the second duration threshold value (TimeSwipe), from Fig. 6 It is found that touch control operation may be swiping, drag operation or long-press operation.But since long-press operation has been up in operation During to the first duration threshold value judge, therefore long-press operation will not be judged again at this time, it is only necessary to judge that touch-control is grasped As swiping or drag operation.Peak acceleration when reaching the second duration threshold value by obtaining length in operation, i.e., Second order peak acceleration, and judge the second order peak acceleration and the first acceleration rate threshold (AcceClick), the second acceleration threshold It is worth (AcceSwipe) size, when the second order peak acceleration is more than the first acceleration rate threshold and less than the second acceleration rate threshold When, it is determined as drag operation;When the second order peak acceleration is more than the second acceleration rate threshold, it is determined as swiping.
Above-mentioned touch control operation recognition methods can also be applied in combination.For example, first carrying out long-press operation, then carry out dragging behaviour Make, long-press operation responds when reaching the first duration threshold value, and drag operation responds when reaching the second duration threshold value, in intelligent terminal Can usually it be used for some application closing or shift position.
Four embodiments of contact action recognition methods provided by the invention be all by the relationship of acceleration and time come It identifies contact action, similarly, can also be identified by operating distance and time relationship or speed and the relationship of time.But Since distance is the integral result of speed in time, the variation more " slow ", therefore pass through speed of specific rate is wanted in the variation of distance It spends and response time of contact action is identified by distance to identify that the response time of contact action is less than;Similarly, due to speed Degree is the integral result of acceleration in time, and the variation of speed therefore passes through acceleration than the variation more " slow " of acceleration It spends and response time of contact action is identified by speed to identify that the response time of contact action is less than.Thus the present invention Scheme can more directly react the true intention of human manipulation, responsively faster.
Correspondingly, the present invention also provides a kind of touch control operation identification devices.
As shown in fig. 7, it is the structure diagram of the first embodiment of touch control operation identification device provided by the invention, packet It includes:
Duration logging modle 101 is operated, for the touch control operation in response to user, during the operation of start recording touch control operation It is long;
Second order acceleration acquisition module 102, for when the operation duration reaches the second duration threshold value, obtaining second order most High acceleration;
Determination module 103 is pulled, for being more than the first acceleration rate threshold and small when the second order peak acceleration obtained When the second acceleration rate threshold, judge the touch control operation for drag operation;
First swipes determination module 104, for being more than second acceleration when the second order peak acceleration obtained During threshold value, judge the touch control operation for swiping;
Wherein, the second order peak acceleration refers to that touch control operation is most during a length of second duration threshold value when operated High acceleration;The second duration threshold value, the first acceleration rate threshold and the second acceleration rate threshold are preset value, and described first adds Threshold speed is less than second acceleration rate threshold.
In the present embodiment, the touch control operation identification device further includes:
Touch screen point acquisition module, for the touch control operation in response to user, with the position of acquisition of certain sampling period touch screen point It puts;
Acceleration calculation module, for according to the touch screen point in the position at t-1 moment, t moment and t+1 moment, meter Calculate the acceleration in t moment contact action and storage;T is positive integer.
Scheme more preferably, the touch control operation identification device further include:
Acceleration comparison module, for by the acceleration of t moment touch control operation compared with history peak acceleration;
Peak acceleration update module, for when the acceleration in t moment touch control operation be more than history peak acceleration when, The history peak acceleration is updated to the acceleration in t moment touch control operation;
Then the second order acceleration acquisition module is specifically used for, when the operation duration reaches the second duration threshold value, obtaining History peak acceleration is as second order peak acceleration.
Touch control operation identification device provided in this embodiment is used to perform the first implementation of above-mentioned touch control operation recognition methods The method flow of example, principle and advantageous effect are corresponding, thus are repeated no more.
As shown in figure 8, it is the structure diagram of the second embodiment of touch control operation identification device provided by the invention, packet Include operation duration logging modle 101 in the first embodiment of above-mentioned touch control operation identification device, second order acceleration acquisition module 102nd, it pulls determination module 103 and first swipes determination module 104, additionally include:
Single order acceleration acquisition module 105, for when the operation duration reaches preset first duration threshold value, obtaining Single order peak acceleration;
Long-press determination module 106, for being less than first acceleration rate threshold when the single order peak acceleration obtained When, judge that the touch control operation is operated for long-press;
Wherein, the single order peak acceleration refers to that touch control operation is most during a length of first duration threshold value in operation High acceleration;The first duration threshold value is less than the second duration threshold value.
Touch control operation identification device provided in this embodiment is used to perform the second implementation of above-mentioned touch control operation recognition methods The method flow of example, principle and advantageous effect are corresponding, thus are repeated no more.
As shown in figure 9, it is the structure diagram of the 3rd embodiment of touch control operation identification device provided by the invention, packet Include operation duration logging modle 101 in the second embodiment of above-mentioned touch control operation identification device, second order acceleration acquisition module 102nd, it pulls determination module 103, first swipe determination module 104, single order acceleration acquisition module 105 and long-press determination module 106, additionally include:
Whole physical quantity acquisition module 107, for terminating in response to user's touch control operation, obtain whole peak acceleration with Complete operation duration;
Determination module 108 is clicked, for being less than first acceleration rate threshold when the whole peak acceleration obtained, And the complete operation duration be less than the first duration threshold value when, judge the touch control operation for clicking operation;
Wherein, the complete operation duration refers to the operation duration recorded at the end of responding user's touch-control;The whole process is most High acceleration refers to the peak acceleration of the touch control operation in the complete operation duration.
The third that touch control operation identification device provided in this embodiment is used to perform above-mentioned touch control operation recognition methods is implemented The method flow of example, principle and advantageous effect are corresponding, thus are repeated no more.
As shown in figure 9, it is the structure diagram of the fourth embodiment of touch control operation identification device provided by the invention, packet Include operation duration logging modle 101 in the 3rd embodiment of above-mentioned touch control operation identification device, second order acceleration acquisition module 102nd, it pulls determination module 103, first swipe determination module 104, single order acceleration acquisition module 105, long-press determination module 106th, whole physical quantity acquisition module 107 and click determination module 108, further include:
Second swipes determination module 109, for being more than first acceleration when the whole peak acceleration obtained Threshold value, and the complete operation duration be less than the second duration threshold value when, judge the touch control operation for swiping.
Touch control operation identification device provided in this embodiment is used to perform the 4th implementation of above-mentioned touch control operation recognition methods The method flow of example, principle and advantageous effect are corresponding, thus are repeated no more.
Meanwhile the present invention also provides a kind of contact action response method, including above-mentioned contact action recognition methods Step and
According to the contact action recognition methods to the judgement of contact action as a result, performing corresponding response events.
Correspondingly, the present invention also provides a kind of contact action responding device, including above-mentioned contact action identification device And response events execution module;
The response events execution module be used for according to the contact action recognition methods to the judgement of contact action as a result, Perform corresponding response events.
Wherein, the response time of clicking operation is complete operation duration, and the response time of drag operation is the first duration threshold Value, the response time of drag operation is the second duration threshold value, when the response time of swiping is complete operation duration and second Smaller in long threshold value, the response time of four kinds of touch control operations are both less than the second duration threshold value, it is seen that the speed of response quickly, And accuracy rate is very high.
In addition, the present invention also provides a kind of one embodiment for control method of playing, including any of the above-described embodiment institute The method and step for the touch control operation recognition methods stated and according to the touch control operation recognition methods to the judgement knot of touch control operation Fruit responds corresponding game action.
For example, when the touch control operation is determined as drag operation, the shift action of game role, control game angle are responded Color moves on picture;When the touch control operation is determined as swiping, the attack of game role, control game are responded Role shoots or boxing.
In addition, the present invention also provides a kind of one embodiment for control device of playing, including any of the above-described embodiment institute The touch control operation identification device and game action respond module stated;
The game action respond module be used for according to the touch control operation recognition methods to the judgement of touch control operation as a result, Perform corresponding response events.
An embodiment of the present invention provides a kind of touch control operation recognition methods, and use is distinguished from two dimensions of acceleration and time The operation at family, by obtaining peak acceleration (i.e. second order peak acceleration) in the second duration threshold value, and with preset the One acceleration rate threshold and the second acceleration rate threshold compare, if second order peak acceleration is more than the first acceleration rate threshold and less than second Acceleration rate threshold is then determined as drag operation;If second order peak acceleration is more than the second acceleration rate threshold, it is determined as the behaviour that swipes Make.First acceleration rate threshold is practically used for distinguishing click long-press one kind and pulls the one kind that swipes, and the second acceleration rate threshold It is then to pull and swipe for distinguishing.The embodiment of the present invention overcomes the prior art and cannot efficiently differentiate dragging and swipe scarce Fall into, by setting the first acceleration rate threshold, the second acceleration rate threshold and the second duration threshold value, can efficiently differentiate dragging and Swipe, it is highly preferred that the present invention can also be clicked and long-press by setting the first duration threshold value to distinguish, so as to it is quick, Accurately identify that touch control operation is click, long-press, pulls or swipe.The embodiment of the present invention additionally provides a kind of touch control operation Response method and game control method, according to the judgement of touch control operation as a result, promptly performing corresponding response events or response Corresponding game action, as long as because operation duration reaches the second duration threshold value and will be judged, therefore pull or swipe Response time is all the second duration threshold value, without just being responded after touch screen.Meanwhile the embodiment of the present invention additionally provide it is tactile Control operation identification device, touch control operation responding device and game control device are respectively used to perform above-mentioned touch control operation identification Method, touch control operation response method and game control method.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer read/write memory medium In, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The above is the preferred embodiment of the present invention, it is noted that for those skilled in the art For, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also considered as Protection scope of the present invention.

Claims (16)

1. a kind of touch control operation recognition methods, which is characterized in that including:
In response to the touch control operation of user, the operation duration of start recording user;
When the operation duration reaches the second duration threshold value, second order peak acceleration is obtained;
If the second order peak acceleration obtained is more than the first acceleration rate threshold and is less than the second acceleration rate threshold, described in judgement Touch control operation is drag operation;
If the second order peak acceleration obtained is more than second acceleration rate threshold, judge the touch control operation for the behaviour that swipes Make;
Wherein, the second order peak acceleration refers to that touch control operation is in the behaviour during a length of second duration threshold value when operated Make the peak acceleration reached in duration;The second duration threshold value, the first acceleration rate threshold and the second acceleration rate threshold are pre- If value, and first acceleration rate threshold is less than second acceleration rate threshold.
2. touch control operation recognition methods as described in claim 1, the touch control operation recognition methods further includes:
When the operation duration reaches preset first duration threshold value, single order peak acceleration is obtained;
If the single order peak acceleration obtained is less than first acceleration rate threshold, judge that the touch control operation is grasped for long-press Make;
Wherein, the single order peak acceleration refers to that touch control operation is in the behaviour during a length of first duration threshold value when operated Make the peak acceleration reached in duration;The first duration threshold value is less than the second duration threshold value.
3. touch control operation recognition methods as claimed in claim 2, the touch control operation recognition methods further includes:
Terminate in response to user's touch control operation, obtain whole peak acceleration and complete operation duration;
If the whole peak acceleration obtained is less than first acceleration rate threshold, and the complete operation duration is less than institute The first duration threshold value is stated, judges the touch control operation for clicking operation;
Wherein, the complete operation duration refers to the operation duration recorded at the end of responding user's touch-control;The whole process is most greatly Speed refers to the peak acceleration of the touch control operation in the complete operation duration.
4. touch control operation recognition methods as claimed in claim 3, the touch control operation recognition methods further includes:
If the whole peak acceleration obtained is more than first acceleration rate threshold, and the complete operation duration is less than institute The second duration threshold value is stated, judges the touch control operation for swiping.
5. the touch control operation recognition methods as described in Claims 1 to 4 is any, the touch control operation recognition methods further includes:
In response to the touch control operation of user, with the position of acquisition of certain sampling period touch screen point;
According to the touch screen point in the position at t-1 moment, t moment and t+1 moment, the acceleration in t moment contact action is calculated It spends and stores;T is positive integer.
6. touch control operation recognition methods as claimed in claim 5, which is characterized in that t moment touch control operation is being calculated It is further included after acceleration:
By in the acceleration of t moment contact action compared with history peak acceleration;
If the acceleration in t moment contact action is more than history peak acceleration, the history peak acceleration is updated to In the acceleration of t moment contact action;
Then described when the operation duration reaches the second duration threshold value, it is specifically when the operation to obtain second order peak acceleration When duration reaches the second duration threshold value, history peak acceleration is obtained as second order peak acceleration.
7. a kind of touch control operation identification device, which is characterized in that including:
Duration logging modle is operated, for the touch control operation in response to user, the operation duration of start recording touch control operation;
Second order acceleration acquisition module, for when the operation duration reaches the second duration threshold value, obtaining second order maximum and accelerating Degree;
Dragging determination module, for when the second order peak acceleration obtained is more than the first acceleration rate threshold and adds less than second During threshold speed, judge the touch control operation for drag operation;
First swipes determination module, for when the second order peak acceleration of acquisition is more than second acceleration rate threshold, Judge the touch control operation for swiping;
Wherein, the second order peak acceleration refers to that touch control operation is in the behaviour during a length of second duration threshold value when operated Make the peak acceleration reached in duration;The second duration threshold value, the first acceleration rate threshold and the second acceleration rate threshold are pre- If value, and first acceleration rate threshold is less than second acceleration rate threshold.
8. touch control operation identification device as claimed in claim 7, which is characterized in that the touch control operation identification device also wraps It includes:
Single order acceleration acquisition module, for when the operation duration reaches preset first duration threshold value, obtaining single order most High acceleration;
Long-press determination module, for when the single order peak acceleration of acquisition is less than first acceleration rate threshold, judging The touch control operation is operated for long-press;
Wherein, the single order peak acceleration refers to that touch control operation is in the behaviour during a length of first duration threshold value when operated Make the peak acceleration reached in duration;The first duration threshold value is less than the second duration threshold value.
9. touch control operation identification device as claimed in claim 8, which is characterized in that the touch control operation identification device also wraps It includes:
Whole physical quantity acquisition module for terminating in response to user's touch control operation, obtains whole peak acceleration and complete behaviour Make duration;
Determination module is clicked, for being less than first acceleration rate threshold, and described when the whole peak acceleration obtained When complete operation duration is less than the first duration threshold value, judge the touch control operation for clicking operation;
Wherein, the complete operation duration refers to the operation duration recorded at the end of responding user's touch-control;The whole process is most greatly Speed refers to the peak acceleration of the touch control operation in the complete operation duration.
10. touch control operation identification device as claimed in claim 9, which is characterized in that the touch control operation identification device also wraps It includes:
Second swipes determination module, for being more than first acceleration rate threshold when the whole peak acceleration obtained, and When the complete operation duration is less than the second duration threshold value, judge the touch control operation for swiping.
11. the touch control operation identification device as described in claim 7~10 is any, which is characterized in that the knowledge of the touch control operation Other device further includes:
Touch screen point acquisition module, for the touch control operation in response to user, with the position of acquisition of certain sampling period touch screen point;
Acceleration calculation module, in the position at t-1 moment, t moment and t+1 moment, being calculated according to the touch screen point in t The acceleration of moment contact action and storage;T is positive integer.
12. touch control operation identification device as claimed in claim 11, which is characterized in that the touch control operation identification device also wraps It includes:
Acceleration comparison module, for by the acceleration of t moment touch control operation compared with history peak acceleration;
Peak acceleration update module, for when the acceleration in t moment touch control operation be more than history peak acceleration when, by institute It states history peak acceleration and is updated to acceleration in t moment touch control operation;
Then the second order acceleration acquisition module is specifically used for, when the operation duration reaches the second duration threshold value, obtaining history Peak acceleration is as second order peak acceleration.
13. a kind of contact action response method, which is characterized in that know including the contact action as described in claim 1~6 is any The step of other method and
According to the contact action recognition methods to the judgement of contact action as a result, performing corresponding response events.
14. a kind of contact action responding device, which is characterized in that including the contact action as described in claim 7~12 is any Identification device and response events execution module;
The response events execution module is used for according to the contact action recognition methods to the judgement of contact action as a result, performing Corresponding response events.
15. a kind of game control method, which is characterized in that including the touch control operation identification side as described in claim 1~6 is any The step of method and
According to the touch control operation recognition methods to the judgement of touch control operation as a result, responding corresponding game action.
16. a kind of game control device, which is characterized in that including the touch control operation identification as described in claim 7~12 is any Device and game action respond module;
The game action respond module is used for according to the touch control operation identification device to the judgement of touch control operation as a result, response Corresponding game action.
CN201510471718.3A 2015-08-04 2015-08-04 Touch control operation identifies and response method, device and game control method, device Active CN105183340B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510471718.3A CN105183340B (en) 2015-08-04 2015-08-04 Touch control operation identifies and response method, device and game control method, device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510471718.3A CN105183340B (en) 2015-08-04 2015-08-04 Touch control operation identifies and response method, device and game control method, device

Publications (2)

Publication Number Publication Date
CN105183340A CN105183340A (en) 2015-12-23
CN105183340B true CN105183340B (en) 2018-06-26

Family

ID=54905449

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510471718.3A Active CN105183340B (en) 2015-08-04 2015-08-04 Touch control operation identifies and response method, device and game control method, device

Country Status (1)

Country Link
CN (1) CN105183340B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11408787B2 (en) * 2019-10-15 2022-08-09 Cirrus Logic, Inc. Control methods for a force sensor system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102739873A (en) * 2012-07-13 2012-10-17 上海汉翔信息技术有限公司 System and method for implementing slipping operation auxiliary information input control function in portable terminal equipment
CN103034343A (en) * 2011-10-08 2013-04-10 张海锋 Method and device for controlling sensing mouse
CN103279223A (en) * 2013-05-27 2013-09-04 深圳市金立通信设备有限公司 Method, device and system for touch information feedback
CN104793744A (en) * 2015-04-16 2015-07-22 天脉聚源(北京)传媒科技有限公司 Gesture operation method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102013007250A1 (en) * 2013-04-26 2014-10-30 Inodyn Newmedia Gmbh Procedure for gesture control

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103034343A (en) * 2011-10-08 2013-04-10 张海锋 Method and device for controlling sensing mouse
CN102739873A (en) * 2012-07-13 2012-10-17 上海汉翔信息技术有限公司 System and method for implementing slipping operation auxiliary information input control function in portable terminal equipment
CN103279223A (en) * 2013-05-27 2013-09-04 深圳市金立通信设备有限公司 Method, device and system for touch information feedback
CN104793744A (en) * 2015-04-16 2015-07-22 天脉聚源(北京)传媒科技有限公司 Gesture operation method and device

Also Published As

Publication number Publication date
CN105183340A (en) 2015-12-23

Similar Documents

Publication Publication Date Title
EP2523086B1 (en) Method and device for window object inertial movement
JP5992734B2 (en) Apparatus and method for providing dynamic user interface considering physical characteristics of user
CN105045454B (en) A kind of terminal false-touch prevention method and terminal
CN105183214B (en) Touch control operation identifies and response method, device and game control method, device
CN104571852B (en) The moving method and device of icon
CN104166553B (en) A kind of display methods and electronic equipment
US9715282B2 (en) Closing, starting, and restarting applications
US20200218356A1 (en) Systems and methods for providing dynamic haptic playback for an augmented or virtual reality environments
CN108144293A (en) Information processing method, information processing device, electronic equipment and storage medium
CN110090443B (en) Virtual object control method and device, storage medium and electronic device
CN105487809A (en) Terminal control method and device
CN105468279B (en) Contact action identification and response method, device and game control method, device
WO2012091862A1 (en) Systems and methods for adaptive gesture recognition
CN105159573B (en) Touch control operation identifies and response method, device and game control method, device
CN106984044B (en) Method and equipment for starting preset process
CN113220210B (en) Operation identification method, device, electronic equipment and computer readable medium
CN105100875B (en) A kind of control method and device of recording of multimedia information
CN105183340B (en) Touch control operation identifies and response method, device and game control method, device
CN105446597B (en) The methods of exhibiting of the function introduction information of application program shows device and terminal
KR101656518B1 (en) User device for providing elastic button, method for performing specific function thereof and user interface
CN106484235B (en) A kind of self-defined method and apparatus that game operation interface is set
CN106621321A (en) Game object identification method and device
CN110354494B (en) Method and device for controlling object in game, computer equipment and storage medium
CN108762568B (en) Broken line repairing method and device for touch screen and household appliance
CN107943536A (en) Adjust method, apparatus, storage medium and the electronic equipment of threshold value

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant