Summary of the invention
Embodiment of the invention technical matters to be solved is, a kind of method, device and equipment of double rocking lever simulation multi-point touch is provided.Can solve non-touch-screen display terminal in the prior art and not support the deficiency of multi-point touch.
In order to solve the problems of the technologies described above, the embodiment of the invention provides a kind of method of double rocking lever simulation multi-point touch, comprising:
The kinematic parameter of input when receiving the motion of first rocking bar and second rocking bar;
Obtain the movement locus of second mouse pointer of first mouse pointer of the above first rocking bar correspondence of terminal device graphical interfaces and the described second rocking bar correspondence according to described kinematic parameter;
Movement locus according to described first mouse pointer and described second mouse pointer generates corresponding gesture touching signals.
Correspondingly, the embodiment of the invention also provides a kind of device of double rocking lever simulation multi-point touch, comprising:
Receiver module, the kinematic parameter of input when being used for receiving first rocking bar and the motion of second rocking bar;
Computing module is used for obtaining according to described kinematic parameter the movement locus of second mouse pointer of first mouse pointer of the above first rocking bar correspondence of terminal device graphical interfaces and the described second rocking bar correspondence;
Generation module is used for generating corresponding gesture touching signals according to the movement locus of described first mouse pointer and described second mouse pointer.
The embodiment of the invention also provides a kind of electronic equipment, comprises above-mentioned device.
Implement the embodiment of the invention, have following beneficial effect:
By the detection to the kinematic parameter of first rocking bar and second rocking bar, its kinematic parameter is converted into corresponding first mouse pointer and the movement locus of second mouse pointer on the terminal device graphical interfaces, movement locus according to first mouse pointer and second mouse pointer generates corresponding gesture touch-control instruction, do not support the deficiency of multi-point touch to solve non-touch-screen display terminal in the prior art, improved the compatibility of terminal device.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
Referring to Fig. 1, be the structural representation (hereinafter to be referred as device 1) of the device of a kind of double rocking lever simulation multi-point touch of the embodiment of the invention, this device 1 comprises:
Receiver module 11, the kinematic parameter of input when being used for receiving first rocking bar and the motion of second rocking bar.
Concrete, first rocking bar and second rocking bar are arranged on the shell of terminal device, when the user operates first rocking bar and second rocking bar, cause the variation of kinematic parameter when first rocking bar and the motion of second rocking bar, motion amplitude and direction of motion as rocking bar, the kinematic parameter of input when receiver module 11 receives first rocking bar and the motion of second rocking bar, the kinematic parameter of first rocking bar or the input of second rocking bar is an analog quantity, the corresponding largest motion amplitude of each rocking bar, rocking bar is mobile in this largest motion amplitude range, and moving direction is X-direction or Y direction.
Computing module 12 is used for obtaining according to described kinematic parameter the movement locus of second mouse pointer of first mouse pointer of the above first rocking bar correspondence of terminal device graphical interfaces and the described second rocking bar correspondence.
Concrete, be example with first rocking bar, computing module 12 is according to the kinematic parameter of first rocking bar input, this kinematic parameter is converted into side-play amount on the terminal device graphical interfaces, the motion amplitude of rocking bar becomes positive correlation with the side-play amount of mouse pointer on the terminal device graphical interfaces, namely the motion amplitude of first rocking bar is more big, the side-play amount of the first corresponding mouse pointer is just more big, the motion amplitude of first rocking bar is more little, the side-play amount of the first corresponding mouse pointer is just more little, the direction of motion of rocking bar is identical with the direction of motion of mouse pointer on the terminal device graphical interfaces simultaneously, namely during the moving towards X-direction of first rocking bar, first mouse pointer in east to also moving towards X-direction.Computing module 12 calculates the final position of first mouse pointer according to the initial position of this side-play amount, direction of motion and first mouse pointer, and computing module 12 obtains the movement locus of this first mouse pointer for to move to the final position from initial position.Wherein, it is same as described above that the kinematic parameter of computing module 12 by second rocking bar obtains the principle of the movement locus of second mouse pointer on the terminal device graphical interfaces, herein Ao Shu no longer.
Generation module 13 is used for generating corresponding gesture touching signals according to the movement locus of described first mouse pointer and described second mouse pointer.
Concrete, generation module 13 generates corresponding gesture touching signals according to the direction of relative movement of first mouse pointer and second mouse pointer.For example, the movement locus of first mouse pointer and second mouse pointer is relative motion, generation module 13 generates the gesture touching signals of reduction operation, this gesture touch-control instruction is sent to terminal device carries out corresponding operation, can first mouse pointer and the gesture touching signals of the self-defined correspondence of movement locus of second mouse pointer, the present invention does not limit.
Implement embodiments of the invention, by the detection to the kinematic parameter of first rocking bar and second rocking bar, its kinematic parameter is converted into corresponding first mouse pointer and the movement locus of second mouse pointer on the terminal device graphical interfaces, movement locus according to first mouse pointer and second mouse pointer generates corresponding gesture touch-control instruction, do not support the deficiency of multi-point touch to solve non-touch-screen display terminal in the prior art, improved the compatibility of terminal device.
Referring to Fig. 2-Fig. 4, be another structural representation (hereinafter to be referred as device 1) of the device of a kind of double rocking lever simulation multi-point touch of the embodiment of the invention, this device 1 also comprises except comprising receiver module 11, computing module 12 and generation module 13:
Detection module 14, whether the current graphical interfaces of sense terminals equipment is the assignment graph interface, if yes, shows first mouse pointer and second mouse pointer at described assignment graph interface.
Concrete, suppose that the assignment graph interface is the interface of certain touch-sensitive screen application, detection module 14 shows first mouse pointer and second mouse pointer at each character boundary face of this touch-sensitive screen application when detecting the current graphic interface of terminal device and be the interface of touch-sensitive screen application of appointment.Certainly the assignment graph interface can be other graphical interfaces also, and the present invention is not restricted.
Wherein, computing module 12 comprises:
Acquiring unit 121 is for the initial position on the terminal device graphical interfaces that obtains described first mouse pointer and described second mouse pointer.
Concrete, be example with first mouse pointer, when the terminal device initialization, the initial position of first mouse pointer is given, the initial position of supposing first mouse for (x0, y0), during first mouse pointer mobile, the coordinate real-time update that it is corresponding as mobile preceding initial position coordinate next time, and is saved to the coordinate after upgrading in the internal memory at this initial position coordinate.Acquiring unit 121 gets access to the initial position on the terminal device graphical interfaces of first mouse pointer from internal memory, it is same as described above that acquiring unit 121 obtains the principle of initial position of second mouse pointer.
Computing unit 122 is used for obtaining according to described initial position and described kinematic parameter the movement locus of described first mouse pointer and described second mouse pointer.
Concrete, be example with first rocking bar, the initial position of first mouse pointer that computing unit 122 obtains according to kinematic parameter and the acquiring unit 121 of first rocking bar calculates the movement locus of first mouse pointer.The kinematic parameter of first rocking bar comprises its motion amplitude and direction of motion, the kinematic parameter of supposing first rocking bar is motion amplitude A and direction of motion X positive axis, the initial position coordinate of first mouse pointer is (x0, y0), be directly proportional with the side-play amount of mouse pointer according to motion amplitude A, the side-play amount of first mouse pointer on graphical interfaces is k*A unit coordinate, k is the scale-up factor of the side-play amount of the motion amplitude of first rocking bar and mouse pointer, this scale-up factor is constant, be (x0+k*A in the final position of first mouse pointer on graphical interfaces, y0), computing module 122 obtains movement locus on the graphical interfaces of first mouse pointer for from coordinate (x0, y0) move to coordinate (x0+k*A, the straight line of y0) locating.Wherein, computing unit 122 obtains the principle of movement locus of second mouse pointer according to the kinematic parameter of second rocking bar same as described above, herein Ao Shu no longer.
Generation module 13 comprises:
First generation unit 131 is used for generating the gesture touching signals of representing amplifieroperation when detecting described first mouse pointer and described second mouse pointer according to described movement locus and make move toward one another; And/or
Second generation unit 132 is used for generating the gesture touching signals of representing reduction operation when detecting described first mouse pointer and described second mouse pointer according to described movement locus and do relative motion.
Implement embodiments of the invention, by the detection to the kinematic parameter of first rocking bar and second rocking bar, its kinematic parameter is converted into corresponding first mouse pointer and the movement locus of second mouse pointer on the terminal device graphical interfaces, movement locus according to first mouse pointer and second mouse pointer generates corresponding gesture touch-control instruction, do not support the deficiency of multi-point touch to solve non-touch-screen display terminal in the prior art, improved the compatibility of terminal device.
Referring to Fig. 5, the schematic flow sheet for a kind of double rocking lever of the embodiment of the invention is simulated the method for multi-point touch comprises:
The kinematic parameter of step 101, input when receiving first rocking bar and the motion of second rocking bar.
Step 102, obtain the movement locus of second mouse pointer of first mouse pointer of the above first rocking bar correspondence of terminal device graphical interfaces and the described second rocking bar correspondence according to described kinematic parameter.
Step 103, generate corresponding gesture touching signals according to the movement locus of described first mouse pointer and described second mouse pointer.
Implement embodiments of the invention, by the detection to the kinematic parameter of first rocking bar and second rocking bar, its kinematic parameter is converted into corresponding first mouse pointer and the movement locus of second mouse pointer on the terminal device graphical interfaces, movement locus according to first mouse pointer and second mouse pointer generates corresponding gesture touch-control instruction, do not support the deficiency of multi-point touch to solve non-touch-screen display terminal in the prior art, improved the compatibility of terminal device.
Referring to Fig. 6, be another schematic flow sheet that a kind of double rocking lever of the embodiment of the invention is simulated the method for multi-point touch, this method comprises:
Whether step 201, the current graphical interfaces of sense terminals equipment are the assignment graph interface.
Concrete, suppose that the assignment graph interface is the interface of certain touch-sensitive screen application, detection module 14 when detecting the current graphic interface of terminal device and be the interface of touch-sensitive screen application of appointment, execution in step 202, otherwise, execution in step 203.Certainly the assignment graph interface can be other graphical interfaces also, and the present invention is not restricted.
Step 202, show first mouse pointer and second mouse pointer at described assignment graph interface.
Step 203, do not handle.
The kinematic parameter that comprises direction of motion and motion amplitude of step 205, input when receiving first rocking bar and the motion of second rocking bar.
Concrete, first rocking bar and second rocking bar are arranged on the shell of terminal device, when the user operates first rocking bar and second rocking bar, cause the variation of kinematic parameter when first rocking bar and the motion of second rocking bar, motion amplitude and direction of motion as rocking bar, the kinematic parameter of input when receiver module 11 receives first rocking bar and the motion of second rocking bar, the kinematic parameter of first rocking bar or the input of second rocking bar is an analog quantity, the corresponding largest motion amplitude of each rocking bar, rocking bar is mobile in this largest motion amplitude range, and moving direction is X-direction or Y direction.
Step 206, obtain the initial position on the terminal device graphical interfaces of described first mouse pointer and described second mouse pointer.
Step 207, obtain the movement locus of described first mouse pointer and described second mouse pointer according to described initial position and described kinematic parameter.
Step 208, generate corresponding gesture touching signals according to the movement locus of described first mouse pointer and described second mouse pointer.
Implement embodiments of the invention, by the detection to the kinematic parameter of first rocking bar and second rocking bar, its kinematic parameter is converted into corresponding first mouse pointer and the movement locus of second mouse pointer on the terminal device graphical interfaces, movement locus according to first mouse pointer and second mouse pointer generates corresponding gesture touch-control instruction, do not support the deficiency of multi-point touch to solve non-touch-screen display terminal in the prior art, improved the compatibility of terminal device.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in above-described embodiment method, be to instruct relevant hardware to finish by computer program, described program can be stored in the computer read/write memory medium, this program can comprise the flow process as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
Above disclosed only is a kind of preferred embodiment of the present invention, certainly can not limit the present invention's interest field with this, one of ordinary skill in the art will appreciate that all or part of flow process that realizes above-described embodiment, and according to the equivalent variations that claim of the present invention is done, still belong to the scope that invention is contained.