CN103186254A - Method and device for simulating mouse operation by rocker and electronic equipment - Google Patents

Method and device for simulating mouse operation by rocker and electronic equipment Download PDF

Info

Publication number
CN103186254A
CN103186254A CN2013100629822A CN201310062982A CN103186254A CN 103186254 A CN103186254 A CN 103186254A CN 2013100629822 A CN2013100629822 A CN 2013100629822A CN 201310062982 A CN201310062982 A CN 201310062982A CN 103186254 A CN103186254 A CN 103186254A
Authority
CN
China
Prior art keywords
rocking bar
mouse pointer
target location
mouse
motion
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
CN2013100629822A
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.)
Hangzhou Ruigao Intelligent Equipment Co., Ltd.
Original Assignee
SHENZHEN RUIGAO INFORMATION TECHNOLOGY CO LTD
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHENZHEN RUIGAO INFORMATION TECHNOLOGY CO LTD filed Critical SHENZHEN RUIGAO INFORMATION TECHNOLOGY CO LTD
Priority to CN2013100629822A priority Critical patent/CN103186254A/en
Publication of CN103186254A publication Critical patent/CN103186254A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Position Input By Displaying (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a method for simulating the mouse operation by a rocker, which comprises the following steps: acquiring motion parameters input when the rocker moves; according to the motion parameters, calculating to obtain a target position of a mouse pointer on an interface of terminal equipment; and displaying the mouse pointer at the position indicated by the target position. The embodiment of the invention also discloses a device for simulating the mouse operation by the rocker and electronic equipment. After adoption of the method and the device for simulating the mouse operation by the rocker and the electronic equipment, precision and accuracy of the mouse operation can be improved.

Description

A kind of rocking bar analog mouse method of operating, device and electronic equipment
Technical field
The present invention relates to electronic applications, relate in particular to a kind of rocking bar analog mouse method of operating, device and electronic equipment.
Background technology
Mouse is the abbreviation of computer entry device, divides wired and wireless two kinds.Also be the calculator display organization indicator of coordinate setting in length and breadth, the use of mouse is easier for the operation that makes computing machine, comes that loaded down with trivial details instruction of substituting for key.Mouse can be divided into mechanical mouse and optical mouse by the difference of its principle of work.Mechanical mouse mainly is made up of spin, roller and grating signal sensor.When you drag mouse, drive ball turns, spin drives roller again and rotates, and is contained in the grating signal of roller end.The photoelectric pulse signal that sensor produces reflects Genius mouse in the change in displacement of vertical and horizontal direction, again the movement of controlling the onscreen cursor arrow by processing and the conversion of computer program.The movement of controlling the mouse pointer on the screen by processing and the conversion of program again.
In the prior art, the terminal device that adopts large screen display all is to carry out corresponding graphical interfaces operation by mouse mostly, yet, if carry out the external mouse of corresponding action need by mouse, in the screen size of terminal device hour, accurate in locating is carried out in very difficult all positions of mouse pointer, controls very inconvenience.
Summary of the invention
Embodiment of the invention technical matters to be solved is, a kind of rocking bar analog mouse method of operating, device and electronic equipment are provided.Can solve the problem of external mouse action inconvenience in the prior art.
In order to solve the problems of the technologies described above, the embodiment of the invention provides a kind of rocking bar analog mouse method of operating, comprising:
The kinematic parameter of input when obtaining the rocking bar motion;
Calculate the target location of mouse pointer on the terminal device interface according to described kinematic parameter;
Position in the indication of described target location shows described mouse pointer.
Correspondingly, the embodiment of the invention also provides a kind of device of rocking bar analog mouse operation, comprising:
Acquisition module, the kinematic parameter of input when being used for obtaining the rocking bar motion;
Computing module is used for calculating the target location of mouse pointer on the terminal device interface according to described kinematic parameter;
Display module is used for showing described mouse pointer in the position of described target location indication.
The present invention also provides a kind of electronic equipment, comprises above-mentioned device.
Implement the embodiment of the invention, have following beneficial effect:
The kinematic parameter of input when moving by obtaining rocking bar;
Calculate the target location of mouse pointer on the terminal device interface according to described kinematic parameter, show described mouse pointer in the position of described target location indication.Avoid in the prior art using external mouse to come mouse pointer on the control terminal interface, saved the cost of hardware, can obtain simultaneously be operate more accurate and convenient.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the structural representation of device of a kind of rocking bar analog mouse operation of the embodiment of the invention;
Fig. 2 is the another kind of structural representation of device of a kind of rocking bar analog mouse operation of the embodiment of the invention;
Fig. 3 is the structural representation of computing module among Fig. 2;
Fig. 4 is the structural representation of display module among Fig. 2;
Fig. 5 is the schematic flow sheet of a kind of rocking bar analog mouse method of operating of the embodiment of the invention;
Fig. 6 is another schematic flow sheet of device of a kind of rocking bar analog mouse operation of the embodiment of the invention.
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.
Participate in Fig. 1, be the structural representation (hereinafter to be referred as device 1) of the device of a kind of rocking bar analog mouse operation of the present invention, this device 1 comprises:
Acquisition module 11, the kinematic parameter of input when being used for obtaining the rocking bar motion.
Concrete, the parameter of rocking bar motion comprises motion amplitude, direction of motion and the movement velocity of rocking bar, rocking bar is generally the rocking bar of 4 directions, can move the kinematic parameter of input when acquisition module obtains the rocking bar motion in the horizontal and vertical directions.
Computing module 12 is used for calculating the target location of mouse pointer on the terminal device interface according to described kinematic parameter.
Concrete, computing module 12 obtains the side-play amount of mouse pointer on the terminal device interface according to the kinematic parameter of rocking bar, initial position and side-play amount according to mouse pointer obtain the target location of mouse pointer on the terminal device interface, concrete computing method are, the initial position of mouse pointer is (x0, y0), side-play amount is m,, when side-play amount was the x direction of principal axis, the target location of this mouse pointer was (x0+m, y0), when side-play amount is the y direction, the target location of this mouse pointer be (x0, y0+m).For example, the initial position of this mouse pointer is that coordinate on the terminal device interface (0,0) is located, and the side-play amount of rocking bar is X positive axis direction 100 pixels, and then the target location of this mouse pointer is that (100,0) are located.
Display module 13 is used for showing described mouse pointer in the position of described target location indication.
Concrete, the target location that display module 13 obtains according to computing module is presented at the coordinate place that indicate this target location with mouse pointer.
Implement embodiments of the invention, calculate the target location of mouse pointer on the terminal device interface according to described kinematic parameter, position in the indication of described target location shows described mouse pointer, makes the motion of rocking bar analog mouse pointer on the terminal device interface.Avoid in the prior art using external mouse to come mouse pointer on the control terminal interface, saved the cost of hardware, can obtain simultaneously be operate more accurate and convenient.
Referring to Fig. 2-Fig. 4, another structural representation for the device of a kind of rocking bar analog mouse operation of the present invention except comprising acquisition module 11, computing module 12 and display module 13, also comprises:
Monitor module 14, be used for the intercept target button and whether press, if yes, generate the touchscreen events of described institute cursor mouse pointer current position.
Concrete, this target button is used for left button or the right button of analog mouse, is example with target button analog mouse left button, and the principle of work of simulation right button is identical.Monitor module 14 intercept target buttons and whether press, if yes, generate the touchscreen events of described mouse pointer current position.The configuration of target button and rocking bar can be implemented in and realize the touch screen operation on the non-touch panel device, and the operation of rocking bar and button is simultaneously compared with traditional touch screen operation, and degree of accuracy is higher.
Execution module 15 is used for carrying out the operation of described touchscreen events correspondence, and wherein, this target button is used for left button or the right button of analog mouse.
Concrete, execution module 15 receives monitors the touchscreen events that module sends, and carries out corresponding operation according to occurrence positions and the type of touchscreen events.
Wherein, computing module 12 comprises:
Side-play amount computing unit 121 is used for calculating side-play amount according to the motion amplitude of described rocking bar.
Concrete, side-play amount computing unit 121 obtains mouse pointer corresponding side-play amount on the terminal device interface according to the motion amplitude of rocking bar, and the motion amplitude of rocking bar is directly proportional with side-play amount, and the more big side-play amount of motion amplitude is more big, motion amplitude is more little, and side-play amount is more little.The direction of motion of rocking bar is divided into x direction of principal axis and y direction of principal axis, when rocking bar moves at the x direction of principal axis, side-play amount computing unit 121 calculates mouse pointer axial side-play amount of x on the terminal device interface according to the motion amplitude of rocking bar, when rocking bar moved at the y direction of principal axis, side-play amount computing unit 121 calculated mouse pointer axial side-play amount of y on the terminal device interface according to the motion amplitude of rocking bar.
Target location computing unit 122 is used for calculating the target location of described mouse pointer on described terminal device according to initial position and the described side-play amount of described mouse pointer.
Concrete, target location computing unit 122 according to the initial position of mouse pointer (x0, y0) and the offset addition on the respective direction obtain the target location of described mouse pointer on terminal device.
Display module 13 comprises:
Speed computing unit 131 is for the movement velocity that calculates described mouse pointer according to the movement velocity of described rocking bar.
Concrete, speed computing unit 121 obtains mouse pointer corresponding movement velocity on the terminal device interface according to the movement velocity of rocking bar, the movement velocity of rocking bar is directly proportional with the movement velocity of mouse pointer, the movement velocity of the more big mouse pointer of the movement velocity of rocking bar on terminal interface is just more big, the movement velocity of rocking bar is more little, and the movement velocity of mouse pointer is just partially more little.The direction of motion of rocking bar is divided into x direction of principal axis and y direction of principal axis, and when rocking bar moved at the x direction of principal axis, mouse pointer just moved at the x direction of principal axis, and when rocking bar moved at the y direction of principal axis, mouse pointer just moved at the y direction of principal axis.
Mouse mobile unit 132 is used for according to the movement velocity of the described mouse pointer that calculates described mouse pointer being moved to described target location from described initial position.
Implement embodiments of the invention, calculate the target location of mouse pointer on the terminal device interface according to described kinematic parameter, position in the indication of described target location shows described mouse pointer, makes the motion of rocking bar analog mouse pointer on the terminal device interface.Avoid in the prior art using external mouse to come mouse pointer on the control terminal interface, saved the cost of hardware, can obtain simultaneously be operate more accurate and convenient.
Referring to Fig. 5, be a kind of rocking bar analog mouse method of operating schematic flow sheet of the present invention, this method comprises:
The kinematic parameter of step 101, input when obtaining the rocking bar motion.
Step 102, calculate the target location of mouse pointer on the terminal device interface according to described kinematic parameter.
Step 103, the position of indicating in described target location show described mouse pointer.
Implement embodiments of the invention, calculate the target location of mouse pointer on the terminal device interface according to described kinematic parameter, position in the indication of described target location shows described mouse pointer, makes the motion of rocking bar analog mouse pointer on the terminal device interface.Avoid in the prior art using external mouse to come mouse pointer on the control terminal interface, saved the cost of hardware, can obtain simultaneously be operate more accurate and convenient.
Referring to Fig. 6, the another kind of schematic flow sheet for a kind of rocking bar analog mouse method of operating of the present invention comprises:
The kinematic parameter of the movement velocity of the direction of motion of the motion amplitude that comprises rocking bar of input, rocking bar and rocking bar when 201, obtaining the rocking bar motion.
Step 202, calculate side-play amount according to the motion amplitude of described rocking bar; Initial position and described side-play amount according to described mouse pointer calculate the target location of described mouse pointer on described terminal device.
Step 203, calculate the movement velocity of described mouse pointer according to the movement velocity of described rocking bar; Movement velocity according to the described mouse pointer that calculates moves to described target location with described mouse pointer from described initial position.
Whether step 204, intercept target button are pressed.
Concrete, be if that execution in step 205 not, continues to monitor if be judged as.
The operation of step 205, the described touchscreen events correspondence of execution, wherein, this target button is used for left button or the right button of analog mouse.
Implement embodiments of the invention, calculate the target location of mouse pointer on the terminal device interface according to described kinematic parameter, position in the indication of described target location shows described mouse pointer, makes the motion of rocking bar analog mouse pointer on the terminal device interface.Avoid in the prior art using external mouse to come mouse pointer on the control terminal interface, saved the cost of hardware, can obtain simultaneously be operate more accurate and convenient.
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.

Claims (11)

1. a rocking bar analog mouse method of operating is characterized in that, comprising:
The kinematic parameter of input when obtaining the rocking bar motion;
Calculate the target location of mouse pointer on the terminal device interface according to described kinematic parameter;
Position in the indication of described target location shows described mouse pointer.
2. the method for claim 1 is characterized in that, described position in the indication of described target location also comprises after showing the step of described mouse pointer:
Whether the intercept target button is pressed, and if yes, generates the touchscreen events of described institute cursor mouse pointer current position;
Carry out the operation of described touchscreen events correspondence, wherein, this target button is used for left button or the right button of analog mouse.
3. method as claimed in claim 2 is characterized in that, the kinematic parameter of described rocking bar comprises the direction of motion of the motion amplitude of rocking bar, rocking bar and the movement velocity of rocking bar, and the described step of obtaining the kinematic parameter of importing when rocking bar moves comprises:
The motion amplitude that comprises rocking bar, the direction of motion of rocking bar and the movement velocity kinematic parameter of rocking bar of input when obtaining the rocking bar motion.
4. method as claimed in claim 3 is characterized in that, the described step that calculates the target location of mouse pointer on the terminal device interface according to described kinematic parameter comprises:
Motion amplitude according to described rocking bar calculates side-play amount;
Initial position and described side-play amount according to described mouse pointer calculate the target location of described mouse pointer on described terminal device.
5. method as claimed in claim 4 is characterized in that, described position in the indication of described target location shows that the step of described mouse pointer comprises:
Calculate the movement velocity of described mouse pointer according to the movement velocity of described rocking bar;
Movement velocity according to the described mouse pointer that calculates moves to described target location with described mouse pointer from described initial position.
6. the device of a rocking bar analog mouse operation is characterized in that, comprising:
Acquisition module, the kinematic parameter of input when being used for obtaining the rocking bar motion;
Computing module is used for calculating the target location of mouse pointer on the terminal device interface according to described kinematic parameter;
Display module is used for showing described mouse pointer in the position of described target location indication.
7. device as claimed in claim 6 is characterized in that, also comprises:
Monitor module, be used for the intercept target button and whether press, if yes, generate the touchscreen events of described institute cursor mouse pointer current position;
Execution module is used for carrying out the operation of described touchscreen events correspondence, and wherein, this target button is used for left button or the right button of analog mouse.
8. device as claimed in claim 7 is characterized in that, described acquisition module is used for:
The motion amplitude that comprises rocking bar, the direction of motion of rocking bar and the movement velocity kinematic parameter of rocking bar of input when obtaining the rocking bar motion.
9. device as claimed in claim 8 is characterized in that, described computing module comprises:
The side-play amount computing unit is used for calculating side-play amount according to the motion amplitude of described rocking bar;
The target location computing unit is used for calculating the target location of described mouse pointer on described terminal device according to initial position and the described side-play amount of described mouse pointer.
10. device as claimed in claim 9 is characterized in that, described display module comprises:
The speed computing unit is for the movement velocity that calculates described mouse pointer according to the movement velocity of described rocking bar;
The mouse mobile unit is used for according to the movement velocity of the described mouse pointer that calculates described mouse pointer being moved to described target location from described initial position.
11. an electronic equipment is characterized in that, comprises the device as each described a kind of rocking bar analog mouse operation of claim 6-10.
CN2013100629822A 2013-02-28 2013-02-28 Method and device for simulating mouse operation by rocker and electronic equipment Pending CN103186254A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013100629822A CN103186254A (en) 2013-02-28 2013-02-28 Method and device for simulating mouse operation by rocker and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013100629822A CN103186254A (en) 2013-02-28 2013-02-28 Method and device for simulating mouse operation by rocker and electronic equipment

Publications (1)

Publication Number Publication Date
CN103186254A true CN103186254A (en) 2013-07-03

Family

ID=48677453

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013100629822A Pending CN103186254A (en) 2013-02-28 2013-02-28 Method and device for simulating mouse operation by rocker and electronic equipment

Country Status (1)

Country Link
CN (1) CN103186254A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106155529A (en) * 2015-04-10 2016-11-23 中兴通讯股份有限公司 Method for controlling mobile terminal and mobile terminal
CN107400993A (en) * 2016-05-20 2017-11-28 天津宝盈电脑机械有限公司 Rocking bar controls computer quilter control system
CN110007786A (en) * 2019-03-04 2019-07-12 深圳威尔视觉传媒有限公司 Method and related device for optimizing handle mapping to mouse sensitivity
CN112650474A (en) * 2020-12-18 2021-04-13 咪咕互动娱乐有限公司 Control script generation method and device, network equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102163093A (en) * 2011-04-25 2011-08-24 杭州海康威视数字技术股份有限公司 Method and device for simulating external access of mouse by using rocker

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102163093A (en) * 2011-04-25 2011-08-24 杭州海康威视数字技术股份有限公司 Method and device for simulating external access of mouse by using rocker

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106155529A (en) * 2015-04-10 2016-11-23 中兴通讯股份有限公司 Method for controlling mobile terminal and mobile terminal
CN107400993A (en) * 2016-05-20 2017-11-28 天津宝盈电脑机械有限公司 Rocking bar controls computer quilter control system
CN110007786A (en) * 2019-03-04 2019-07-12 深圳威尔视觉传媒有限公司 Method and related device for optimizing handle mapping to mouse sensitivity
CN112650474A (en) * 2020-12-18 2021-04-13 咪咕互动娱乐有限公司 Control script generation method and device, network equipment and storage medium
CN112650474B (en) * 2020-12-18 2024-03-22 咪咕互动娱乐有限公司 Control script generation method, device, network equipment and storage medium

Similar Documents

Publication Publication Date Title
CN102317892B (en) The method of control information input media, message input device, program and information storage medium
EP3281092B1 (en) Force-sensitive touch sensor compensation
KR102072614B1 (en) User interface object manipulations in a user interface
CN107748641B (en) Numerical value adjustment control method and device, electronic equipment and storage medium
CN103620526B (en) The gesture control type technology of radius of interaction is extended in computer vision application
CN102681754B (en) Messaging device and information processing method
CN202433853U (en) Information processing equipment
CN102902467B (en) Text cursor positioning method of terminal equipment and terminal equipment
CN103246388A (en) System and method of calibration of input device
CN103616972B (en) Touch screen control method and terminal device
CN106201315A (en) Information processor and display packing
CN105683877A (en) User interface for manipulating user interface objects
CN102608351B (en) Detection method and system of three-dimensional gesture of mechanical arm and system controlling mechanical arm to operate
KR20140148492A (en) operation control conversion method for virtual icon touchscreen application program, and touchscreen terminal
CN103186254A (en) Method and device for simulating mouse operation by rocker and electronic equipment
CN103869942A (en) Input control method and wearing electronic device
CN105144068A (en) Application program display method and terminal
CN103246368A (en) System and method for spurious signal detection and compensation on an input device
EP2806342A1 (en) Electronic device
TWI688744B (en) A measuring device and a measuring method for measuring three-dimensional coordinates of points on surface of an object
TWI621037B (en) Touch sensitive system and stylus for commanding by maneuvering and method thereof
CN102736759A (en) Touch screen and operating method thereof
CN103902151A (en) Method for Controlling the Magnification Level on a Display
CN205050078U (en) A wearable apparatus
CN102289341B (en) Game control method and device applied to touch equipment as well as touch equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: HANGZHOU RUIGAO INTELLIGENT EQUIPMENT CO., LTD.

Free format text: FORMER OWNER: SHENZHEN RUIGAO INFORMATION TECHNOLOGIES CO., LTD.

Effective date: 20140916

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 518000 SHENZHEN, GUANGDONG PROVINCE TO: 310000 HANGZHOU, ZHEJIANG PROVINCE

TA01 Transfer of patent application right

Effective date of registration: 20140916

Address after: Zhejiang Zhongcai Building No. 68 Binjiang District West Street and Hangzhou road 310000, Zhejiang province 10 area B

Applicant after: Hangzhou Ruigao Intelligent Equipment Co., Ltd.

Address before: 518000 Guangdong city of Shenzhen province Nanshan District high new technology building a moral match eleven layer 1102R

Applicant before: Shenzhen Ruigao Information Technology Co.,Ltd.

C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130703