CN103092425A - 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 PDFInfo
- Publication number
- CN103092425A CN103092425A CN2013100466952A CN201310046695A CN103092425A CN 103092425 A CN103092425 A CN 103092425A CN 2013100466952 A CN2013100466952 A CN 2013100466952A CN 201310046695 A CN201310046695 A CN 201310046695A CN 103092425 A CN103092425 A CN 103092425A
- Authority
- CN
- China
- Prior art keywords
- touch
- mouse
- screen
- control 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.)
- Granted
Links
Images
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
Technical field
The present invention relates to the touch-screen field, particularly a kind ofly realize by the mouse man-machine interface method that touch-screen is controlled.
Background technology
Man-machine interface refers to set up between people and computing machine and contacts, the interface of the input-output apparatus of exchange message, and these equipment comprise keyboard, display, printer, Genius mouse etc.Man-machine interface is that computing machine is with the control circuit of realizing communication between the human-computer interaction device.It completes the conversion of message form and the control of communication together with the human-computer interaction device, in the communication between human-computer interaction device and man-machine interface, mostly adopt at present: parallel communication fashion.
Human interface device (Human Interface Device, HID) classification is the USB classification that Windows supports the earliest.Can understand HID equipment by its title is the equipment that computing machine is direct and the people is mutual, such as keyboard, mouse and joystick etc.But HID equipment not necessarily will have man-machine interface, as long as meet HID classification standard, is all just HID equipment.
in addition, present touch screen technology develop rapidly, for operational convenience, people replace mouse or keyboard with touch-screen, and currently marketed electronic equipment, as smart mobile phone, vehicle-mounted computer, PC etc., in needs access touch-screen, all need to be designed with touch-screen HID interface in the electronic equipment the inside, but in fact most electronic equipment does not arrange touch-screen HID interface, but only be provided with mouse HID interface, if additionally being set, touch-screen HID interface can cause the increase of design cost, the problems such as R﹠D cycle prolongation, if touch-screen HID interface is not set, can greatly limit the development of touch-screen applications again.
Summary of the invention
Embodiment of the present invention goal of the invention is to provide a kind of and realizes by the mouse man-machine interface method that touch-screen is controlled, using this technical scheme can be by the function of mouse HID Interface realization touch-screen Access Control, replaced the use of touch-screen HID interface, save R﹠D cycle and cost, also saved human resources.
A kind of method that realizes touch-screen control by the mouse man-machine interface is characterized in that, comprises the following steps:
When touch-screen connecting electronic equipment being detected, touch-screen is described as mouse device;
Sampling in touch point to touch-screen, obtains the coordinate of described touch point;
Calculate the coordinate of described touch point, obtain the coordinate of target mouse control point;
The coordinate that makes mouse control point is the coordinate of touch-screen corner location, and the mouse control point moves to the touch-screen corner;
The coordinate that makes mouse control point is the coordinate of target mouse control point, and the mouse control point moves to the touch-screen assigned address.
Preferably, step: the coordinate that makes mouse control point is the coordinate of target mouse control point, and the mouse control point moves to the assigned address of touch-screen; Concrete
When if there is maximal value in the Moving Unit of mouse control point in touch-screen, mouse control point can be divided into integer time movement;
Wherein, integer is the actual Moving Unit distance and the mobile peaked business of mouse control point of mouse control point.
Preferably, the process that described touch-screen is described as mouse device is specially: by revising man-machine interface HID descriptor or by independently developed driver, touch-screen being described as mouse device.
Optionally, described electronic equipment can be smart mobile phone, vehicle-mounted computer, PC etc.
Therefore, use the present embodiment technical scheme, by the function of mouse HID Interface realization touch-screen Access Control, replaced the use of touch-screen HID interface, by mouse HID Interface realization touch-screen effect, reduced the cost and the R﹠D cycle that increase touch screen interface, saved human resources.
Description of drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, the below will do to introduce simply to the accompanying drawing of required use in embodiment or description of the Prior Art, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The schematic diagram that Fig. 1 provides for the embodiment of the present invention 1.
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 clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Based on the embodiment in 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.
Embodiment 1:
As shown in Figure 1, the present embodiment provides a kind of and has realized by the mouse man-machine interface method that touch-screen is controlled, and it comprises the following steps:
Step 110: when touch-screen connecting electronic equipment being 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 revising man-machine interface HID descriptor or by independently developed driver, touch-screen being described as mouse device.
Step 120: sample in the touch point to touch-screen, obtains 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: the coordinate that makes mouse control point is the coordinate of touch-screen corner location, and the mouse control point moves to the touch-screen corner.
Wherein, if when there is maximal value in the Moving Unit of mouse control point in touch-screen, mouse control point can be divided into integer time movement;
Wherein, integer is the actual Moving Unit distance and the mobile peaked business of mouse control point of mouse control point.
Step 150: the coordinate that makes mouse control point is the coordinate of target mouse control point, and this moment, the mouse control point moved to the touch-screen assigned address.
The below puts up with concrete example the present embodiment is made description:
The mouse man-machine interface can realize the event of pressing, slide, upspring at reference mark usually, and the target mouse control point position of wherein pressing event is the position with respect to last mouse control point, establishes its coordinate and is (△ X, △ Y).
Touch screen function also can be realized the reference mark event of pressing, slide, upspring usually, and wherein pressing the incident control point position is with respect to the position that touches upper each touch point, establishes its coordinate and is (X, Y).
In the situation that the unknown of current mouse control point position coordinates, utilize target mouse control point coordinate (△ X, △ Y) to realize the touch-screen reference mark is moved to assigned address: (X, Y).
Suppose that touch-screen reference mark coordinate is (X, Y), in the movement of reality, coordinate figure is to have restriction, and its min coordinates value is (0,0), and the maximum coordinates value is (XMax, YMax).
Wherein, utilize touch-screen corner coordinate that the mouse control point is moved to the touch-screen corner location, this moment, the touch point coordinate in the touch-screen corner was (0,0), concrete, make △ X=-Xmax, △ Y=-Ymax, be the mouse control point coordinate for (Xmax ,-Ymax).
The mouse control point is moved to assigned address in touch-screen, be and move to target mouse control point position, if this moment, the touch point coordinate of the assigned address in touch-screen was (X, Y), concrete, make △ X=X, △ Y=Y, i.e. target mouse control point coordinate (△ X, △ Y) be (X, Y);
And in the mobile process of the mouse control point of reality, the coordinate figure of mouse control point (△ X, △ Y) may there be maximal value, be that the mouse control point exists mobile maximal value in the movement of X-direction and Y direction, this moment, mouse control point was in the situation that realize that touch-screen controls, and may need the inferior movement of minute integer; The integer of this moment is the mobile number of times of mouse control point, is the actual Moving Unit distance and the mobile peaked business of mouse control point of mouse control point.
Example: if mouse control point need to move the distance of 300 units in X-direction, and the mobile maximal value of each mouse control point is 127, mobile number of times is 300 to approximate three movements divided by 127, and this moment, mouse control point was respectively in the directions X shift position at every turn: 127,127,46.
Except the present embodiment discloses the method that the mode that is set to corner location by the mouse control point arranges position, touch-screen reference mark; in addition; the position, reference mark is set to the corner, can also arrange the border (0, YMax); (XMax; YMax), (XMax, 0); all belong to design of the present invention, be in protection domain of the present invention.
Device embodiment described above is only schematic, wherein said unit as the separating component explanation can or can not be also physically to separate, the parts that show as the unit can be or can not be also physical locations, namely can be positioned at a place, perhaps also can be distributed on a plurality of network element.Can select according to the actual needs wherein some or all of module to realize the purpose of the present embodiment scheme.Those of ordinary skills namely can understand and implement in the situation that do not pay performing creative labour.
Through the above description of the embodiments, those skilled in the art can be well understood to each embodiment and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware.Based on such understanding, the part that technique scheme contributes to prior art in essence in other words can embody with the form of software product, this computer software product can be stored in computer-readable recording medium, as ROM/RAM, magnetic disc, CD etc., comprise that some instructions are with so that a computer equipment (can be personal computer, server, perhaps network equipment etc.) carry out the described method of some part of each embodiment or embodiment.
Above-described embodiment does not consist of the restriction to this technical scheme protection domain.Any at above-mentioned embodiment spirit and principle within do modification, be equal to and replace and improvement etc., within all should being included in the protection domain of this technical scheme.
Claims (4)
1. realize by the mouse man-machine interface method that touch-screen is controlled for one kind, it is characterized in that, comprise the following steps:
When touch-screen connecting electronic equipment being detected, touch-screen is described as mouse device;
Sampling in touch point to touch-screen, obtains the coordinate of described touch point;
Calculate the coordinate of described touch point, obtain the coordinate of target mouse control point;
The coordinate that makes mouse control point is the coordinate of touch-screen corner location, and the mouse control point moves to the touch-screen corner;
The coordinate that makes mouse control point is the coordinate of target mouse control point, and the mouse control point moves to the assigned address of touch-screen.
2. according to claim 1ly a kind ofly realize by the mouse man-machine interface method that touch-screen is controlled, it is characterized in that:
Step: the coordinate that makes mouse control point is the coordinate of target mouse control point, and the mouse control point moves to the assigned address of touch-screen; Concrete
When if there is maximal value in the Moving Unit of mouse control point in touch-screen, mouse control point can be divided into integer time movement;
Wherein, integer is the actual Moving Unit distance and the mobile peaked business of mouse control point of mouse control point.
3. according to claim 2ly a kind ofly realize by the mouse man-machine interface method that touch-screen is controlled, it is characterized in that:
The process that described touch-screen is described as mouse device is specially: by revising man-machine interface HID descriptor or by independently developed driver, touch-screen being described as mouse device.
4. according to claim 3ly a kind ofly realize by the mouse man-machine interface method that touch-screen is controlled, it is characterized in that:
Described electronic equipment can be smart mobile phone, vehicle-mounted computer, PC.
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 true CN103092425A (en) | 2013-05-08 |
CN103092425B 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) |
Cited By (3)
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)
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 |
-
2013
- 2013-02-05 CN CN201310046695.2A patent/CN103092425B/en active Active
Patent Citations (5)
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 |
Cited By (3)
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 |
Also Published As
Publication number | Publication date |
---|---|
CN103092425B (en) | 2017-02-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103106000B (en) | The implementation method of multifocal window and communication terminal | |
CN103064535B (en) | The method of pointer, touch-control input system and change touch control operation characteristic | |
CN108733296B (en) | Method, device and equipment for erasing handwriting | |
CN108874342A (en) | Projection view switching method and terminal device | |
JP2016532172A (en) | Method and user equipment for displaying interface content | |
CN103389850B (en) | A kind of method and device realizing prompt operation on a web browser | |
CN103530043A (en) | Operation method and device for touch screen application program | |
CN103116453A (en) | Operation management method and operation management device of graphic object | |
CN109857303A (en) | Interaction control method and device | |
CN103150108A (en) | Equipment screen component moving method and device, and electronic equipment | |
CN102830930A (en) | Treatment method and device for keyboard keys and multimedia terminal | |
CN108932057A (en) | Method of controlling operation thereof, device, storage medium and electronic equipment | |
CN103414829A (en) | Method, device and terminal device for controlling screen contents | |
CN102968245B (en) | Mouse touches cooperative control method, device and Intelligent television interaction method, system | |
CN109635216A (en) | A kind of same method for shielding annotation of picture progress of mobile terminal and browser | |
CN105630595A (en) | Information processing method and electronic equipment | |
US11455071B2 (en) | Layout method, device and equipment for window control bars | |
CN103092425A (en) | Method for achieving touch screen control through mouse man-machine interface | |
CN104881203A (en) | Touch operation method and device in terminal | |
CN104049846A (en) | Information processing method and electronic device | |
CN105204754A (en) | One-handed operation method and device of touch screen | |
CN104777999B (en) | Touch location display methods and touch location display system | |
CN105760077A (en) | Game control method and device | |
CN103472931A (en) | Method for operating simulation touch screen by mouse | |
CN109085983A (en) | Method of controlling operation thereof, device, storage medium and electronic 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 | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |