CN105183214A - Touch operation recognition and response method, apparatus and game control method, apparatus - Google Patents

Touch operation recognition and response method, apparatus and game control method, apparatus Download PDF

Info

Publication number
CN105183214A
CN105183214A CN201510471795.9A CN201510471795A CN105183214A CN 105183214 A CN105183214 A CN 105183214A CN 201510471795 A CN201510471795 A CN 201510471795A CN 105183214 A CN105183214 A CN 105183214A
Authority
CN
China
Prior art keywords
touch control
control operation
distance
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.)
Granted
Application number
CN201510471795.9A
Other languages
Chinese (zh)
Other versions
CN105183214B (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 CN201510471795.9A priority Critical patent/CN105183214B/en
Publication of CN105183214A publication Critical patent/CN105183214A/en
Application granted granted Critical
Publication of CN105183214B publication Critical patent/CN105183214B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The present invention discloses a touch operation recognition method. The method comprises: in response to a touch operation of a user, starting to record operating time length of the touch operation; when the operating time length reaches a second time length threshold, obtaining a second-order operating distance; if the obtained second-order operating distance is greater than a first distance threshold and less than a second distance threshold, determining the touch operation is a drag operation; and if the obtained second-order operating distance is greater than the second distance threshold, determining the touch operation is a slide operation. According to embodiments of the present invention, the slide operation and the drag operation can be distinguished effectively, so that the touch operation of the user is recognized quickly and accurately. Embodiments of the present invention also provide a touch operation response method and a game control method. Meanwhile, embodiments of the present invention also provide a touch operation recognition apparatus, a touch operation response apparatus and a game control apparatus, respectively for performing the touch operation recognition method, the touch operation response method and the game control method described above.

Description

Touch control operation identification and response method, device and game control method, device
Technical field
The present invention relates to touch screen technology field, particularly relate to a kind of touch control operation identification and response method, device and game control method, device.
Background technology
Along with current touch screen is more and more universal, the operating habit of people when using electronic product changes touch screen mode into by past physical button.Touch screen button obtains user view, to instruct the method for operation of down-stream by the behavior of user's finger on screen that screen receives.Touch control operation meta schema comprise click, long by, slide, pull, other operation combines by this several atom operation.
Be a kind of closely similar behavior owing to pulling and swiping, their not a duck soup will be distinguished accurately and rapidly.The operation identification module that application software on current touch-screen equipment is equipped with still well can not be distinguished and swipe and drag operation, current operation identification module usually will swipe and pull and be considered as same operation, and click can only be identified at most simultaneously, length is pressed, and swipes or pulls three generic operations.In actual life, above Three models can not meet the demand that user uses.Such as, in many Games Softwares, the operation pulled can control the movement of game character, and the operation swiped is commonly used to attack target.Some application software in order to distinguish swipe and drag operation take extra restrictive condition, operation such as on screen in certain region is considered to swipe, operation in another region is considered to pull, such as, directionkeys in game application, its essence is exactly carry out scope restriction in a circular virtual region, movement in border circular areas is just considered to pull, and the mobile operation outside border circular areas is considered to swipe.But this setting is extremely disagreeableness, they or limit the input of user, or done extra requirement to the input of user, user pulls and swipes will carry out in different regions to input, and can be described as a kind of caving-in bash.Therefore, under the background that current mobile device reaches its maturity, effectively distinguish swipe and drag operation just become very necessary.
Summary of the invention
The object of the invention is to propose a kind of touch control operation identification and response method, device and game control method, device, effectively can distinguish and swipe and drag operation, thus identify the touch control operation of user quickly and accurately, and perform corresponding response events according to recognition result or respond corresponding game action.
To achieve the above object, the embodiment of the present invention provides a kind of touch control operation recognition methods, comprising:
In response to the touch control operation of user, start the operation duration of recording user;
When described operation duration reaches the second duration threshold value, obtain second order operating distance;
If the described second order operating distance obtained is greater than the first distance threshold and is less than second distance threshold value, judge that described touch control operation is as drag operation;
If the described second order operating distance obtained is greater than described second distance threshold value, judge that described touch control operation is as swiping;
Wherein, described second order operating distance refers to the long operating distance for touch control operation during described second duration threshold value when operated; Described second duration threshold value, the first distance threshold and second distance threshold value are preset value, and described first distance threshold is less than described second distance threshold value.
Further, when described operation duration reaches the first default duration threshold value, obtain single order operating distance;
If the described single order operating distance obtained is less than described first distance threshold, judge described touch control operation as long by operation;
Wherein, described single order operating distance refers to the long operating distance for touch control operation during described first duration threshold value when operated; Described first duration threshold value is less than described second duration threshold value.
Further, terminate in response to user's touch control operation, obtain substantial length of operation Distance geometry complete operation duration;
If the described substantial length of operation distance obtained is less than described first distance threshold, and described complete operation duration is less than described first duration threshold value, judges that described touch control operation is as clicking operation;
Wherein, the operation duration that records at the end of referring to response user touch-control of described complete operation duration; Described substantial length of operation distance refers to the operating distance of touch control operation in described complete operation duration.
Further, described touch control operation recognition methods also comprises:
If the described substantial length of operation distance obtained is greater than described first distance threshold, and described complete operation duration is less than described second duration threshold value, judges that described touch control operation is as swiping.
Further, described touch control operation recognition methods also comprises:
In response to the touch control operation of user, gather the position of touch screen point with certain sampling period;
According to described touch screen point in the position of t, described touch screen point at the position in t-1 moment and the operating distance at t-1 moment touch control operation, calculate the operating distance at t touch control operation and store; T is positive integer.
Correspondingly, the embodiment of the present invention also provides a kind of touch control operation recognition device, comprising:
Operation duration logging modle, for the touch control operation in response to user, starts the operation duration recording touch control operation;
Second order distance acquisition module, for when described operation duration reaches the second duration threshold value, obtains second order operating distance;
Pull determination module, during for being greater than the first distance threshold when the described second order operating distance obtained and being less than second distance threshold value, judge that described touch control operation is as drag operation;
First swipes determination module, during for being greater than described second distance threshold value when the described second order operating distance obtained, judges that described touch control operation is as swiping;
Wherein, described second order operating distance refers to the long operating distance for touch control operation during described second duration threshold value when operated; Described second duration threshold value, the first distance threshold and second distance threshold value are preset value, and described first distance threshold is less than described second distance threshold value.
Further, described touch control operation recognition device also comprises:
Single order distance acquisition module, for when described operation duration reaches the first default duration threshold value, obtains single order operating distance;
Length presses determination module, during for being less than described first distance threshold when the described single order operating distance obtained, judges described touch control operation as long by operation;
Wherein, described single order operating distance refers to the long operating distance for touch control operation during described first duration threshold value when operated; Described first duration threshold value is less than described second duration threshold value.
Further, described touch control operation recognition device also comprises:
Omnidistance physical quantity acquisition module, for terminating in response to user's touch control operation, obtains substantial length of operation distance and complete operation duration;
Clicking determination module, for being less than described first distance threshold when the described substantial length of operation distance obtained, and when described complete operation duration is less than described first duration threshold value, judging that described touch control operation is as clicking operation;
Wherein, the operation duration that records at the end of referring to response user touch-control of described complete operation duration; Described substantial length of operation distance refers to the operating distance of touch control operation in described complete operation duration.
Further, described touch control operation recognition device also comprises:
Second swipes determination module, for being greater than described first distance threshold when the described substantial length of operation distance obtained, and when described complete operation duration is less than described second duration threshold value, judges that described touch control operation is as swiping.
Further, the recognition device of described touch control operation also comprises:
Touch screen point acquisition module, for the touch control operation in response to user, gathers the position of touch screen point with certain sampling period;
Operating distance computing module, for according to described touch screen point in the position of t, described touch screen point at the position in t-1 moment and the operating distance at t-1 moment touch control operation, calculate the operating distance at t touch control operation and store; T is positive integer.
Meanwhile, present invention also offers a kind of contact action response method, comprise the step of above-mentioned contact action recognition methods, and
According to described contact action recognition methods to the result of determination of contact action, perform corresponding response events.
Correspondingly, present invention also offers a kind of contact action responding device, comprise above-mentioned contact action recognition device and response events execution module;
Described response events execution module be used for according to described contact action recognition methods to the result of determination of contact action, perform corresponding response events.
Meanwhile, present invention also offers a kind of game control method, comprise the step of above-mentioned touch control operation recognition methods, and
According to described touch control operation recognition methods to the result of determination of touch control operation, respond corresponding game action.
Correspondingly, present invention also offers a kind of game actuation means, comprise above-mentioned touch control operation recognition device and game action respond module;
Described game action respond module be used for according to described touch control operation recognition methods to the result of determination of touch control operation, respond corresponding game action.
Implement the embodiment of the present invention, there is following beneficial effect:
Embodiments provide a kind of touch control operation recognition methods, by obtaining the operating distance (i.e. second order operating distance) in the second duration threshold value, and compare with the first distance threshold preset and second distance threshold value, if second order operating distance is greater than the first distance threshold and be less than second distance threshold value, be then judged to be drag operation; If second order operating distance is greater than second distance threshold value, be then judged to be swiping.In fact first distance threshold is grown by a class for distinguishing to click and pulls the class that swipes, and second distance threshold value is then pull for distinguishing and swipe.The embodiment of the present invention overcomes prior art can not distinguish the defect pulling and swipe effectively, by setting the first distance threshold, second distance threshold value and the second duration threshold value, effectively can distinguish and pull and swipe, more preferably, the present invention can also by set the first duration threshold value distinguish click and grow by, thus can identify quickly and accurately touch control operation be click, long 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 the result of determination of touch control operation, promptly perform corresponding response events or respond corresponding game action, as long as will judge because operation duration reaches the second duration threshold value, therefore the response time pulled or swipe is all the second duration threshold value, and without the need to just responding after touch screen terminates.Meanwhile, the embodiment of the present invention additionally provides touch control operation recognition device, touch control operation responding device and game actuation means, is respectively used to perform above-mentioned touch control operation recognition methods, touch control operation response method and game control method.
Accompanying drawing explanation
To be the present inventor obtained by test statistics Fig. 1 swipes and displacement-time chart in drag operation process;
Fig. 2 is the schematic flow sheet of the first embodiment of touch control operation recognition methods provided by the invention;
Fig. 3 is the schematic flow sheet of the second embodiment of touch control operation recognition methods provided by the invention;
Fig. 4 is the schematic flow sheet of the 3rd embodiment of touch control operation recognition methods provided by the invention;
Fig. 5 is the schematic flow sheet of the 4th embodiment of touch control operation recognition methods provided by the invention;
Fig. 6 is the schematic diagram of the 4th embodiment of touch control operation recognition methods provided by the invention.
Fig. 7 is the structured flowchart of the first embodiment of touch control operation recognition device provided by the invention;
Fig. 8 is the structured flowchart of the second embodiment of touch control operation recognition device provided by the invention;
Fig. 9 is the structured flowchart of the 3rd embodiment of touch control operation recognition device provided by the invention;
Figure 10 is the structured flowchart of the 4th embodiment of touch control operation recognition device provided by the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Touch control operation meta schema comprise click, long by, slide, pull, other operation combines by this several atom operation.When user does in on-screen options, arbitrary operation is all changes of Time and place two dimensions, from time dimension: operation is quick or at a slow speed, from Spatial Dimension: operation is static or motion.By the combination of Time and place dimension, four basic atom operation can be formed.Time dimension is fast and is static operation on Spatial Dimension, then think clicking operation; Time dimension is fast and on Spatial Dimension be motion operation, then think swiping; Time dimension is at a slow speed and be static operation on Spatial Dimension, then think long by operation; Time dimension is at a slow speed and on Spatial Dimension be motion operation, then think drag operation.
Inventor notices, it is extremely similar for swiping with drag operation behavior, but both operating speeds are different, and swiping is fast, and drag operation is slow.For this reason, inventor is by testing the distance verses time information of having added up user respectively and having swiped and pulling.As shown in Figure 1, its be inventor add up obtain swipe and pull displacement-time chart in process.
As can be seen from Figure 1, the distance of swiping increases will faster than drag operation, along with the time increases, to swipe and gap between the operating distance pulled is widened, gradually when the time is at Time swipetime, both distances are moved to maximum.User is differed the time of distance maximums for being set as that the second duration threshold value (uses Time in figure two kinds of operations swiperepresent), therefore pull and be that the displacement of drag operation in the second duration threshold value is much smaller than swiping with the maximum difference that swipes.We set up a second distance threshold value (to use Dist in figure here swiperepresent), that is, the operating distance of drag operation in the second duration threshold value is less than second distance threshold value, and the operating distance of swiping in the second duration threshold value is greater than second distance threshold value.
Based on the Method And Principle of above-mentioned differentiation swiping and drag operation, the invention provides a kind of touch control operation recognition methods.See Fig. 1, be the schematic flow sheet of the first embodiment of touch control operation recognition methods provided by the invention, the method comprises the following steps:
S101, in response to the touch control operation of user, starts the operation duration recording touch control operation;
S102, when described operation duration reaches the second duration threshold value, obtains second order operating distance;
S103, if the described second order operating distance obtained is greater than the first distance threshold and is less than second distance threshold value, judges that described touch control operation is as drag operation;
S104, if the described second order operating distance obtained is greater than described second distance threshold value, judges that described touch control operation is as swiping;
Wherein, described second order operating distance refers to the long operating distance for touch control operation during described second duration threshold value when operated; Described second duration threshold value, the first distance threshold and second distance threshold value are preset value, and described first distance threshold is less than described second distance threshold value.
It should be noted that, touch control operation in response to user refers to and detects that user's (such as saying with finger) touches the signal produced in a flash of screen, in like manner, the touch control operation in response to user occurred hereinafter terminates to refer to the signal produced in a flash detecting that user's (such as saying with finger) frames out, and these are all that those skilled in the art can understand and determine.
In step S103 and S104, if the described second order operating distance obtained equals described second distance threshold value, can be judged to be drag operation or swiping, the setting in advance of main basis judges.
The principle of the touch control operation recognition methods that the present embodiment provides is as follows: by obtaining the operating distance (i.e. second order operating distance) in the second duration threshold value, and compare with the first distance threshold preset and second distance threshold value, if second order operating distance is greater than the first distance threshold and be less than second distance threshold value, be then judged to be drag operation; If second order operating distance is greater than second distance threshold value, be then judged to be swiping.In fact first distance threshold is grown by a class for distinguishing to click and pulls the class that swipes, and second distance threshold value is then pull for distinguishing and swipe.
The embodiment of the present invention overcomes prior art can not distinguish the defect pulling and swipe effectively, by setting the first distance threshold, second distance threshold value and the second duration threshold value, effectively can distinguish and click length by a class and the operation pulling the class that swipes, and determine that touch control operation is for pulling or swiping.In the present embodiment, as long as operation duration reaches the second duration threshold value and can judge, namely the response time of drag operation and swiping is all described second duration threshold value, and without the need to waiting until that touch control operation terminates just to respond, therefore the embodiment of the present invention can identify the two kinds of touch control operations that pull and swipe fast, accurately and efficiently.
In addition, described operating distance not refers to the air line distance of starting point to current location, and refers to the length of operation trace, because operation trace might not be straight line.Operation trace can form by regarding as multiple continuous print line segment.Therefore, in the present embodiment, calculating operation distance is actually and the length of multiple line segment is superposed.
Particularly, the embodiment of the present invention also comprises following for calculating the step of the operating distance of touch control operation:
In response to the touch control operation of user, gather the position of touch screen point with certain sampling period;
According to described touch screen point in the position of t, described touch screen point at the position in t-1 moment and the operating distance at t-1 moment touch control operation, calculate the operating distance at t touch control operation and store; T is positive integer.
Particularly, first according to described touch screen point at the position of t and described touch screen point at the position calculation touch screen point in t-1 moment from the t-1 moment to the displacement of t; Again the operating distance of t-1 moment touch control operation is added that touch screen point obtains the operating distance at t touch control operation from the t-1 moment to the displacement of t.
If all position calculation operating distances just according to touch screen point before when just thinking to reach certain condition, can produce very large calculated amount.Therefore in the scheme of the present embodiment, whenever collecting a position of touch screen point, the operating distance of current touch control operation can be calculated and store, storage is that conveniently subsequent time calculates the operating distance of touch control operation, share by calculated amount, thus be unlikely to make system too large at flashy calculated amount load.Therefore, the scheme of the operating distance of above-mentioned calculating touch control operation possesses more accurate, more convenient and more efficient advantage.
See Fig. 2, it is the schematic flow sheet of the second embodiment of touch control operation recognition methods provided by the invention, the method comprises step S101, S102, S103 and the S104 of the first embodiment of above-mentioned touch control operation recognition methods, also comprises step S105 and step S106, specific as follows:
S105, when described operation duration reaches the first default duration threshold value, obtains single order operating distance;
S106, if the described single order operating distance obtained is less than described first distance threshold, judges described touch control operation as long by operation.
Wherein, described single order operating distance refers to the operating distance of the touch control operation when operation duration is described first duration threshold value; Described first duration threshold value is less than described second duration threshold value.
In step s 106, when described single order operating distance equals described first distance threshold, can judge described contact action as long by operation, also can be judged to be other operations by operation of non-length, this can judge according to setting in advance.
The present embodiment is the further improvement of the first embodiment to above-mentioned touch control operation recognition methods, judges long by operation by setting the first duration threshold value.Due to long be at a slow speed in time by operation, spatially static, when operating distance (single order operating distance) so when described operation duration reaches the first default duration threshold value is less than described first distance threshold, can judge that touch control operation is long pressing.As long as operation duration reaches the first duration threshold value and can judge, namely the long response time by operation is described first duration threshold value, and without the need to waiting until that touch control operation terminates just to respond, therefore the embodiment of the present invention can identify fast, accurately and efficiently and pull, swipes and grow by three kinds of touch control operations.
See Fig. 3, be the schematic flow sheet of the 3rd embodiment of touch control operation recognition methods provided by the invention, the method comprises the step S101 ~ S106 of the second embodiment of above-mentioned touch control operation recognition methods, also comprises step S107 and step S108, specific as follows:
S107, the touch control operation in response to user terminates, and obtains substantial length of operation distance and complete operation duration;
S108, if the described substantial length of operation distance obtained is less than described first distance threshold, and described complete operation duration is less than described first duration threshold value, judges that described touch control operation is as clicking operation;
Wherein, the operation duration that records at the end of referring to response user touch-control of described complete operation duration; Described substantial length of operation distance refers to the operating distance of touch control operation in described complete operation duration.
The present embodiment is the further improvement of the second embodiment to above-mentioned touch control operation recognition methods.Because single-click operation is fast in time, be spatially static, its complete operation duration should be less than described first duration threshold value, and its substantial length of operation distance should be less than described first distance threshold.Therefore, in the present embodiment, at the end of user's touch control operation, first obtain substantial length of operation distance, then judge whether to meet: described substantial length of operation distance is less than described first distance threshold, and described complete operation duration is less than described first duration threshold value; If so, then single-click operation is judged to be.The response time of single-click operation is complete operation duration, therefore the embodiment of the present invention can identify fast, accurately and efficiently pull, swipe, long by and click four kinds of touch control operations.
See Fig. 4, be the schematic flow sheet of the 4th embodiment of touch control operation recognition methods provided by the invention, the method comprises the step S101 ~ S108 of the 3rd embodiment of above-mentioned touch control operation recognition methods, also comprises step S109, specific as follows:
S109, if the described substantial length of operation distance obtained is greater than described first distance threshold, and described complete operation duration is less than described second duration threshold value, judges that described touch control operation is as swiping.
In first, second or the 3rd embodiment of touch control operation recognition methods provided by the invention, judge that the prerequisite of swiping is that operation duration will reach the second duration threshold value.But because swiping is a relatively violent motion, make operation have a lot of instability, swiping probably due to finger not abundant contact screen, and makes complete operation duration be less than the second duration threshold value.In this case, at the end of user's touch control operation, judge whether satisfied following condition: described substantial length of operation distance is greater than described first distance threshold, and described operation duration is less than described second duration threshold value; If so, then judge that described touch control operation is as swiping.Namely swiping has two kinds of situations, one is that complete operation duration is greater than the second duration threshold value, and the operating distance in the second duration threshold value is greater than second distance threshold value, another kind is that complete operation duration is less than the second duration threshold value, and the operating distance in complete operation duration is greater than the first distance threshold.Therefore, the present invention also further contemplates the characteristic of swiping instability, is greater than described first distance threshold in the described substantial length of operation distance obtained, and when described operation duration is less than described second duration threshold value, judge that described touch control operation is as swiping, thus recognition accuracy is higher.
As shown in Figure 6, it is the schematic diagram of the 4th embodiment of touch control operation recognition methods provided by the invention.
Suppose that a touch control operation of user just terminates when its operation duration does not reach the first duration threshold value, as can be seen from Figure 6, touch control operation may be clicking operation or swiping, thus by obtaining substantial length of operation distance and judging described substantial length of operation distance and the size of the first distance threshold, can determine that touch control operation is clicking operation or swiping.
Suppose that the operation duration of a touch control operation of user is greater than the first duration threshold value (Time click), as can be seen from Figure 6, touch control operation may for long by operation, swiping or drag operation.By obtaining the operating distance when operation duration reaches the first duration threshold value, i.e. single order operating distance, and judge described single order operating distance and the first distance threshold (Dist clcik) size, when described single order operating distance is less than described first distance threshold, judge described touch control operation as long by operation.It should be noted that, if described single order operating distance is greater than described first distance threshold, because touch control operation may be swiping or drag operation, thus still can not determine the type of touch control operation.
If the operation duration of user touch control operation is greater than the second duration threshold value (Time swipe), as can be seen from Figure 6, touch control operation may be swiping, drag operation or long by operation.But carry out having judged when operating duration and reaching the first duration threshold value by operation due to long, therefore now can not judge by operation long again, only need to judge that touch control operation is swiping or drag operation.By obtaining the operating distance when operation duration reaches the second duration threshold value, i.e. second order operating distance, and judge described second order operating distance and the first distance threshold (Dist clcik), second distance threshold value (Dist swipe) size, when described second order operating distance is greater than the first distance threshold and is less than second distance threshold value, be judged to be drag operation; When described second order operating distance is greater than second distance threshold value, be judged to be swiping.
Above-mentioned touch control operation recognition methods can also combinationally use.Such as, first carry out growing by operation, then carry out drag operation, respond when length reaches the first duration threshold value by operation, respond when drag operation reaches the second duration threshold value, in intelligent terminal, certain application usually can be used for close or shift position.
Correspondingly, present invention also offers a kind of touch control operation recognition device.
As shown in Figure 7, it is the structured flowchart of the first embodiment of touch control operation recognition device provided by the invention, and it comprises:
Operation duration logging modle 101, for the touch control operation in response to user, starts the operation duration recording touch control operation;
Second order distance acquisition module 102, for when described operation duration reaches the second duration threshold value, obtains second order operating distance;
Pull determination module 103, during for being greater than the first distance threshold when the described second order operating distance obtained and being less than second distance threshold value, judge that described touch control operation is as drag operation;
First swipes determination module 104, during for being greater than described second distance threshold value when the described second order operating distance obtained, judges that described touch control operation is as swiping;
Wherein, described second order operating distance refers to the long operating distance for touch control operation during described second duration threshold value when operated; Described second duration threshold value, the first distance threshold and second distance threshold value are preset value, and described first distance threshold is less than described second distance threshold value.
In the present embodiment, described touch control operation recognition device also comprises:
Touch screen point acquisition module, for the touch control operation in response to user, gathers the position of touch screen point with certain sampling period;
Operating distance computing module, for according to described touch screen point in the position of t, described touch screen point at the position in t-1 moment and the operating distance at t-1 moment touch control operation, calculate the operating distance at t touch control operation and store; T is positive integer.
The touch control operation recognition device that the present embodiment provides is for performing the method flow of the first embodiment of above-mentioned touch control operation recognition methods, and its principle and beneficial effect are corresponding, thus repeat no more.
As shown in Figure 8, it is the structured flowchart of the second embodiment of touch control operation recognition device provided by the invention, it comprises operation duration logging modle 101 in the first embodiment of above-mentioned touch control operation recognition device, second order distance acquisition module 102, pull determination module 103 and first swipes determination module 104, comprises in addition:
Single order distance acquisition module 105, for when described operation duration reaches the first default duration threshold value, obtains single order operating distance;
Length presses determination module 106, during for being less than described first distance threshold when the described single order operating distance obtained, judges described touch control operation as long by operation;
Wherein, described single order operating distance refers to the operating distance of the touch control operation when operation duration is described second duration threshold value; Described first duration threshold value is less than described second duration threshold value.
The touch control operation recognition device that the present embodiment provides is for performing the method flow of the second embodiment of above-mentioned touch control operation recognition methods, and its principle and beneficial effect are corresponding, thus repeat no more.
As shown in Figure 9, it is the structured flowchart of the 3rd embodiment of touch control operation recognition device provided by the invention, it comprises operation duration logging modle 101 in the second embodiment of above-mentioned touch control operation recognition device, second order distance acquisition module 102, pull swipe determination module 104, single order distance acquisition module 105 of determination module 103, first, comprises by determination module 106 in addition with long:
Omnidistance physical quantity acquisition module 107, for terminating in response to user's touch control operation, obtains substantial length of operation distance and complete operation duration;
Clicking determination module 108, for being less than described first distance threshold when the described substantial length of operation distance obtained, and when described complete operation duration is less than described first duration threshold value, judging that described touch control operation is as clicking operation;
Wherein, the operation duration that records at the end of referring to response user touch-control of described complete operation duration; Described substantial length of operation distance refers to the operating distance of touch control operation in described complete operation duration.
The touch control operation recognition device that the present embodiment provides is for performing the method flow of the 3rd embodiment of above-mentioned touch control operation recognition methods, and its principle and beneficial effect are corresponding, thus repeat no more.
As shown in Figure 9, it is the structured flowchart of the 4th embodiment of touch control operation recognition device provided by the invention, it comprises operation duration logging modle 101 in the 3rd embodiment of above-mentioned touch control operation recognition device, second order distance acquisition module 102, pull determination module 103, first swipes determination module 104, single order distance acquisition module 105, long by determination module 106, whole range distance acquisition module 107 and click determination module 108, also comprises:
Second swipes determination module 109, for being greater than described first distance threshold when the described substantial length of operation distance obtained, and when described complete operation duration is less than described second duration threshold value, judges that described touch control operation is as swiping.
The touch control operation recognition device that the present embodiment provides is for performing the method flow of the 4th embodiment of above-mentioned touch control operation recognition methods, and its principle and beneficial effect are corresponding, thus repeat no more.
Meanwhile, present invention also offers a kind of contact action response method, comprise the step of above-mentioned contact action recognition methods, and
According to described contact action recognition methods to the result of determination of contact action, perform corresponding response events.
Correspondingly, present invention also offers a kind of contact action responding device, comprise above-mentioned contact action recognition device and response events execution module;
Described response events execution module be used for according to described contact action recognition methods to the result of determination of contact action, perform corresponding response events.
Wherein, the response time of clicking operation is complete operation duration, the response time of drag operation is the first duration threshold value, the response time of drag operation is the second duration threshold value, response time of swiping is the smaller in complete operation duration and the second duration threshold value, the response time of four kinds of touch control operations is all less than the second duration threshold value, and the speed of visible response is very fast, and accuracy rate is very high.
In addition, present invention also offers an a kind of embodiment of control method of playing, comprise the touch control operation recognition methods described in above-mentioned any embodiment method step and according to described touch control operation recognition methods to the result of determination of touch control operation, respond corresponding game action.
Such as, when described touch control operation is judged to be drag operation, the shift action of response game role, controls game role and moves on picture; When described touch control operation is judged to be swiping, the attack of response game role, controls game role shooting or boxing.
In addition, present invention also offers an a kind of embodiment of actuation means of playing, comprise the touch control operation recognition device described in above-mentioned any embodiment and game action respond module;
Described game action respond module be used for according to described touch control operation recognition methods to the result of determination of touch control operation, perform corresponding response events.
Embodiments provide a kind of touch control operation recognition methods, the operation of user is distinguished from Distance geometry time two dimensions, by obtaining the operating distance (i.e. second order operating distance) in the second duration threshold value, and compare with the first distance threshold preset and second distance threshold value, if second order operating distance is greater than the first distance threshold and be less than second distance threshold value, be then judged to be drag operation; If second order operating distance is greater than second distance threshold value, be then judged to be swiping.In fact first distance threshold is grown by a class for distinguishing to click and pulls the class that swipes, and second distance threshold value is then pull for distinguishing and swipe.The embodiment of the present invention overcomes prior art can not distinguish the defect pulling and swipe effectively, by setting the first distance threshold, second distance threshold value and the second duration threshold value, effectively can distinguish and pull and swipe, more preferably, the present invention can also by set the first duration threshold value distinguish click and grow by, thus can identify quickly and accurately touch control operation be click, long 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 the result of determination of touch control operation, promptly perform corresponding response events or respond corresponding game action, as long as will judge because operation duration reaches the second duration threshold value, therefore the response time pulled or swipe is all the second duration threshold value, and without the need to just responding after touch screen terminates.Meanwhile, the embodiment of the present invention additionally provides touch control operation recognition device, touch control operation responding device and game actuation means, is respectively used to perform above-mentioned touch control operation recognition methods, touch control operation response method and game control method.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random store-memory body (RandomAccessMemory, RAM) etc.
The above is the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications are also considered as protection scope of the present invention.

Claims (14)

1. a touch control operation recognition methods, is characterized in that, comprising:
In response to the touch control operation of user, start the operation duration of recording user;
When described operation duration reaches the second duration threshold value, obtain second order operating distance;
If the described second order operating distance obtained is greater than the first distance threshold and is less than second distance threshold value, judge that described touch control operation is as drag operation;
If the described second order operating distance obtained is greater than described second distance threshold value, judge that described touch control operation is as swiping;
Wherein, described second order operating distance refers to the long operating distance for touch control operation during described second duration threshold value when operated; Described second duration threshold value, the first distance threshold and second distance threshold value are preset value, and described first distance threshold is less than described second distance threshold value.
2. touch control operation recognition methods as claimed in claim 1, described touch control operation recognition methods also comprises:
When described operation duration reaches the first default duration threshold value, obtain single order operating distance;
If the described single order operating distance obtained is less than described first distance threshold, judge described touch control operation as long by operation;
Wherein, described single order operating distance refers to the long operating distance for touch control operation during described first duration threshold value when operated; Described first duration threshold value is less than described second duration threshold value.
3. touch control operation recognition methods as claimed in claim 2, described touch control operation recognition methods also comprises:
Terminate in response to user's touch control operation, obtain substantial length of operation Distance geometry complete operation duration;
If the described substantial length of operation distance obtained is less than described first distance threshold, and described complete operation duration is less than described first duration threshold value, judges that described touch control operation is as clicking operation;
Wherein, the operation duration that records at the end of referring to response user touch-control of described complete operation duration; Described substantial length of operation distance refers to the operating distance of touch control operation in described complete operation duration.
4. touch control operation recognition methods as claimed in claim 3, described touch control operation recognition methods also comprises:
If the described substantial length of operation distance obtained is greater than described first distance threshold, and described complete operation duration is less than described second duration threshold value, judges that described touch control operation is as swiping.
5. the touch control operation recognition methods as described in as arbitrary in Claims 1 to 4, described touch control operation recognition methods also comprises:
In response to the touch control operation of user, gather the position of touch screen point with certain sampling period;
According to described touch screen point in the position of t, described touch screen point at the position in t-1 moment and the operating distance at t-1 moment touch control operation, calculate the operating distance at t touch control operation and store; T is positive integer.
6. a touch control operation recognition device, is characterized in that, comprising:
Operation duration logging modle, for the touch control operation in response to user, starts the operation duration recording touch control operation;
Second order distance acquisition module, for when described operation duration reaches the second duration threshold value, obtains second order operating distance;
Pull determination module, during for being greater than the first distance threshold when the described second order operating distance obtained and being less than second distance threshold value, judge that described touch control operation is as drag operation;
First swipes determination module, during for being greater than described second distance threshold value when the described second order operating distance obtained, judges that described touch control operation is as swiping;
Wherein, described second order operating distance refers to the long operating distance for touch control operation during described second duration threshold value when operated; Described second duration threshold value, the first distance threshold and second distance threshold value are preset value, and described first distance threshold is less than described second distance threshold value.
7. touch control operation recognition device as claimed in claim 6, it is characterized in that, described touch control operation recognition device also comprises:
Single order distance acquisition module, for when described operation duration reaches the first default duration threshold value, obtains single order operating distance;
Length presses determination module, during for being less than described first distance threshold when the described single order operating distance obtained, judges described touch control operation as long by operation;
Wherein, described single order operating distance refers to the long operating distance for touch control operation during described first duration threshold value when operated; Described first duration threshold value is less than described second duration threshold value.
8. touch control operation recognition device as claimed in claim 7, it is characterized in that, described touch control operation recognition device also comprises:
Omnidistance physical quantity acquisition module, for terminating in response to user's touch control operation, obtains substantial length of operation distance and complete operation duration;
Clicking determination module, for being less than described first distance threshold when the described substantial length of operation distance obtained, and when described complete operation duration is less than described first duration threshold value, judging that described touch control operation is as clicking operation;
Wherein, the operation duration that records at the end of referring to response user touch-control of described complete operation duration; Described substantial length of operation distance refers to the operating distance of touch control operation in described complete operation duration.
9. touch control operation recognition device as claimed in claim 8, it is characterized in that, described touch control operation recognition device also comprises:
Second swipes determination module, for being greater than described first distance threshold when the described substantial length of operation distance obtained, and when described complete operation duration is less than described second duration threshold value, judges that described touch control operation is as swiping.
10. the touch control operation recognition device as described in as arbitrary in claim 6 ~ 9, it is characterized in that, the recognition device of described touch control operation also comprises:
Touch screen point acquisition module, for the touch control operation in response to user, gathers the position of touch screen point with certain sampling period;
Operating distance computing module, for according to described touch screen point in the position of t, described touch screen point at the position in t-1 moment and the operating distance at t-1 moment touch control operation, calculate the operating distance at t touch control operation and store; T is positive integer.
11. 1 kinds of contact action response methods, is characterized in that, comprise as arbitrary in Claims 1 to 5 as described in the step of contact action recognition methods, and
According to described contact action recognition methods to the result of determination of contact action, perform corresponding response events.
12. 1 kinds of contact action responding devices, is characterized in that, comprise as arbitrary in claim 6 ~ 10 as described in contact action recognition device and response events execution module;
Described response events execution module be used for according to described contact action recognition methods to the result of determination of contact action, perform corresponding response events.
13. 1 kinds of game control methods, is characterized in that, comprise as arbitrary in Claims 1 to 5 as described in the step of touch control operation recognition methods, and
According to described touch control operation recognition methods to the result of determination of touch control operation, respond corresponding game action.
14. 1 kinds game actuation means, it is characterized in that, comprise as arbitrary in claim 6 ~ 10 as described in touch control operation recognition device and game action respond module;
Described game action respond module be used for according to described touch control operation recognition methods to the result of determination of touch control operation, respond corresponding game action.
CN201510471795.9A 2015-08-04 2015-08-04 Touch control operation identifies and response method, device and game control method, device Active CN105183214B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510471795.9A CN105183214B (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
CN201510471795.9A CN105183214B (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
CN105183214A true CN105183214A (en) 2015-12-23
CN105183214B CN105183214B (en) 2017-12-19

Family

ID=54905332

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510471795.9A Active CN105183214B (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) CN105183214B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107661630A (en) * 2017-08-28 2018-02-06 网易(杭州)网络有限公司 A kind of control method and device of shooting game, storage medium, processor, terminal
CN109324739A (en) * 2018-09-28 2019-02-12 腾讯科技(深圳)有限公司 Control method, device, terminal and the storage medium of virtual objects
CN109982756A (en) * 2016-11-10 2019-07-05 Cy游戏公司 Message handling program, information processing method and information processing unit
CN110678835A (en) * 2017-06-09 2020-01-10 舒佩塞尔公司 Apparatus and method for controlling user interface of computing apparatus
CN112462971A (en) * 2020-11-24 2021-03-09 广州朗国电子科技有限公司 Sliding control method and device of touch screen, all-in-one machine and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102033648A (en) * 2009-10-02 2011-04-27 索尼公司 Information processing apparatus, information processing method, and information processing program
CN103455246A (en) * 2013-08-19 2013-12-18 小米科技有限责任公司 Method and terminal for object management on touch page
US20130335339A1 (en) * 2012-06-18 2013-12-19 Richard Maunder Multi-touch gesture-based interface for network design and management
CN103530018A (en) * 2013-09-27 2014-01-22 深圳天珑无线科技有限公司 Establishment method of widget interfaces in android operating system and mobile terminal
CN104731502A (en) * 2015-03-27 2015-06-24 努比亚技术有限公司 Double-click recognition method and device based on virtual partition touch screen and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102033648A (en) * 2009-10-02 2011-04-27 索尼公司 Information processing apparatus, information processing method, and information processing program
US20130335339A1 (en) * 2012-06-18 2013-12-19 Richard Maunder Multi-touch gesture-based interface for network design and management
CN103455246A (en) * 2013-08-19 2013-12-18 小米科技有限责任公司 Method and terminal for object management on touch page
CN103530018A (en) * 2013-09-27 2014-01-22 深圳天珑无线科技有限公司 Establishment method of widget interfaces in android operating system and mobile terminal
CN104731502A (en) * 2015-03-27 2015-06-24 努比亚技术有限公司 Double-click recognition method and device based on virtual partition touch screen and mobile terminal

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109982756A (en) * 2016-11-10 2019-07-05 Cy游戏公司 Message handling program, information processing method and information processing unit
CN109982756B (en) * 2016-11-10 2022-09-02 Cy游戏公司 Information processing program, information processing method, and information processing apparatus
CN110678835A (en) * 2017-06-09 2020-01-10 舒佩塞尔公司 Apparatus and method for controlling user interface of computing apparatus
CN107661630A (en) * 2017-08-28 2018-02-06 网易(杭州)网络有限公司 A kind of control method and device of shooting game, storage medium, processor, terminal
CN109324739A (en) * 2018-09-28 2019-02-12 腾讯科技(深圳)有限公司 Control method, device, terminal and the storage medium of virtual objects
CN112462971A (en) * 2020-11-24 2021-03-09 广州朗国电子科技有限公司 Sliding control method and device of touch screen, all-in-one machine and storage medium

Also Published As

Publication number Publication date
CN105183214B (en) 2017-12-19

Similar Documents

Publication Publication Date Title
CN105183214A (en) Touch operation recognition and response method, apparatus and game control method, apparatus
CN103827785B (en) Using pressure differences with a touch-sensitive display screen
CN104317466B (en) Touch-screen control method and touch panel device
US20150161095A1 (en) Method for inserting or deleting cells, rows or columns in spreadsheet and a device therefor
CN102681786B (en) Method and device for text selection
US20130080951A1 (en) Device and method for moving icons across different desktop screens and related computer readable storage media comprising computer executable instructions
CN103941989B (en) Method and electronic device for executing processing processes in triggered mode
CN106406710A (en) Screen recording method and mobile terminal
WO2015131675A1 (en) Compensation method for broken slide paths, electronic device and computer storage medium
CN108064368A (en) The control method and device of flexible display device
CN105302467B (en) Touch control operation identifies and response method, device and game control method, device
CN104252264A (en) Information processing apparatus and control method
TW201117069A (en) Method of controlling the movement of cursor on display screen of touch panel
CN102662586A (en) User interface based operation triggering method and operation triggering device and terminal equipment
CN107193519A (en) Display control method and device, computer installation and computer-readable recording medium
CN104903961B (en) Progress bar precision adjusting device, method and play system and terminal
CN105912185A (en) Method and device for unloading application program, and terminal device
CN105204732A (en) Control method and control device for game props used in batch
WO2022007544A1 (en) Device control method and apparatus, and storage medium and electronic device
CN103777856B (en) A kind of method, system and remote terminal that touch event is processed into remote control gesture
CN105159573A (en) Touch operation identification and response method and apparatus and game control method and apparatus
CN107085469A (en) A kind of recognition methods of gesture and device
CN105022569B (en) The method of the picture update rate of optionally switch mouse
WO2016141597A1 (en) Touch control method, device, terminal and graphical user interface thereof
WO2012151914A1 (en) Method using three-dimensional movement trajectory as input and mobile terminal

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