[go: up one dir, main page]

CN109284063A - Method, apparatus and touch apparatus are determined based on the instruction of single-button - Google Patents

Method, apparatus and touch apparatus are determined based on the instruction of single-button Download PDF

Info

Publication number
CN109284063A
CN109284063A CN201811104537.7A CN201811104537A CN109284063A CN 109284063 A CN109284063 A CN 109284063A CN 201811104537 A CN201811104537 A CN 201811104537A CN 109284063 A CN109284063 A CN 109284063A
Authority
CN
China
Prior art keywords
key
target key
user
coordinate
target
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.)
Pending
Application number
CN201811104537.7A
Other languages
Chinese (zh)
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Publication of CN109284063A publication Critical patent/CN109284063A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus

Landscapes

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

Abstract

The present invention provides a kind of instructions based on single-button to determine method, apparatus and touch apparatus, is related to instruction identification technical field, this method comprises: obtaining the button operation information of user when the target key for monitoring touch apparatus is triggered by user;Wherein, button operation information includes that key touches duration, starting key position and current key position;Target key is preset independent virtual key on the touch interface of touch apparatus;The triggering mode that duration determines target key is touched according to key;The offset information of target key is determined according to starting key position and current key position;According to the offset information of the triggering mode of target key and target key, the first operational order of user is determined.Aforesaid way provided by the invention, which can be realized, just can determine user instruction based on individual virtual key, and the operating experience of user is effectively promoted.

Description

Method, apparatus and touch apparatus are determined based on the instruction of single-button
Technical field
The present invention relates to instruction identification technical fields, determine method, dress more particularly, to a kind of instruction based on single-button It sets and touch apparatus.
Background technique
The common touch apparatus such as smart phone, tablet computer mainly by the virtual key on its touch interface come Receive to determine operational order from the user.
Existing touch apparatus is usually required to cooperate jointly by multiple virtual keys and can be determined from user's operation Instruction namely user need to trigger multiple virtual keys and instruction can be passed to touch apparatus.Such mode is easy to produce Raw accidentally to touch, user's operation experience is poor.
Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of instructions based on single-button to determine method, apparatus and touch Equipment can be crossed through single key, namely individually virtual key determines user instruction, and the operating body of user is effectively promoted It tests.
In a first aspect, the embodiment of the invention provides a kind of instructions based on single-button to determine that method, this method are applied to Touch apparatus, this method comprises: obtaining the button operation of user when the target key for monitoring touch apparatus is triggered by user Information;Wherein, button operation information includes that key touches duration, starting key position and current key position;Target key is Preset independent virtual key on the touch interface of touch apparatus;The triggering side that duration determines target key is touched according to key Formula;Wherein, triggering mode includes long-pressing triggering and short-press triggering;Target is determined according to starting key position and current key position The offset information of key;According to the offset information of the triggering mode of target key and target key, the first operation of user is determined Instruction.
With reference to first aspect, the embodiment of the invention provides the first possible embodiments of first aspect, wherein on It states and the step of duration determines the triggering mode of target key is touched according to key, comprising: judge that key touches whether duration is greater than Preset time threshold;If so, determining the triggering mode of target key for long-pressing triggering;If not, determining target key Triggering mode is short-press triggering.
With reference to first aspect, the embodiment of the invention provides second of possible embodiments of first aspect, wherein on State the step of offset information of target key is determined according to starting key position and current key position, comprising: determine that starting is pressed First coordinate of the key position under preset coordinate system, and determine second coordinate of the current key position under preset coordinate system; According to the first coordinate and the second coordinate, the offset information of target key is determined;Wherein, offset information includes offset direction and offset Distance.
The possible embodiment of second with reference to first aspect, the embodiment of the invention provides the third of first aspect Possible embodiment, wherein above-mentioned according to the first coordinate and the second coordinate, the step of determining the offset information of target key, It include: that current vector is determined according to the first coordinate and the second coordinate;Wherein, the first coordinate be current vector starting point, second Coordinate is the terminal of current vector;According to the length of current vector, the offset distance of target key is determined;Current vector is carried out Rotation processing;Record current Vector rotation to it is consistent with the direction of preset reference vector when current vector rotation angle;Root The offset direction of target key is determined according to rotation angle.
With reference to first aspect, the embodiment of the invention provides the 4th kind of possible embodiments of first aspect, wherein on The offset information for stating the triggering mode and target key according to target key, the step of determining the first operational order of user, packet It includes: from preset instruction database, searching finger corresponding with the offset information of the triggering mode of target key and target key It enables;Wherein, the association that the triggering mode, offset information and the first operational order of target key are stored in instruction database is closed System;The instruction found is determined as to the first operational order of user.
The 4th kind of possible embodiment with reference to first aspect, the embodiment of the invention provides the 5th kind of first aspect Possible embodiment, the above method further include: pre-establish include target key triggering mode, offset information and first The instruction database of the incidence relation of operational order;Wherein, in instruction database, the offset information for meeting the condition of ignoring is corresponding The first operational order be single control operational order;Ignore condition are as follows: the offset distance in offset information is less than pre-determined distance threshold value; Single control instruction is only related with the triggering mode of target key.
The 4th kind of possible embodiment with reference to first aspect, the embodiment of the invention provides the 6th kind of first aspect Possible embodiment, wherein it is also stored with and releases order in above-metioned instruction database, the above method further include: when monitoring When user discharges target key, based on the first operational order and releases order, determine the second operational order of user;It releases order End for the first operational order of label.
The possible embodiment of second with reference to first aspect, the embodiment of the invention provides the 7th kind of first aspect Possible embodiment, wherein above-mentioned according to the first coordinate and the second coordinate, the step of determining the offset direction of target key, It include: that marker bit is respectively set in the surface in the first coordinate, underface, front-left and front-right;Wherein, each marker bit arrives First coordinate is equidistant;Ray is drawn along the direction of the second coordinate using the first coordinate as starting point;Calculate separately each mark Remember position to the vertical range between ray;Direction locating for the corresponding marker bit of minimum perpendicular distance is determined as target key Offset direction.
Second aspect, the instruction determining device based on single-button that the embodiment of the invention provides a kind of, the device are applied to Touch apparatus, the device include: operation information acquisition module, for being triggered when the target key for monitoring touch apparatus by user When, obtain the button operation information of user;Wherein, button operation information includes that key touches duration, starting key position and works as Preceding key position;Target key is preset independent virtual key on the touch interface of touch apparatus;Triggering mode determining module, For touching the triggering mode that duration determines target key according to key;Wherein, triggering mode includes long-pressing triggering and short-press touching Hair;Offset information determining module, for determining the offset information of target key according to starting key position and current key position; Operational order determining module, for determining the of user according to the triggering mode of target key and the offset information of target key One operational order.
The third aspect is deposited in memory the embodiment of the invention provides a kind of touch apparatus, including memory, processor The computer program that can be run on a processor is contained, processor realizes above-mentioned first aspect to first when executing computer program The step of possible embodiment of the 7th kind of aspect described in any item methods.
Fourth aspect, the embodiment of the invention provides a kind of computer readable storage medium, computer readable storage mediums On be stored with computer program, above-mentioned computer program executes above-mentioned first aspect to the of first aspect when being run by processor The step of seven kinds of possible embodiments described in any item methods.
The embodiment of the invention provides a kind of instructions based on single-button to determine method, apparatus and touch apparatus, Neng Gou When monitoring that the target key of touch apparatus is triggered by user, the button operation information of user is obtained;Wherein, button operation information Duration, starting key position and current key position are touched including key;And then duration, starting key position are touched according to key And current key position determines the first operational order of user.Aforesaid way provided in an embodiment of the present invention passes through target key (that is, independent virtual key) just can determine user instruction, preferably improve the operating experience of user.
Other features and advantages of the present invention will illustrate in the following description, also, partly become from specification It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention are in specification, claims And specifically noted structure is achieved and obtained in attached drawing.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate Appended attached drawing, is described in detail below.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow chart that method is determined based on the instruction of single-button provided in an embodiment of the present invention;
Fig. 2 is another flow chart that method is determined based on the instruction of single-button provided in an embodiment of the present invention;
Fig. 3 is a kind of structural block diagram of the instruction determining device based on single-button provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of touch apparatus provided in an embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention Technical solution be clearly and completely described, it is clear that described embodiments are some of the embodiments of the present invention, rather than Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise Under every other embodiment obtained, shall fall within the protection scope of the present invention.
Touch apparatus usually requires to cooperate jointly by multiple virtual keys and can determine and refer to from user's operation at present It enables namely user needs to trigger multiple virtual keys and can realize the demand of oneself.Such mode is easy to produce accidentally touching behaviour Make, so that user's operation experience is poor.Based on this, a kind of instruction determination side based on single-button provided in an embodiment of the present invention Method, device and touch apparatus can just can determine user instruction by independent virtual key, effectively promote the behaviour of user It experiences.
For convenient for understanding the present embodiment, first to a kind of finger based on single-button disclosed in the embodiment of the present invention The method of determination is enabled to describe in detail, a kind of flow chart determining method based on the instruction of single-button shown in Figure 1, the party Method is applied to touch apparatus, wherein the touch apparatus can be the touch screen terminals such as smart phone, tablet computer, and user is in touch screen Operation button on the touch screen of terminal;When practical application, key be may be placed in the application software on foregoing touch screen, such as Game application software can operate the key when user enables aforementioned applications software.In addition, the touch apparatus is also possible to Include the hardware device of touch tablet, such as include the game paddle of touch tablet, key is arranged on this touch pad, Yong Hu Operation button on touch tablet.This method comprises:
Step S102 obtains the button operation letter of user when the target key for monitoring touch apparatus is triggered by user Breath.Wherein, button operation information includes that key touches duration, starting key position and current key position;Target key is touching Touch preset independent virtual key on the touch interface of equipment.When practical application, trigger area can be set for preceding aim key, User is not necessarily to the striking mark key of exact point, but touching any point in the trigger area can be considered as triggering target key, should Touch point is the starting key position of this operation of user, namely starting key position is located in the trigger area.
There are many kinds of the modes of above-mentioned monitoring, can be monitored by setting Fixed Time Interval, interruption obtains user's Button operation information;It can also be by tracking target key, real-time update obtains the button operation information of user.
It can be found under type implementation such as specifically, such as obtaining key and touching duration: can be fixed by presetting first Time is often reaching aforementioned first Fixed Time Interval just more duration of new record;It can also be opened when user touches key Beginning timing, monitors the touch key-press operation of user, and real-time update key touches duration.
Obtain key starting or current location can be found in such as under type implementation: can when target key is touched by user, The position of target key is recorded as starting key position, by pre-set second set time, is often reaching aforementioned the The two Fixed Time Intervals just more position of target key of new record, i.e., current key position;It can also be in target key quilt When user is mobile, real-time tracking positioning is carried out to target key, with the current key position of determination.Practical application, above-mentioned first is solid Fixing time can be same or different with the second set time.
Step S104 touches the triggering mode that duration determines target key according to key;Wherein, triggering mode includes long-pressing Triggering and short-press triggering.Specifically, key touches, duration is shorter, and the triggering mode of target key is short-press triggering;Key touches Duration is longer, and the triggering mode of target key is long-pressing triggering.When practical application, a fixed period can be preset, it is all Such as 0.2s.Judge whether current key is released within the period, if so, determining the triggering mode of target key for short-press touching Hair;If it is not, determining the triggering mode of target key for long-pressing release.
Step S106 determines the offset information of target key according to starting key position and current key position;Wherein, partially Moving information may include offset distance, offset direction etc..
Step S108 determines the first behaviour of user according to the offset information of the triggering mode of target key and target key It instructs.Wherein, different triggering modes, the first operational order of user corresponding to different offset informations are different.Actually answer The corresponding relationship between different triggering modes, different offset informations and the first operational order of user can be stored in advance in used time, into And it is based on the corresponding relationship, by comparing to determine and the offset information institute of the triggering mode of preceding aim key and target key The first operational order of corresponding user.
The embodiment of the invention provides a kind of instructions based on single-button to determine method, can monitor touch apparatus When target key is triggered by user, the button operation information of user is obtained;Wherein, when button operation information includes that key touches Long, starting key position and current key position;And then duration, starting key position and current key position are touched according to key Determine the first operational order of user.Instruction provided in an embodiment of the present invention based on single-button determines that method is applied to touch and sets It is standby, user instruction just can determine by target key (that is, independent virtual key), preferably improve the operating body of user It tests.
In one embodiment, above-mentioned steps S104, namely the triggering that duration determines target key is touched according to key The step of mode, comprising:
Step (1) judges that key touches whether duration is greater than preset time threshold;Wherein, preset time threshold The as above-mentioned period;
Step (2), if so, determining the triggering mode of target key for long-pressing triggering;
Step (3), if not, determining the triggering mode of target key for short-press triggering.
In the specific implementation, above-mentioned steps S106, namely target is determined according to starting key position and current key position The step of offset information of key, is referred to following steps execution:
Step (1) determines first coordinate of the starting key position under preset coordinate system, and determines current key position The second coordinate under preset coordinate system;Wherein, preset coordinate system can be using x-axis as lateral number axis, using y-axis as longitudinal direction The plane right-angle coordinate of number axis, x-axis and y-axis are met at a bit, which is origin, and coordinate is (0,0);When practical application, for just Can be by touch interface in implementation, the upper left corner of such as mobile phone screen is as origin, just using the front-right in the upper left corner as x-axis To;Using the underface in the upper left corner as y-axis forward direction;And then determine that aforementioned first coordinate and second is sat based on the preset coordinate system Mark.
Step (2) determines the offset information of target key according to the first coordinate and the second coordinate;Wherein, offset information packet Include offset direction and offset distance.
For ease of understanding, the embodiment of the present invention provides a kind of according to the first coordinate and the second coordinate, determines target key The specific embodiment of offset vector, is described as follows:
According to the first coordinate and the second coordinate, current vector is determined;Wherein, the first coordinate is the starting point of current vector, Second coordinate is the terminal of current vector;According to the length of current vector, the offset distance of target key is determined;Namely when it is preceding to The length of amount is aforementioned offset distance;Rotation processing is carried out to current vector, current Vector rotation is recorded and arrives and preset reference The rotation angle of current vector when the direction of vector is consistent determines the offset direction of target key according to rotation angle.
When practical application, above-mentioned preset reference vector can be with the unit vector (1,0) in positive direction of the x-axis, clockwise Rotating current vector makes it in the same direction, record rotation angle with aforementioned unit vector (1,0), be labeled as α.And then value based on α with Corresponding relationship between the offset direction of target key determines the offset direction of target key;Wherein, the type of offset direction Including upper and lower, left and right.Specifically, the corresponding relationship between the value of α and the offset direction of target key, as shown in table 1 below:
Table 1
The value of α The offset direction of target key
0≤α, 45 or 315≤α of < < 360 It is right
45≤α < 135 On
135≤α < 225 It is left
225≤α < 315 Under
In addition, the embodiment of the invention also provides a kind of specific embodiments of the offset direction of determining target key: Four marker bits are respectively set in surface, underface, front-left and the front-right of first coordinate, are denoted as p1, p2, p3 and p4;Its In, each marker bit is equidistant to the first coordinate;It calculates separately p1, p2, p3 and p4 and issues warp to by aforementioned first coordinate The vertical range between the ray of the second coordinate is crossed, h1, h2, h3 and h4 are denoted as;By h1, h2, h3 and h4 according to value size into The arrangement of row ascending order;Determine that direction locating for the corresponding marker bit of minimum value in h1, h2, h3 and h4 is the offset side of target key To.
In the specific implementation, above-mentioned steps S108, namely the offset of triggering mode and target key according to target key Information, the step of determining the first operational order of user, comprising:
(1) it from preset instruction database, searches and the triggering mode of target key and the offset information of target key Corresponding instruction;Wherein, the triggering mode of target key, offset information and the first operational order are stored in instruction database Incidence relation.Further, in order to avoid the user operation instruction for making touch apparatus receive mistake because accidentally touching operation, in instruction number According to being additionally provided in library, to meet default corresponding first operational order of offset information for ignoring condition be single control operational order;Its In, ignore condition are as follows: the offset distance in offset information is less than pre-determined distance threshold value;Single control instructs the only triggering with target key Mode is related.
(2) instruction found is determined as to the first operational order of user.
Specifically, the embodiment of the invention provides a kind of specific implementations for ease of understanding with implementation above-mentioned steps S108 Mode is as follows:
Include the corresponding with the triggering mode of above-mentioned target key first secondary instruction in preset instruction database;Specifically, the One secondary instruction includes secondary instruction 1A corresponding with short-press triggering, secondary instruction 1HA corresponding with long-pressing triggering;In addition, for more into one Step guarantees the correctness of the first operational order transmission, it is contemplated that it is possible that the case where not can determine that long-pressing or short-press, real Corresponding secondary instruction 1N when the first secondary instruction further includes with key uncertain condition when border is applied.Preset instruction database also include with The corresponding second secondary instruction of the offset information of above-mentioned target key;Specifically, based on the aforementioned setting for ignoring condition, when offset is believed When offset distance is less than pre-determined distance threshold value in breath, it is considered as target key and does not shift;When the offset distance in offset information When greater than pre-determined distance threshold value, then the offset direction of monitoring objective key is upper and lower, left or right.Second secondary instruction includes and mesh Mark key does not shift corresponding secondary instruction 2N, corresponding with target key offsets direction is upper and lower, left and right secondary to instruct 2 ↑, 2 ↓, 2 ← and 2 →.Above-mentioned first secondary instruction and the second secondary instructing combination are formed corresponding to the first operational order with user Instruction, aforementioned combinatorial fashion are as shown in table 2 below:
Table 2
Wherein, N indicates that uncertain triggering mode, N ↑ expression key is offset up, N ↓ expression key is offset downward, N ← table Show that key deviates to the left, N → expression key deviates to the right;A indicates short-press, A ↑ expression key, and quickly upper cunning, A ↓ expression key are fast Speed glides, quickly left cunning, A → expression key fast right are sliding for A ← expression key;It slides and protects in HA expression long-pressing, HA ↑ expression key It holds, HA ↓ expression key glides and keeps, HA ← left cunning of expression key and keeps, HA → right cunning of expression key and keeps.
When practical application, above-mentioned target key be may be disposed in touch apparatus in mobile game, pre-establish instruction With the corresponding relationship of function.When the user's operation target key, software can determine corresponding user behaviour by above-metioned instruction library The instruction of work, and the instruction is executed, and then respond the operation of user;Such as, in attack class game, instruction A is preset Corresponding function are as follows: light attack;Instruct A ↓ corresponding function are as follows: hide attack;Based on this setting, when user's short-press key, then table Show that user will issue light attack to enemy;When user's operation key quickly glides, then it represents that user will hide enemy attack.This The mode of sample is applied in mobile phone games, can be realized the Function Extension of single key, cooperates sound jointly compared to multiple keys The mode of user's operation is answered, it is easier, greatly improve the operating experience of user.
Further, on the basis of Fig. 1, another instruction based on single-button shown in Figure 2 determines method flow Figure, in addition to step S102~S108, further it is shown that step S202 namely the above method further include following steps:
Step S202 based on the first operational order and releases order when monitoring that user discharges target key, determines and uses Second operational order at family;The end released order for the first operational order of label.
Wherein, when monitoring that user does not contact with touch interface, the finger of such as user leaves touch screen or skids off Screen edge is touched, i.e., expression user discharges target key, and above-mentioned preset instruction database further includes discharging target key with user Extra-instruction R corresponding to this operation, namely release order, for marking the knot of the above-mentioned first secondary instruction with the second secondary instruction Beam, and then the end of the secondary instruction of label first and the first operational order of the corresponding user of the second secondary instructing combination formation, namely It combines to release order based on first operational order and generates the second operational order of user.Specific corresponding to relationship such as the following table 3~5 It is shown:
Table 3
First secondary instruction First secondary instruction terminates
1N 1AR
1A 1AR
1HA 1HAR
Table 4
Second secondary instruction Second secondary instruction terminates
2N 2NR
2↑ 2↑R
2↓ 2↓R
2← 2←R
2→ 2→R
Table 5
After the second operational order for determining user, timing zero adjusts target key to default initial position, waits stand-by Family is triggered next time, restarts timing.
In conclusion the instruction provided in an embodiment of the present invention based on single-button determines that method is true compared with multiple virtual keys Surely the mode instructed can simplify user's operation;The operation of Various Complex in practical application can be matched by preset instruction database The extension of single-button function is realized in design;Preferably improve the operating experience of user.
The corresponding aforementioned instruction based on single-button determines method, and the embodiment of the invention also provides a kind of based on single-button Determining device is instructed, which is applied to touch apparatus, a kind of instruction determining device based on single-button shown in Figure 3 Structural block diagram, the device include:
Operation information acquisition module 302, for obtaining and using when the target key for monitoring touch apparatus is triggered by user The button operation information at family;Wherein, button operation information includes that key touches duration, starting key position and currently by key mapping It sets;Target key is preset independent virtual key on the touch interface of touch apparatus;
Triggering mode determining module 304, for touching the triggering mode that duration determines target key according to key;Wherein, Triggering mode includes long-pressing triggering and short-press triggering;
Offset information determining module 306, for determining target key according to starting key position and current key position Offset information;
Operational order determining module 308, for according to the triggering mode of target key and the offset information of target key, really Determine the first operational order of user.
The instruction determining device based on single-button that the embodiment of the invention provides a kind of, can monitor touch apparatus When target key is triggered by user, the button operation information of user is obtained;Wherein, when button operation information includes that key touches Long, starting key position and current key position;And then duration, starting key position and current key position are touched according to key Determine user instruction.Instruction determining device provided in an embodiment of the present invention based on single-button is applied to touch apparatus, passes through mesh Mark key (that is, independent virtual key) just can determine user instruction, preferably improve the operating experience of user.
The technical effect of device provided by the present embodiment, realization principle and generation is identical with previous embodiment, for letter It describes, Installation practice part does not refer to place, can refer to corresponding contents in preceding method embodiment.
Further, the present embodiment additionally provides a kind of touch apparatus, including memory, processor, is stored in memory The computer program that can be run on a processor, processor realize that the above-mentioned instruction based on single-button is true when executing computer program The step of determining method.
A kind of structural schematic diagram of touch apparatus shown in Figure 4, shows touch apparatus 400, comprising: processor 40, memory 41, bus 42 and communication interface 43, the processor 40, communication interface 43 and memory 41 are connected by bus 42 It connects;Processor 40 is for executing the executable module deposited and stored in 41, such as computer program.
Wherein, memory 41 may include high-speed random access memory (RAM, Random Access Memory), It may further include non-labile memory (non-volatile memory), for example, at least a magnetic disk storage.By extremely A few communication interface 43 (can be wired or wireless) is realized logical between the system network element and at least one other network element Letter connection, can be used internet, wide area network, local network, Metropolitan Area Network (MAN) etc..
Bus 42 can be isa bus, pci bus or eisa bus etc..The bus can be divided into address bus, data Bus, control bus etc..Only to be indicated with a four-headed arrow convenient for indicating, in Fig. 4, it is not intended that an only bus or A type of bus.
Wherein, memory 41 is for storing program 401, and the processor 40 is after receiving and executing instruction, described in execution Program 401, method performed by the device that the stream process that aforementioned any embodiment of the embodiment of the present invention discloses defines can be applied It is realized in processor 40, or by processor 40.
Processor 40 may be a kind of IC chip, the processing capacity with signal.During realization, above-mentioned side Each step of method can be completed by the integrated logic circuit of the hardware in processor 40 or the instruction of software form.Above-mentioned Processor 40 can be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network Processor (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (Digital Signal Processing, abbreviation DSP), specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC), ready-made programmable gate array (Field-Programmable Gate Array, abbreviation FPGA) or other are programmable Logical device, discrete gate or transistor logic, discrete hardware components.It may be implemented or execute in the embodiment of the present invention Disclosed each method, step and logic diagram.General processor can be microprocessor or the processor is also possible to appoint What conventional processor etc..The step of method in conjunction with disclosed in the embodiment of the present invention, can be embodied directly in hardware decoding processing Device executes completion, or in decoding processor hardware and software module combination execute completion.Software module can be located at Machine memory, flash memory, read-only memory, programmable read only memory or electrically erasable programmable memory, register etc. are originally In the storage medium of field maturation.The storage medium is located at memory 41, and processor 40 reads the information in memory 41, in conjunction with Its hardware completes the step of above method.
Further, the embodiment of the invention also provides a kind of computer readable storage medium, computer readable storage mediums On be stored with computer program, when which is run by processor execute instruction of any of the above-described based on single-button it is true The step of determining method.Specific implementation can be found in embodiment of the method, and details are not described herein.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in the executable non-volatile computer-readable storage medium of a processor.Based on this understanding, of the invention Technical solution substantially the part of the part that contributes to existing technology or the technical solution can be with software in other words The form of product embodies, which is stored in a storage medium, including some instructions use so that One computer equipment (can be personal computer, server or the network equipment etc.) executes each embodiment institute of the present invention State all or part of the steps of method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read- Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can be with Store the medium of program code.
Finally, it should be noted that embodiment described above, only a specific embodiment of the invention, to illustrate the present invention Technical solution, rather than its limitations, scope of protection of the present invention is not limited thereto, although with reference to the foregoing embodiments to this hair It is bright to be described in detail, those skilled in the art should understand that: anyone skilled in the art In the technical scope disclosed by the present invention, it can still modify to technical solution documented by previous embodiment or can be light It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make The essence of corresponding technical solution is detached from the spirit and scope of technical solution of the embodiment of the present invention, should all cover in protection of the invention Within the scope of.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (11)

1. a kind of instruction based on single-button determines method, which is characterized in that the method is applied to touch apparatus, the method Include:
When the target key for monitoring the touch apparatus is triggered by user, the button operation information of the user is obtained;Its In, the button operation information includes that key touches duration, starting key position and current key position;The target key is Preset independent virtual key on the touch interface of the touch apparatus;
The triggering mode that duration determines the target key is touched according to the key;Wherein, the triggering mode includes long-pressing Triggering and short-press triggering;
The offset information of the target key is determined according to the starting key position and the current key position;
According to the offset information of the triggering mode of the target key and the target key, the first operation of the user is determined Instruction.
2. the method according to claim 1, wherein touching duration according to the key determines the target key Triggering mode the step of, comprising:
Judge that the key touches whether duration is greater than preset time threshold;
If so, determining the triggering mode of the target key for long-pressing triggering;
If not, determining the triggering mode of the target key for short-press triggering.
3. the method according to claim 1, wherein according to the starting key position and it is described currently press key mapping The step of setting the offset information for determining the target key, comprising:
It determines first coordinate of the starting key position under preset coordinate system, and determines the current key position in institute State the second coordinate under preset coordinate system;
According to first coordinate and second coordinate, the offset information of the target key is determined;Wherein, the offset letter Breath includes offset direction and offset distance.
4. according to the method described in claim 3, it is characterized in that, being determined according to first coordinate and second coordinate The step of offset information of the target key, comprising:
According to first coordinate and second coordinate, current vector is determined;Wherein, first coordinate be it is described when it is preceding to The starting point of amount, second coordinate are the terminal of the current vector;
According to the length of the current vector, the offset distance of the target key is determined;
Rotation processing is carried out to the current vector;
Record the current Vector rotation to it is consistent with the direction of preset reference vector when the current vector rotation angle;
The offset direction of the target key is determined according to the rotation angle.
5. the method according to claim 1, wherein the triggering mode according to the target key and described The offset information of target key, the step of determining the first operational order of the user, comprising:
From preset instruction database, search and the triggering mode of the target key and the offset information of the target key Corresponding instruction;Wherein, the triggering mode, offset information and the first operation that target key is stored in described instruction database refer to The incidence relation of order;
The instruction found is determined as to the first operational order of the user.
6. according to the method described in claim 5, it is characterized in that, the method also includes:
Pre-establish include the triggering mode of target key, offset information and the first operational order incidence relation instruction number According to library;
Wherein, in described instruction database, it is single for meeting default corresponding first operational order of offset information for ignoring condition Control operational order;It is described to ignore condition are as follows: the offset distance in the offset information is less than pre-determined distance threshold value;The single control refers to It enables only related with the triggering mode of the target key.
7. according to the method described in claim 5, release order it is characterized in that, being also stored in described instruction database, institute State method further include:
When monitoring that the user discharges the target key, based on first operational order and it is described release order, really The second operational order of the fixed user;The end released order for marking first operational order.
8. according to the method described in claim 3, it is characterized in that, described according to first coordinate and second coordinate, The step of determining the offset direction of the target key, comprising:
Marker bit is respectively set in surface, underface, front-left and the front-right of first coordinate;Wherein, each described Marker bit is equidistant to first coordinate;
Ray is drawn along the direction of second coordinate using first coordinate as starting point;
Each marker bit is calculated separately to the vertical range between the ray;
Direction locating for the corresponding marker bit of minimum perpendicular distance is determined as to the offset direction of the target key.
9. a kind of instruction determining device based on single-button, which is characterized in that described device is applied to touch apparatus, described device Include:
Operation information acquisition module, for when the target key for monitoring the touch apparatus is triggered by user, described in acquisition The button operation information of user;Wherein, the button operation information include key touch duration, starting key position and currently by Key position;The target key is preset independent virtual key on the touch interface of the touch apparatus;
Triggering mode determining module, for touching the triggering mode that duration determines the target key according to the key;Wherein, The triggering mode includes long-pressing triggering and short-press triggering;
Offset information determining module, for according to the starting key position and the current key position determine the target by The offset information of key;
Operational order determining module, for according to the triggering mode of the target key and the offset information of the target key, Determine the first operational order of the user.
10. a kind of touch apparatus, which is characterized in that including memory and processor, being stored in the memory can be described The computer program run on processor, the processor realize the claims 1 to 8 when executing the computer program The step of method described in one.
11. a kind of computer readable storage medium, computer program, feature are stored on the computer readable storage medium The step of being, the described in any item methods of the claims 1 to 8 executed when the computer program is run by processor.
CN201811104537.7A 2018-06-21 2018-09-20 Method, apparatus and touch apparatus are determined based on the instruction of single-button Pending CN109284063A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2018106472377 2018-06-21
CN201810647237 2018-06-21

Publications (1)

Publication Number Publication Date
CN109284063A true CN109284063A (en) 2019-01-29

Family

ID=65181263

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811104537.7A Pending CN109284063A (en) 2018-06-21 2018-09-20 Method, apparatus and touch apparatus are determined based on the instruction of single-button

Country Status (1)

Country Link
CN (1) CN109284063A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110032317A (en) * 2019-03-29 2019-07-19 深圳市格上格创新科技有限公司 A kind of wireless demo equipment and its mark control method and device
CN110058733A (en) * 2019-03-25 2019-07-26 深圳市德名利电子有限公司 A kind of touch screen interference processing method
CN111045590A (en) * 2019-12-04 2020-04-21 广州小鹏汽车科技有限公司 Method, system, storage medium and vehicle for vehicle-mounted analog button
CN112046287A (en) * 2020-09-04 2020-12-08 上海小鹏汽车科技有限公司 Vehicle interaction method and device
CN113965865A (en) * 2021-10-20 2022-01-21 武汉左点科技有限公司 Single-key input adjusting method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092483A (en) * 2013-02-05 2013-05-08 华为终端有限公司 Touch operation method on user interface and mobile terminal
CN103577086A (en) * 2012-08-08 2014-02-12 杨丽 A method for realizing shortcut key mode on touch panel
US20170255382A1 (en) * 2014-08-29 2017-09-07 Nubia Technology Co., Ltd. Mobile terminal and operation method thereof and computer storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577086A (en) * 2012-08-08 2014-02-12 杨丽 A method for realizing shortcut key mode on touch panel
CN103092483A (en) * 2013-02-05 2013-05-08 华为终端有限公司 Touch operation method on user interface and mobile terminal
US20170255382A1 (en) * 2014-08-29 2017-09-07 Nubia Technology Co., Ltd. Mobile terminal and operation method thereof and computer storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
周保兴: "《三维激光扫描技术及其在变形监测中的应用》", 31 January 2018 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110058733A (en) * 2019-03-25 2019-07-26 深圳市德名利电子有限公司 A kind of touch screen interference processing method
CN110058733B (en) * 2019-03-25 2022-08-30 深圳市德明利技术股份有限公司 Touch screen interference processing method
CN110032317A (en) * 2019-03-29 2019-07-19 深圳市格上格创新科技有限公司 A kind of wireless demo equipment and its mark control method and device
CN110032317B (en) * 2019-03-29 2021-05-28 深圳市格上格创新科技有限公司 Wireless demonstration equipment and marking control method and device thereof
CN111045590A (en) * 2019-12-04 2020-04-21 广州小鹏汽车科技有限公司 Method, system, storage medium and vehicle for vehicle-mounted analog button
CN112046287A (en) * 2020-09-04 2020-12-08 上海小鹏汽车科技有限公司 Vehicle interaction method and device
CN113965865A (en) * 2021-10-20 2022-01-21 武汉左点科技有限公司 Single-key input adjusting method and device

Similar Documents

Publication Publication Date Title
CN109284063A (en) Method, apparatus and touch apparatus are determined based on the instruction of single-button
CN106843739B (en) A kind of display control method and mobile terminal of mobile terminal
CN107551537B (en) Method and device for controlling virtual character in game, storage medium and electronic equipment
CN112057847B (en) Game object control method and device
CN109513208B (en) Object display method and device, storage medium and electronic device
CN104166553B (en) A kind of display methods and electronic equipment
CN112274915B (en) Game control method and device and electronic equipment
US20160132209A1 (en) Operation system, operation control method, and operation control program
CN102654822A (en) Display method, display device and terminal
CN106681636B (en) Method and device for preventing false touch and mobile terminal
CN106708645B (en) Misoperation processing method, misoperation processing device and terminal
WO2015131675A1 (en) Compensation method for broken slide paths, electronic device and computer storage medium
CN104123072B (en) It is a kind of for providing the method and apparatus of the dummy keyboard in mobile device
CN105630350A (en) Virtual character control method and device
CN112057848B (en) Information processing method, device, equipment and storage medium in game
WO2014135055A1 (en) Method for preventing misoperations of intelligent terminal, and intelligent terminal
CN103488429A (en) Screen unlocking method and device
US9884257B2 (en) Method for preventing misoperations of intelligent terminal, and intelligent terminal
CN109508219A (en) It instructs and determines method, apparatus and touch apparatus
CN106951168B (en) Word processing method and mobile terminal
WO2015117526A1 (en) Touch control processing method and device
CN113407075B (en) Icon sorting method and device and electronic equipment
CN110191226A (en) Notification message display method and device, terminal and readable storage medium
CN105446597A (en) Presentation method and present apparatus for function description information of application, and terminal
CN104216563B (en) A kind of terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190129