CN102650911A - Gesture method used for mouse - Google Patents

Gesture method used for mouse Download PDF

Info

Publication number
CN102650911A
CN102650911A CN2012101665215A CN201210166521A CN102650911A CN 102650911 A CN102650911 A CN 102650911A CN 2012101665215 A CN2012101665215 A CN 2012101665215A CN 201210166521 A CN201210166521 A CN 201210166521A CN 102650911 A CN102650911 A CN 102650911A
Authority
CN
China
Prior art keywords
mouse
gesture
distance
coordinate
instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012101665215A
Other languages
Chinese (zh)
Other versions
CN102650911B (en
Inventor
王宏鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Zhongjin Energy Technology Co.,Ltd.
Original Assignee
Shenzhen Zhongjin Sichuang Technology Development 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 Zhongjin Sichuang Technology Development Co Ltd filed Critical Shenzhen Zhongjin Sichuang Technology Development Co Ltd
Priority to CN201210166521.5A priority Critical patent/CN102650911B/en
Publication of CN102650911A publication Critical patent/CN102650911A/en
Application granted granted Critical
Publication of CN102650911B publication Critical patent/CN102650911B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a gesture method used for a mouse. The method comprises the following steps of: detecting whether a first gesture is executed or not, wherein the first gesture refers to pressing the right button of the mouse; detecting whether a second gesture is executed or not, wherein the second gesture refers to keeping pressing the left button of the mouse and simultaneously sliding the mouse; recording the original coordinate of a mouse pointer at the moment of clicking the mouse and recording the real-time coordinate of the mouse pointer in the process of sliding the mouse; determining the magnitude of a first distance between the current real-time coordinate of the mouse pointer and a preset coordinate and the magnitude of a second distance between the original coordinate and the preset coordinate, wherein the preset coordinate is a central symmetry coordinate of the original coordinate relative to the central point of a projection screen; and if the first distance is greater than the second distance, amplifying the current display image, otherwise, reducing the current display image. By utilizing the gesture method used for the mouse, a function of scaling the current display image can be realized only through the mouse, and the convenience for control is enhanced.

Description

A kind of gesture method that is used for mouse
Technical field
The present invention relates to a kind of gesture method that is used for mouse, relate in particular to a kind of gesture method that is used for mouse that strengthens operation ease.
Background technology
Traditional click that only is confined to display object of controlling to projector use mouse does not have and only uses mouse that the convergent-divergent that carries out of display object is controlled, and uses to have certain limitation.
Summary of the invention
The object of the present invention is to provide a kind of gesture method that is used for mouse that can realize the zoom action of display object through mouse.
For realizing above-mentioned purpose, the said gesture method that is used for mouse is characterized in, comprise,
Step 1: detect whether carried out first gesture, said first gesture is not put for pinning right mouse button;
Step 2: detect and whether carried out second gesture; Said second gesture is not put and the while sliding mouse for pinning left mouse button; Be recorded in the origin coordinates of mouse pointer constantly of clicking the mouse, and the real-time coordinate of mouse pointer in the process of record sliding mouse;
Step 3: judge the size of the real-time coordinate of current mouse pointer and first distance between the preset coordinate and the second distance between said origin coordinates and the preset coordinate, wherein said preset coordinate is the center symmetric coordinates of said origin coordinates with respect to the projection screen central point; If said first the distance greater than second distance, execution in step four; Otherwise, if said first the distance less than second distance, execution in step five;
Step 4: produce one first instruction, said first instruction is for amplifying current displayed image; And,
Step 5: produce one second instruction, said second instruction is for dwindling current display image.
Preferably, amplification or the scale down to current display image satisfies:
Figure BDA00001685643200021
wherein; D1=sqrt ((x-400) * (x-400)+(y-300) (y-300)), d2=sqrt ((X-400) * (X-400)+(Y-300) (Y-300)); Origin coordinates be (x, y), in real time coordinate be (X, Y).
Beneficial effect of the present invention is, adopts the said gesture method that is used for mouse, can realize only carrying out through mouse the zoom function of current display image, has increased the convenience of controlling.
Description of drawings
Fig. 1 is the process flow diagram that is used for the gesture method of mouse of the present invention.
Fig. 2 is the synoptic diagram that is used for the gesture method of mouse of the present invention.
Embodiment
Below in conjunction with accompanying drawing the present invention is further specified.
Fig. 1 is the process flow diagram that is used for the gesture method of mouse of the present invention, and is as shown in Figure 1, and the said gesture method that is used for mouse is characterized in, comprise,
Step 1: detect whether carried out the first gesture S1, said first gesture is not put for pinning right mouse button;
Step 2: detect and whether carried out the second gesture S2; Said second gesture is not put and the while sliding mouse for pinning left mouse button; Be recorded in the origin coordinates of mouse pointer constantly of clicking the mouse, and the real-time coordinate of mouse pointer in the process of record sliding mouse;
Step 3: judge the big or small S3 of the real-time coordinate of current mouse pointer and first distance between the preset coordinate and the second distance between said origin coordinates and the preset coordinate, wherein said preset coordinate is the center symmetric coordinates of said origin coordinates with respect to the projection screen central point; If said first the distance greater than second distance, execution in step four; Otherwise, if said first the distance less than second distance, execution in step five;
Step 4: produce and carry out the first instruction S4, said first instruction is for amplifying current displayed image; And,
Step 5: produce and carry out the second instruction S5, said second instruction is for dwindling current display image.
Contrast accompanying drawing 2 is explained the ratio that contents of the present invention and amplification are dwindled below, and as shown in Figure 2, for the display screen of a 800x600, the coordinate of its central point O is (400; 300), when carrying out said second gesture, the A point that left mouse button is clicked is as starting point; Origin coordinates be made as (x, y), then this origin coordinates is the AA point with respect to the center symmetric points of said central point O; With as preset coordinate, preset coordinate is (800-x, 600-y)) under the situation shown in Figure 2.In the process that mouse slides, and the real-time coordinate of mouse pointer and preset coordinate (800-x, the distance between 600-y) is called first distance; Said origin coordinates (x; Y) with preset coordinate (800-x, the distance between 600-y) is a second distance, when said first distance during greater than second distance; Produce and carry out the first instruction S4, said first instruction is for amplifying current displayed image.Otherwise, when said first distance during, producing and carry out the second instruction S5 less than second distance, said second instruction is for dwindling current display image.Wherein, to the amplification of current display image or scale down by computes:
Figure BDA00001685643200031
wherein; D1=sqrt ((x-400) * (x-400)+(y-300) (y-300)); D2=sqrt ((X-400) * (X-400)+(Y-300) (Y-300)), wherein origin coordinates be (x, y); In real time coordinate be (X, Y).
Being merely preferred embodiment of the present invention in sum, is not to be used for limiting practical range of the present invention.Be that all equivalences of doing according to the content of claim of the present invention change and modification, all should belong to technological category of the present invention.

Claims (2)

1. gesture method that is used for mouse is characterized in that: comprises,
Step 1: detect whether carried out first gesture, said first gesture is not put for pinning right mouse button;
Step 2: detect and whether carried out second gesture; Said second gesture is not put and the while sliding mouse for pinning left mouse button; Be recorded in the origin coordinates of mouse pointer constantly of clicking the mouse, and the real-time coordinate of mouse pointer in the process of record sliding mouse;
Step 3: judge the size of the real-time coordinate of current mouse pointer and first distance between the preset coordinate and the second distance between said origin coordinates and the preset coordinate, wherein said preset coordinate is the center symmetric coordinates of said origin coordinates with respect to the projection screen central point; If said first the distance greater than second distance, execution in step four; Otherwise, if said first the distance less than second distance, execution in step five;
Step 4: produce one first instruction, said first instruction is for amplifying current displayed image; And,
Step 5: produce one second instruction, said second instruction is for dwindling current display image.
2. the gesture method that is used for mouse according to claim 1 is characterized in that: amplification or scale down to current display image satisfy:
Figure FDA00001685643100011
wherein; D1=sqrt ((x-400) * (x-400)+(y-300) (y-300)), d2=sqrt ((X-400) * (X-400)+(Y-300) (Y-300)); Origin coordinates be (x, y), in real time coordinate be (X, Y).
CN201210166521.5A 2012-05-25 2012-05-25 Gesture method used for mouse Active CN102650911B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210166521.5A CN102650911B (en) 2012-05-25 2012-05-25 Gesture method used for mouse

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210166521.5A CN102650911B (en) 2012-05-25 2012-05-25 Gesture method used for mouse

Publications (2)

Publication Number Publication Date
CN102650911A true CN102650911A (en) 2012-08-29
CN102650911B CN102650911B (en) 2014-12-10

Family

ID=46692924

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210166521.5A Active CN102650911B (en) 2012-05-25 2012-05-25 Gesture method used for mouse

Country Status (1)

Country Link
CN (1) CN102650911B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019594A (en) * 2012-12-06 2013-04-03 鸿富锦精密工业(深圳)有限公司 Electronic device and page zooming method thereof
CN104423826A (en) * 2013-09-03 2015-03-18 上海炬力集成电路设计有限公司 Method and device for zooming by middle mouse button and scroll wheel
CN106845439A (en) * 2017-02-13 2017-06-13 深圳市华第时代科技有限公司 The recognition methods of mouse gestures and device
CN108874291A (en) * 2018-07-03 2018-11-23 深圳市七熊科技有限公司 A kind of method and apparatus of multi-point control screen

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2707066A1 (en) * 2007-12-08 2009-06-11 Duc Phu Truong Mouse with a finger triggered sensor
CN101825960A (en) * 2010-04-23 2010-09-08 潘天华 Method for realizing computer function control based on three-point state information of mouse
CN102332024A (en) * 2011-09-30 2012-01-25 奇智软件(北京)有限公司 Touch control type browser for portable mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2707066A1 (en) * 2007-12-08 2009-06-11 Duc Phu Truong Mouse with a finger triggered sensor
CN101825960A (en) * 2010-04-23 2010-09-08 潘天华 Method for realizing computer function control based on three-point state information of mouse
CN102332024A (en) * 2011-09-30 2012-01-25 奇智软件(北京)有限公司 Touch control type browser for portable mobile terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019594A (en) * 2012-12-06 2013-04-03 鸿富锦精密工业(深圳)有限公司 Electronic device and page zooming method thereof
CN104423826A (en) * 2013-09-03 2015-03-18 上海炬力集成电路设计有限公司 Method and device for zooming by middle mouse button and scroll wheel
CN106845439A (en) * 2017-02-13 2017-06-13 深圳市华第时代科技有限公司 The recognition methods of mouse gestures and device
CN108874291A (en) * 2018-07-03 2018-11-23 深圳市七熊科技有限公司 A kind of method and apparatus of multi-point control screen

Also Published As

Publication number Publication date
CN102650911B (en) 2014-12-10

Similar Documents

Publication Publication Date Title
EP2866129B1 (en) Cursor display position determination method and device
CN102650911B (en) Gesture method used for mouse
US20120250940A1 (en) Terminal device, object control method, and program
JP2014534533A5 (en)
CN103577104B (en) Display method of virtual keyboard, control device and touch equipment
US10140012B2 (en) Input identification method and input apparatus
US9880697B2 (en) Remote multi-touch control
WO2015043113A1 (en) Method for operating screen of handheld device by using single hand
CN103324414A (en) Method and mobile terminal for adjusting icon positions
RU2015155277A (en) DISPLAY MANAGEMENT DEVICE AND COMPUTER READABLE RECORDING MEDIA
CN105549934A (en) Display interface control method and system
CN105117056A (en) Method and equipment for operating touch screen
CN103631419A (en) Cursor positioning method and system based on remote control touch pad
TWI456478B (en) Method and electronic appataus for touch control
CN104536641A (en) Mobile terminal and screen operation method thereof
CN103530035A (en) Touch control terminal and area operating method of touch control terminal
CN103369140A (en) Display font amplification method, system and communication terminal
TW201329846A (en) Portable apparatus and operation method thereof
TW201409340A (en) System and method for moving graphics
CN103777856A (en) Method and system for processing touch event into remote control gesture and remote control terminal
CN103699331A (en) Gesture method for controlling screen zooming
JP2010198290A (en) Input device, display position adjustment method for pointer, and program
WO2017114194A1 (en) Mobile terminal operation bar arrangement method and apparatus
US20160132478A1 (en) Method of displaying memo and device therefor
CN102830892A (en) Touch control method and electronic device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210420

Address after: NO.703, warehouse 2, Baisha logistics company, 3011 Shahe West Road, Shuguang community, Xili street, Nanshan District, Shenzhen, Guangdong 518000

Patentee after: Shenzhen Zhongjin Energy Technology Co.,Ltd.

Address before: 518000 Guangdong city of Shenzhen province Nanshan District Shahe Road West Dingxin building room 1001

Patentee before: SHENZHEN ZHONGJIN SICHUANG SCIENCE & TECHNOLOGY DEVELOPMENT Co.,Ltd.