CN103092425B - Method for achieving touch screen control through mouse man-machine interface - Google Patents

Method for achieving touch screen control through mouse man-machine interface Download PDF

Info

Publication number
CN103092425B
CN103092425B CN201310046695.2A CN201310046695A CN103092425B CN 103092425 B CN103092425 B CN 103092425B CN 201310046695 A CN201310046695 A CN 201310046695A CN 103092425 B CN103092425 B CN 103092425B
Authority
CN
China
Prior art keywords
touch screen
mouse
control point
point
coordinate
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.)
Active
Application number
CN201310046695.2A
Other languages
Chinese (zh)
Other versions
CN103092425A (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.)
Huizhou Foryou General Electronics Co Ltd
Original Assignee
Huizhou Foryou General Electronics 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 Huizhou Foryou General Electronics Co Ltd filed Critical Huizhou Foryou General Electronics Co Ltd
Priority to CN201310046695.2A priority Critical patent/CN103092425B/en
Publication of CN103092425A publication Critical patent/CN103092425A/en
Application granted granted Critical
Publication of CN103092425B publication Critical patent/CN103092425B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Position Input By Displaying (AREA)

Abstract

The invention relates to the field of touch screens, in particular to a method for achieving touch screen control through a mouse man-machine interface. When a touch screen is detected to be connected with electronic equipment, the touch screen is described as mouse equipment. Touch points of the touch screen are sampled to obtain a touch point coordinate. The touch point coordinate is computed to obtain the coordinate of a target mouse control point. The coordinate of a mouse control point is ordered to be a coordinate of touch screen corner positions, and mouse control points are moved to the touch screen corners. The coordinate of the mouse control point is ordered to be the coordinate of the target mouse control point, and the mouse control points are moved to designated spot on the touch screen. By means of the technical scheme, the function of access control of the touch screen is achieved through a human interface device (HID) port, a touch screen HID port is replaced, and the touch screen effect is achieved through a mouse HID port so that cost and a development cycle of the touch screen port are reduced, and the manpower resource is saved.

Description

A kind of method that touch screen control is realized by mouse man-machine interface
Technical field
The present invention relates to touch screen field, particularly to a kind of side realizing touch screen control by mouse man-machine interface Method.
Background technology
Man-machine interface refers to set up the interface of the input-output apparatus contacting, exchanging information between people and computer, these Equipment includes keyboard, display, printer, Genius mouse etc..Man-machine interface is computer with realization letter between human-computer interaction device The control circuit of breath transmission.It completes the conversion of message form and the control of information transfer together with human-computer interaction device, in people In information transfer between machine interactive device and man-machine interface, mostly adopt at present:Parallel communication fashion.
Human interface device(Human Interface Device, HID)Classification is the USB class that Windows supports earliest Not.Will be seen that HID device is the equipment that computer is directly interacted with people by its title, such as keyboard, mouse and joystick etc.. But HID device has been not necessarily intended to man-machine interface, as long as meeting HID class specification, is all just HID device.
In addition, current touch screen technology develops rapidly, for operational convenience, people replaced with touch screen mouse or Keyboard, and currently marketed electronic equipment, such as smart mobile phone, vehicle-mounted computer, PC etc., are needing to access touch screen When, it is required for inside electronic equipment being designed with touch screen HID interface, but actually most electronic equipment does not have Setting touch screen HID interface, but only it is provided with mouse HID interface, if additionally setting touch screen HID interface, can cause to design The increase of cost, the problems such as the R&D cycle extends, if being not provided with touch screen HID interface, can greatly limit touch-screen applications again Development.
Content of the invention
Embodiment of the present invention goal of the invention is to provide a kind of method realizing touch screen control by mouse man-machine interface, Apply this technical scheme can realize the function of touch screen Access Control by mouse HID interface, instead of touch screen HID interface Use, saved R&D cycle and cost, also a saving human resourcess.
A kind of by mouse man-machine interface realize touch screen control method it is characterised in that comprising the following steps:
When touch screen connection electronic equipment is detected, touch screen is described as mouse device;
Is sampled in the touch point of touch screen, obtain the coordinate of described touch point;
Calculate the coordinate of described touch point, obtain the coordinate of target mouse control point;
Make the coordinate for touch screen corner location for the coordinate of mouse control point, mouse control point movement is to touch screen corner;
Make the coordinate for target mouse control point for the coordinate of mouse control point, mouse control point movement is to touch screen specific bit Put.
Preferably, step:Make the coordinate for target mouse control point for the coordinate of mouse control point, mouse control point is mobile extremely The specified location of touch screen;Specifically
If Moving Unit in touch screen for the mouse control point has maximum, mouse control point is divided into integer Mobile;
Wherein, integer is the business with the mobile maximum of mouse control point for the actual Moving Unit distance of mouse control point.
Preferably, the process described touch screen being described as mouse device is specially:By changing man-machine interface HID description Accord with or pass through independently developed driver, touch screen is described as mouse device.
Optionally, described electronic equipment can be smart mobile phone, vehicle-mounted computer, PC etc..
Therefore, apply the present embodiment technical scheme, realize the work(of touch screen Access Control by mouse HID interface Can, instead of the use of touch screen HID interface, touch screen effect is realized by mouse HID interface, decrease increase touch screen and connect The cost of mouth and R&D cycle, save human resourcess.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing Have technology description in required use accompanying drawing be briefly described it should be apparent that, drawings in the following description be only this Some embodiments of invention, for those of ordinary skill in the art, without having to pay creative labor, also may be used So that other accompanying drawings are obtained according to these accompanying drawings.
The schematic diagram that Fig. 1 provides for the embodiment of the present invention 1.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation description is it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of not making creative work Embodiment, broadly falls into the scope of protection of the invention.
Embodiment 1:
As shown in figure 1, present embodiments providing a kind of method realizing touch screen control by mouse man-machine interface, it wraps Include following steps:
Step 110:When touch screen connection electronic equipment is detected, touch screen is described as mouse device.
Wherein, the electronic equipment of available connection can be smart mobile phone, vehicle-mounted computer, PC etc..
And the process that described touch screen is described as mouse device is specially:By change man-machine interface HID descriptor or By independently developed driver, touch screen is described as mouse device.
Step 120:Is sampled in the touch point of touch screen, obtain the coordinate of described touch point.
Step 130:Calculate the coordinate of described touch point, obtain the coordinate of target mouse control point.
Step 140:Make the coordinate for touch screen corner location for the coordinate of mouse control point, mouse control point is mobile extremely to be touched Screen corner.
Wherein, if Moving Unit in touch screen for the mouse control point has maximum, mouse control point is divided into Integer time is mobile;
Wherein, integer is the business with the mobile maximum of mouse control point for the actual Moving Unit distance of mouse control point.
Step 150:Make the coordinate for target mouse control point for the coordinate of mouse control point, now mouse control point is mobile extremely Touch screen specified location.
With regard to specific example, description will be made to the present embodiment below:
Mouse man-machine interface generally can achieve the pressing, slide of control point, event of upspringing, and wherein presses the target Mus of event Mark control point position is with respect to the position of last mouse control point, if its coordinate is (△ X, △ Y).
The generally also achievable control point of touch screen function is pressed, slides, event of upspringing, and wherein presses incident control point position It is with respect to the position touching upper each touch point, if its coordinate is (X, Y).
In the case that current mouse control point position coordinateses are unknown, using target mouse control point coordinates (△ X, △ Y) Realize for touch screen control point moving to specified location:(X, Y).
Assume that touch screen control point coordinates is(X, Y), in actual movement, coordinate figure is that exist to limit, and it is minimum Coordinate figure is (0,0), and maximum coordinate value among is(XMax,YMax).
Wherein, using touch screen corner coordinate by mouse control point movement to touch screen corner location, now in touch screen The touch point coordinates of corner is (0,0), then specifically, make △ X=- Xmax, △ Y=-Ymax, that is, mouse control point coordinates is (- Xmax ,-Ymax).
By the specified location to touch screen for the mouse control point movement, as move to target mouse control point position, if Now the touch point coordinates of the specified location in touch screen is (X, Y), then specifically, make △ X=X, △ Y=Y, i.e. target Mouse control point coordinates (△ X, △ Y) is(X, Y);
And during actual mouse control point is mobile, the coordinate figure of mouse control point(△ X, △ Y)There may be Maximum, that is, in the mobile presence movement maximum of X-direction and Y direction, now mouse control point is in reality for mouse control point It may be necessary to point integer time is mobile in the case that existing touch screen controls;Integer time now moves number of times for mouse control point, that is, Business for the mobile maximum of actual Moving Unit distance and mouse control point of mouse control point.
Example:If mouse control point needs the distance of mobile 300 units in X-direction, and each mouse control point Mobile maximum be 127, then the number of times moving approximates three movements for 300 divided by 127, and now mouse control point exists every time X-direction shift position is respectively:127、127、46.
Except present embodiment discloses arranging touch screen control by way of mouse control point is set to corner location The method of point position, in addition, control point position is set to corner, can also arrange border (0, YMax), (XMax, YMax), (XMax, 0), broadly falls into the design of the present invention, within being in the scope of the present invention.
Device embodiment described above is only that schematically the wherein said unit illustrating as separating component can To be or to may not be physically separate, as the part that unit shows can be or may not be physics list Unit, you can with positioned at a place, or can also be distributed on multiple NEs.Can be selected it according to the actual needs In the purpose to realize this embodiment scheme for some or all of module.Those of ordinary skill in the art are not paying creativeness Work in the case of, you can to understand and to implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can Mode by software plus necessary general hardware platform to be realized naturally it is also possible to pass through hardware.Based on such understanding, on That states that technical scheme substantially contributes to prior art in other words partly can be embodied in the form of software product, should Computer software product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD etc., including some fingers Order is with so that a computer equipment(Can be personal computer, server, or network equipment etc.)Execute each enforcement Example or some partly described methods of embodiment.
Embodiments described above, does not constitute the restriction to this technical scheme protection domain.Any in above-mentioned enforcement Modification, equivalent and improvement of being made within the spirit of mode and principle etc., should be included in the protection model of this technical scheme Within enclosing.

Claims (4)

1. a kind of by mouse man-machine interface realize touch screen control method it is characterised in that comprising the following steps:Work as detection During to touch screen connection electronic equipment, touch screen is described as mouse device;
Is sampled in the touch point of touch screen, obtain the coordinate (X, Y) of described touch point, and min coordinates value (- XMax ,- YMax)=(0,0), maximum coordinate value among (XMax, YMax);
Calculate the coordinate of described touch point, obtain and the described coordinate (△ touching the corresponding mouse control point of point coordinates (X, Y) X, △ Y);
To touch screen corner location, it is (0,0) that order touches point coordinates for mobile described touch point, now corresponding mouse control point For:△ X=-Xmax, △ Y=-Ymax, that is, mouse control point coordinates is (- Xmax ,-Ymax);
By mouse control point movement to the specified location of touch screen, make △ X=X, △ Y=Y, i.e. target mouse control point coordinates (△ X, △ Y) is (X, Y), determines the mapping relations of touch point and mouse control point.
2. according to claim 1 a kind of by mouse man-machine interface realize touch screen control method it is characterised in that:
Step:Specified location by mouse control point movement to touch screen;Specifically
If Moving Unit in touch screen for the mouse control point has maximum, mouse control point is divided into integer time and moves Dynamic;
Wherein, integer is the business with the mobile maximum of mouse control point for the actual Moving Unit distance of mouse control point.
3. according to claim 2 a kind of by mouse man-machine interface realize touch screen control method it is characterised in that: The process that described touch screen is described as mouse device is specially:By changing man-machine interface HID descriptor or passing through voluntarily to open The driver sent out, touch screen is described as mouse device.
4. according to claim 3 a kind of by mouse man-machine interface realize touch screen control method it is characterised in that: Described electronic equipment is smart mobile phone, vehicle-mounted computer, PC.
CN201310046695.2A 2013-02-05 2013-02-05 Method for achieving touch screen control through mouse man-machine interface Active CN103092425B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310046695.2A CN103092425B (en) 2013-02-05 2013-02-05 Method for achieving touch screen control through mouse man-machine interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310046695.2A CN103092425B (en) 2013-02-05 2013-02-05 Method for achieving touch screen control through mouse man-machine interface

Publications (2)

Publication Number Publication Date
CN103092425A CN103092425A (en) 2013-05-08
CN103092425B true CN103092425B (en) 2017-02-08

Family

ID=48205077

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310046695.2A Active CN103092425B (en) 2013-02-05 2013-02-05 Method for achieving touch screen control through mouse man-machine interface

Country Status (1)

Country Link
CN (1) CN103092425B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105975174A (en) * 2016-04-26 2016-09-28 乐视控股(北京)有限公司 System and method for simulating click operation under situation of no touch screens
CN106681537A (en) * 2016-10-24 2017-05-17 深圳市芯智科技有限公司 Capacitance type trackpoint mouse and touch coordinate acquisition method thereof
CN108710437A (en) * 2018-05-17 2018-10-26 江苏沁恒股份有限公司 A kind of interactive system and method for portable intelligent device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1402116A (en) * 2001-08-04 2003-03-12 三星电子株式会社 Device with touch screen using connected external apparatus for displaying information, and method thereof
CN101382856A (en) * 2008-09-24 2009-03-11 广东威创视讯科技股份有限公司 Apparatus and method for implementing USB HID MOUSE function on touching device
CN101924807A (en) * 2010-07-23 2010-12-22 康佳集团股份有限公司 Touch-screen mobile phone and mouse input method
CN102331901A (en) * 2011-05-30 2012-01-25 广州视睿电子科技有限公司 Method and device for realizing middle mouse button effect on touch screen
CN102331872A (en) * 2011-05-30 2012-01-25 广州视睿电子科技有限公司 Method and device for achieving effect of middle mouse button on touch screen

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1402116A (en) * 2001-08-04 2003-03-12 三星电子株式会社 Device with touch screen using connected external apparatus for displaying information, and method thereof
CN101382856A (en) * 2008-09-24 2009-03-11 广东威创视讯科技股份有限公司 Apparatus and method for implementing USB HID MOUSE function on touching device
CN101924807A (en) * 2010-07-23 2010-12-22 康佳集团股份有限公司 Touch-screen mobile phone and mouse input method
CN102331901A (en) * 2011-05-30 2012-01-25 广州视睿电子科技有限公司 Method and device for realizing middle mouse button effect on touch screen
CN102331872A (en) * 2011-05-30 2012-01-25 广州视睿电子科技有限公司 Method and device for achieving effect of middle mouse button on touch screen

Also Published As

Publication number Publication date
CN103092425A (en) 2013-05-08

Similar Documents

Publication Publication Date Title
CN103324348B (en) A kind of windows desktop control method based on intelligent mobile terminal
US9423953B2 (en) Emulating pressure sensitivity on multi-touch devices
CN103383603B (en) The method and electronic equipment of information processing
CN107291277B (en) A kind of method, apparatus of false-touch prevention, equipment and storage medium
WO2014065499A1 (en) Edit providing method according to multi-touch-based text block setting
CN103123573B (en) Electronic device
CN103218044B (en) A kind of touching device of physically based deformation feedback and processing method of touch thereof
CN105117056A (en) Method and equipment for operating touch screen
CN102830930B (en) The processing method of a kind of keyboard, device and multimedia terminal
CN103389850B (en) A kind of method and device realizing prompt operation on a web browser
US20130328778A1 (en) Method of simulating the touch screen operation by means of a mouse
CN103942053A (en) Three-dimensional model gesture touch browsing interaction method based on mobile terminal
CN107844243A (en) Cloud tabletop touch implementation method and device
CN103116453A (en) Operation management method and operation management device of graphic object
CN103686283A (en) Smart television remote controller man-machine interaction method
CN108932057A (en) Method of controlling operation thereof, device, storage medium and electronic equipment
CN108174032A (en) A kind of network-based smart mobile phone method for remote controlling computer
CN103092425B (en) Method for achieving touch screen control through mouse man-machine interface
CN109635216A (en) A kind of same method for shielding annotation of picture progress of mobile terminal and browser
US20110216014A1 (en) Multimedia wireless touch control device
CN103488321A (en) Method and device for recognizing touch action on touch screen terminal
CN107765900A (en) A kind of smart pen, the control method of smart pen, device, equipment and storage medium
CN105204754A (en) One-handed operation method and device of touch screen
CN103472931A (en) Method for operating simulation touch screen by mouse
CN103558913A (en) Virtual input glove keyboard with vibration feedback function

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