CN104808810A - Method and mobile terminal for performing mouse input - Google Patents

Method and mobile terminal for performing mouse input Download PDF

Info

Publication number
CN104808810A
CN104808810A CN201510234868.2A CN201510234868A CN104808810A CN 104808810 A CN104808810 A CN 104808810A CN 201510234868 A CN201510234868 A CN 201510234868A CN 104808810 A CN104808810 A CN 104808810A
Authority
CN
China
Prior art keywords
mouse
mode bit
action
button
location information
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
CN201510234868.2A
Other languages
Chinese (zh)
Other versions
CN104808810B (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.)
Samsung Electronics China R&D Center
Samsung Electronics Co Ltd
Original Assignee
Samsung Electronics China R&D Center
Samsung 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 Samsung Electronics China R&D Center, Samsung Electronics Co Ltd filed Critical Samsung Electronics China R&D Center
Priority to CN201510234868.2A priority Critical patent/CN104808810B/en
Publication of CN104808810A publication Critical patent/CN104808810A/en
Application granted granted Critical
Publication of CN104808810B publication Critical patent/CN104808810B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Position Input By Displaying (AREA)

Abstract

The invention discloses a method and a mobile terminal for performing mouse input. The method comprises the steps of establishing communication connection between the mobile terminal and a computer; capturing a touching operation of a user for a screen of the mobile terminal; determining corresponding mouse operation and mouse position information according to the touching operation; converting the mouse operation and mouse position information into protocol data according to a transport protocol between the mobile terminal and the computer, and sending the converted protocol data to the computer. According to the technical scheme provided by the invention, the mouse input can be implemented by a simple touching operation of a finger on the screen of the mobile terminal, so that the mouse input is more convenient.

Description

Carry out method and the mobile terminal of mouse input
Technical field
The present invention relates to the information processing technology, particularly relate to the method and mobile terminal of carrying out mouse input.
Background technology
Mouse is a kind of computer input apparatus be in daily use, and it can position the cursor on current screen, and by button and roller devices to cursor screen elements through position operate.
At present, along with the use of mobile terminal is more general with coming, mobile terminal being also used as the input equipment of computer simultaneously, becoming new demand.
In the embodiment that existing use mobile terminal inputs as mouse, install inertial sensor at mobile terminal, mobile terminal is used as mouse and is carried out motion action by user; Correspondingly, inertial sensor detects the motion action of user, and then, control the movement that cursor held by computer (PC).
This use inertial sensor control PC holds the scheme of cursor, needs user in desktop frictional movement terminal, and the inconvenience of mobile terminal profile grips, and causes operation inconvenience, and can increase the outward appearance loss of equipment, its poor effect.
Summary of the invention
The invention provides a kind of method of carrying out mouse input, the method can realize mouse input by finger in the simple touch operation of mobile terminal screen, mouse is inputted more convenient.
The invention provides a kind of mobile terminal carrying out mouse input, this mobile terminal can realize mouse input by finger in the simple touch operation of mobile terminal screen, mouse is inputted more convenient.
Carry out a method for mouse input, the method comprises:
Set up the communication connection between mobile terminal and computer;
Catch the touch operation of user to mobile terminal screen;
Corresponding mouse action and mouse location information is determined according to touch operation;
According to the host-host protocol between computer, convert mouse action and mouse location information to protocol data, then the protocol data after conversion is sent to computer.
Carry out a mobile terminal for mouse input, this mobile terminal comprises communication management module, mouse function arranges module, action judges recognition mode and protocol conversion module;
Described communication management module, sets up the communication connection between mobile terminal and computer, and receives the protocol data from described protocol conversion module, sends to computer;
Described mouse function arranges module, arranges the corresponding relation between touch operation and mouse action;
Described action judges recognition mode, catches the touch operation of user to mobile terminal screen, determines corresponding mouse action and mouse location information, mouse action and mouse location information are sent to described protocol conversion module according to touch operation;
Described protocol conversion module, according to the host-host protocol between computer, converts mouse action and mouse location information to protocol data, then the protocol data after conversion is sent to communication management module.
As can be seen from such scheme, in the present invention, catch the touch operation of user to mobile terminal screen, determine corresponding mouse action and mouse location information according to touch operation; According to the host-host protocol between computer, convert mouse action and mouse location information to protocol data, then the protocol data after conversion is sent to computer.Thus, achieve and reach the effect of carrying out mouse input by finger in the simple touch operation of mobile terminal screen, mouse is inputted more convenient.
Accompanying drawing explanation
Fig. 1 is the method indicative flowchart that the present invention carries out mouse input;
Fig. 2 is mouse action of the present invention is do not have button by the mouse input stream journey figure example of lower slider;
Fig. 3 is mouse action of the present invention is the mouse input stream journey figure example that left button is pressed;
Fig. 4 is mouse action of the present invention is the mouse input stream journey figure example that left button presses dragging;
Fig. 5 to be mouse action of the present invention be left button length by mouse input stream journey figure example;
Fig. 6 is mouse action of the present invention is the mouse input stream journey figure example that left button lifts;
Fig. 7 is mouse action of the present invention is the mouse input stream journey figure example that middle key is pressed;
Fig. 8 is the mobile terminal structure schematic diagram that the present invention carries out mouse input.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly understand, below in conjunction with embodiment and accompanying drawing, the present invention is described in more detail.
The present invention, by the touch operation of finger at mobile terminal screen, realizes inputting the mouse of computer.See Fig. 1, for the present invention carries out the method indicative flowchart of mouse input, it comprises the following steps:
Step 101, sets up the communication connection between mobile terminal and computer.
Wired or wireless connection can be adopted between mobile terminal with computer, the communication technology such as bluetooth, WIFI, infrared, radio frequency, ultrasound wave specifically can be adopted to realize.
Step 102, catches the touch operation of user to mobile terminal screen.
In the present invention, increase mouse input function option at mobile terminal; When needing, start this function, enter mouse input mode.
Step 103, determines corresponding mouse action and mouse location information according to touch operation.
Pre-set the corresponding relation between touch operation and mouse action, user carries out corresponding touch operation according to mouse input demand at screen.
Step 104, according to the host-host protocol between computer, converts mouse action and mouse location information to protocol data, then the protocol data after conversion is sent to computer.
In order to make computer can identify mouse action from mobile terminal and mouse location information, mobile terminal carries out data conversion before transmitting data.
Then, user exits mouse input mode, specifically can click " exiting " key or other buttons exit.
In the present invention, catch the touch operation of user to mobile terminal screen, determine corresponding mouse action and mouse location information according to touch operation; According to the host-host protocol between computer, convert mouse action and mouse location information to protocol data, send to computer.Thus, achieve and reach the effect of carrying out mouse input by finger in the simple touch operation of mobile terminal screen, mouse is inputted more convenient.
Screen touch operation corresponding to mouse action, can be arranged as required voluntarily.Following is a concrete implementation:
(1) mouse slide: one hand refers to slide on screen;
(2) left mouse button operation: first fall next finger tip on screen, transfixion, and the left area that herein means sharp drop point afterwards falls another finger tip; A finger tip or two finger tips operate simultaneously accordingly afterwards, and such as use right-hand operated, it is motionless that middle finger pins screen, and forefinger carries out single hit and dblclick in middle finger left area;
(3) right mouse button operation: similar with (2), the i.e. first next finger tip that falls on screen of user, transfixion, the right half area that herein means sharp drop point is afterwards operated by another finger tip;
(4) middle key (roller) operation: user two points and presses simultaneously, and screen slides up and down.
During specific implementation, also can carry out record to touch operation and mouse state, specifically comprise:
Left button mode bit is set, the state that record left mouse button is pressed and lifted; Right button mode bit is set, the state that record right mouse button is pressed and lifted; Middle key mode bit is set, the state that record middle mouse button is pressed and lifted; Current sampling point event queue is set, records the position coordinates when front slide sampling;
Last sampled point event queue is set, records the position coordinates to last sampling of sliding.
Record is set below in conjunction with above-mentioned, exemplifies the input implementation of several mouse action, to be specifically described Fig. 1 process step 103.Followingly be only preferred embodiment, and not exclusive implementation.
Mode one,
Capture the slip event of screen, and know that left button mode bit, right button mode bit and middle key mode bit are all lift;
Judge whether the length of current sampling point event queue is less than length threshold, if so, then the position coordinates of slip event is stored into current sampling point event queue; Otherwise, judge whether last sampled point event queue is empty:
If be empty, then the position coordinates of the slip event of present sample be stored into last sampled point event queue, empty current sampling point event queue;
If be not empty, then calculate sliding vector by the position coordinates of last sampled point event queue and the position coordinates of current sampling point event queue, as mouse location information, and mouse action is defined as there is no button by lower slider.
Mode two,
What successively capture the first contact of screen and the second contact presses event;
If two time differences pressing event are greater than very first time threshold value, then according to the horizontal ordinate determination mouse action of the first contact position coordinate and the second contact position coordinate, mouse action is that left button is pressed or right button is pressed, and left button mode bit or right button mode bit is set to press.
Mode three,
Capture the slip event of screen, and know that left button mode bit, right button mode bit or middle key mode bit are for pressing;
Judge whether the length of current sampling point event queue is less than length threshold, if so, then the position coordinates of slip event is stored into current sampling point event queue; Otherwise, judge whether last sampled point event queue is empty:
If be empty, then the position coordinates of the slip event of present sample be stored into last sampled point event queue, empty current sampling point event queue;
If be not empty, then calculate sliding vector by the position coordinates of last sampled point event queue and the position coordinates of current sampling point event queue, as mouse location information, mouse action is defined as left button by lower slider, right button by lower slider or middle key by lower slider.
Mode four,
Successively capture 2 long click event of screen;
If inquiry left button mode bit for pressing, then determines that mouse action is that left button is pressed, if inquiry right button mode bit is for pressing, then determining that mouse action is that right button is pressed, if inquiry middle key mode bit is for pressing, then determining that mouse action is that middle key is pressed; And using the long position coordinates clicked as mouse location information.
Mode five,
What capture the first contact of screen or the second contact lifts event;
If inquiry left button mode bit for pressing, then determines that mouse action is that left button lifts; If inquiry right button mode bit for pressing, then determines that mouse action is that right button lifts; If inquiry middle key mode bit for pressing, then determines that mouse action is that middle key is lifted; To the contact position coordinate of event be lifted as mouse location information, and corresponding mode bit is set to lift.
Mode six,
What successively capture the first contact of screen and the second contact presses event;
If two time differences pressing event are less than the second time threshold, then mouse action are defined as middle key and press, the contact position coordinate pressing event is defined as mouse location information, and middle key mode bit is set to press.
Below by Fig. 2-7, the method for the present invention being carried out to mouse input is illustrated.In this example, carry out the initialization of mouse input function in advance, specifically comprise following setting:
Left button mode bit is set, the state that record left mouse button is pressed and lifted; Right button mode bit is set, the state that record right mouse button is pressed and lifted; Middle key mode bit is set, the state that record middle mouse button is pressed and lifted.
Current sampling point event queue ActionQueue1 is set, records the position coordinates when front slide sampling; Last sampled point event queue prevActionQueue1 is set, records the position coordinates to last sampling of sliding; Queue length is all set to N, and N is natural number.
And the screen event object needing to catch is set, comprising: slip (Move) event of screen, is expressed as ActionMove; Long click (LongClick) event, is expressed as ActionLClick; First contact and the second contact lift/press (Up/Down) event.After arranging, when these events occur, the information about these events system of receiving reported, comprises position coordinates, time of origin etc.
One, the mouse not having button to press slides:
See Fig. 2, for mouse action is do not have button by the mouse input stream journey figure example of lower slider, it comprises the following steps:
Step 201, captures the Move event ActionMove of screen, and inquiry " left button mode bit ", " middle key mode bit " and " right button mode bit " are all " lifting ".
Step 202, if ActionQueue1 length is less than N, then enters this ActionMove storage, returns and waits for new Move event; If equal N, then:
(1) if prevActionQueue1 is empty, by data all in ActionQueue1 stored in prevActionQueue1, empty ActionQueue1, return and wait for new Move event;
(2) if prevActionQueue1 is not empty, then take out Time To Event minimum in prevActionQueue1, calculate the time difference absolute value of this time and the up-to-date ActionMove caught, if this absolute value is less than a certain threshold value, continue following operation.
For above-mentioned (2), if absolute value is not less than threshold value, then empty prevActionQueue1 and ActionQueue1, return and wait for new Move event.
Step 203, calculates the mean value of the position coordinates x/y that event occurs in prevActionQueue1 and ActionQueue1 respectively, obtains (prevX, prevY) and (X, Y).
Then, empty prevActionQueue1 and ActionQueue1, wait for new Move event.
Step 204, compute vector move=(X-prevX, Y-prevY), carries out protocol conversion by move vector and " not having button to press " action.
Step 205, is sent to computer end by protocol data.
Two, left mouse button operation:
See Fig. 3, for mouse action of the present invention is the mouse input stream journey figure example that left button is pressed, it comprises the following steps:
Step 301, it is Down1Store that the Down1 event capturing the first contact of screen stores this event, waits for that the second contact event occurs, if catch the Up1 event of the first contact during this period, then empty Down1Store event, left button mode bit is set for " lifting " simultaneously, stops following flow process.
Step 302, captures the Down2 event of the second contact of screen, if Down1Store is not empty, then whether the time difference absolute value comparing two events is greater than default threshold value sometime, if be greater than, performs flow process below.
If be not more than default threshold value sometime, illustrate that two interval of events are too short, be other mouse input situation, do not perform flow process below.
Step 303, compares x coordinate x1 and x2 of Down1Store event and Down2 event, if x2<x1, is judged to be as left mouse button push, continues following process.
Step 304, arranging " left button state " mode bit is " pressing ".
Step 305, carries out protocol conversion by (x, the y) of Down2 event and " left button is pressed " action identification.
Step 306, is sent to computer end by protocol data.
See Fig. 4, for mouse action of the present invention is the mouse input stream journey figure example that left button presses dragging, scene corresponding to this flow process is that, after static a period of time is pressed in the first contact, the second contact is pressed, and one or two finger tip slides afterwards; It comprises the following steps:
Step 401, catches the Move event ActionMove of screen, if " left button mode bit " is " pressing ", then continues following operation.
Step 402, if ActionQueue1 length is less than N, then enters this ActionMove storage, returns and waits for new Move event; If equal N, then:
(1) if prevActionQueue1 is empty, by data all in ActionQueue1 stored in prevActionQueue1, empty ActionQueue1, return and wait for new Move event.
(2) if prevActionQueue1 is not empty, then take out Time To Event minimum in prevActionQueue1, calculate the time difference absolute value of this time and the up-to-date ActionMove caught, if this absolute value is less than a certain threshold value, continue following operation.
Step 403, calculates the mean value of the position coordinates x/y that event occurs in prevActionQueue1 and ActionQueue1 respectively, obtains (prevX, prevY) and (X, Y).
Step 404, compute vector move=(X-prevX, Y-prevY), carries out protocol conversion by move vector and " left button is by lower slider " action identification.
Step 405, is sent to computer end by protocol data.
See Fig. 5, for mouse action of the present invention be left button length by mouse input stream journey figure example, scene corresponding to this flow process is that, after static a period of time is pressed in the first contact, the second contact is pressed static; It comprises the following steps:
Step 501, successively catches 2 LongClick events of screen.
Step 502, inquiry " left button mode bit ", if " pressing ", then continues following flow process.
Step 503, carries out protocol conversion by (x, the y) of LongClick event and " left button is pressed " action identification.
Step 504, is sent to computer end by protocol data.
Step 502-504 periodically performs with certain hour interval T.In the flow process that the cycle performs, if catch Up or Move event, then stop above-mentioned flow process.
See Fig. 6, for mouse action of the present invention is the mouse input stream journey figure example that left button lifts; It comprises the following steps:
Step 601, captures Up1 and the Up2 event of the first or second contact of screen.
Step 602, inquiry " left button mode bit ", if " pressing ", then continues following flow process.
Step 603, arranging " left button mode bit " is " lifting ".
Step 604, carries out protocol conversion by (x, the y) of Up2 event and " left button lifts " action identification.
Step 605, is sent to computer end by protocol data.
Step 606, empties queue ActionQueue1 and prevActionQueue1.
Complete operation terminates, and empties.
Three, right mouse button operation:
With the classification of left mouse button single-click operation in above-mentioned two and judge that flow process is roughly the same, just:
1) judge to have become whether x2>x1 by corresponding x1 and x2 coordinate in Fig. 3, to determine that the second contact event occurs in the right side of the first contact event, and then determine whether as right button push;
2) " left button " in Fig. 4, Fig. 5, Fig. 6 becomes " right button ".
Four, middle mouse button operation:
With the classification of left mouse button single-click operation in two and judge that flow process is roughly the same, just:
1) trigger the treatment scheme pressing Down event in screen the one the second contact and become flow process shown in Fig. 7; It comprises the following steps:
Step 701, successively captures Down and the Down2 event of the first and second contacts of screen, if the time difference absolute value of two events is less than default time threshold, performs flow process below.
Step 702, arranging " middle key is pressed " mode bit is " pressing ".
Step 703, carries out protocol conversion by (x, the y) of Down2 event and " middle key is pressed " action identification.
Step 704, is sent to computer end by protocol data.
2) " left button " in Fig. 4, Fig. 5, Fig. 6 becomes " middle key ".
Adopt the present invention program, by the simple motion of finger manipulation, distinguish the basic operation of user to mouse, as slip, left button single hit and dblclick, right-click, middle key (roller) operation, left button are pressed to drag and rolled, mouse is inputted more convenient, also greatly promote experience.Computer end receives from after the mouse action instruction of mobile terminal, and perform corresponding system acting, this is prior art.
Meanwhile, the present invention program also can be used for the touchpad operation of notebook computer.
See Fig. 8, for the present invention carries out the mobile terminal structure schematic diagram of mouse input, it comprises communication management module, mouse function arranges module, action judges recognition mode and protocol conversion module;
Described communication management module, sets up the communication connection between mobile terminal and computer, and receives the protocol data from described protocol conversion module, sends to computer;
Described mouse function arranges module, arranges the corresponding relation between touch operation and mouse action;
Described action judges recognition mode, catches the touch operation of user to mobile terminal screen, determines corresponding mouse action and mouse location information, mouse action and mouse location information are sent to described protocol conversion module according to touch operation;
Described protocol conversion module, according to the host-host protocol between computer, converts mouse action and mouse location information to protocol data, then the protocol data after conversion is sent to communication management module.
Preferably, described action judges identification module, also arranges as follows: arrange left button mode bit, the state that record left mouse button is pressed and lifted; Right button mode bit is set, the state that record right mouse button is pressed and lifted; Middle key mode bit is set, the state that record middle mouse button is pressed and lifted; Current sampling point event queue is set, records the position coordinates when front slide sampling; Last sampled point event queue is set, records the position coordinates to last sampling of sliding.
Below mobile terminal each several part is described further.
Mouse function arranges module: this module mainly uses mobile terminal screen to carry out computer end mouse action to user and arranges accordingly, mainly comprise whether mouse function is opened, the setting of common actions, mouse sample frequency etc.
Common actions is arranged, and mainly comprises following option:
(1) mouse slide: one hand refers to slide on screen;
(2) left mouse button operation: first fall next finger tip on screen, transfixion, and the left area that herein means sharp drop point afterwards falls another finger tip; A finger tip or two finger tips operate simultaneously accordingly afterwards, and such as use right-hand operated, it is motionless that middle finger pins screen, and forefinger carries out single hit and dblclick in middle finger left area;
(3) right mouse button operation: similar with (2), the i.e. first next finger tip that falls on screen of user, transfixion, the right half area that herein means sharp drop point is afterwards operated by another finger tip;
(4) middle key (roller) operation: user two points and presses simultaneously, and screen slides up and down.
Be more than default setting, user can be arranged accordingly according to self hobby.
Communication management module: this module realizes the function such as data communication, control between mobile terminal and PC, specific implementation can adopt bluetooth, WIFI, the communication technology that infrared, radio frequency, ultrasound wave etc. are relevant.
Action judges identification module: this module mainly receives the operation information of user to touch screen, carry out corresponding process by the action that identifies and positional information, and invocation protocol modular converter becomes protocol data according to corresponding protocol conversion, again the protocol data after conversion is passed to communication management module, re-send to computer end finishing man-machine interaction.
Protocol conversion module: action is judged that the mouse action information that identification module sends and coordinate data are converted to mouse protocol data by this module, in accordance with agreement can select according to exploitation needs, conventional has IBM PS/2 agreement, Microsoft's mouse protocol etc.
Mobile terminal also can comprise UI further and show interactive module, and this module mainly comprises:
(1) the carry out display of user when Operation system setting is mutual;
(2), when mobile terminal is connected with the communication management module of computer, in connection, the display of success, the information such as is unsuccessfully with mutual.
In computer end, comprise computer end communication management module and mouse action respond module:
Computer end communication management module: this module realizes the function such as data communication, control between mobile terminal and PC, specific implementation can adopt bluetooth, WIFI, the communication technology that infrared, radio frequency, ultrasound wave etc. are relevant.
Mouse action respond module: this module is according to the mouse action instruction receiving the transmission of computer end communication management module, and perform corresponding system acting, this is prior art.
Exemplify a specific embodiment scene adopting the present invention program to carry out mouse input below:
1. user operation mobile phone, choice for use mobile phone is as mouse;
2. mobile phone and PC are by bluetooth successful connection;
3. mobile phone enters mouse action mode, namely the screen operator of mobile phone only can control PC hold mouse, to exit this pattern, exit by functional key, as back key;
4. user is in mobile phone sliding on planes, click, and operation PC holds mouse, and concrete action is as follows:
1) mouse slide: one hand refers to slide on screen;
2) left mouse button single hit and dblclick operation: user uses right-hand operated, middle finger is first by motionless on screen, and behind certain hour interval, forefinger carries out single hit and dblclick in middle finger left area;
3) right mouse button single-click operation: user uses right-hand operated, forefinger is first by motionless on screen, and behind certain hour interval, middle finger carries out single hit and dblclick in forefinger right area;
4) left mouse button presses dragging: user first falls middle fingertip on screen, transfixion, the left area index finger tip that herein means sharp drop point is afterwards pressed, and user keeps two finger tips to pin screen afterwards, and one of them finger tip or two finger tips slide on screen;
5) roller is clicked: user two points and clicks screen simultaneously;
6) roller scroll-up/down: user two points and presses simultaneously, and screen slides up and down.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (10)

1. carry out a method for mouse input, it is characterized in that, the method comprises:
Set up the communication connection between mobile terminal and computer;
Catch the touch operation of user to mobile terminal screen;
Corresponding mouse action and mouse location information is determined according to touch operation;
According to the host-host protocol between computer, convert mouse action and mouse location information to protocol data, then the protocol data after conversion is sent to computer.
2. the method for claim 1, is characterized in that, the method also carries out record to touch operation and mouse state, specifically comprises:
Left button mode bit is set, the state that record left mouse button is pressed and lifted; Right button mode bit is set, the state that record right mouse button is pressed and lifted; Middle key mode bit is set, the state that record middle mouse button is pressed and lifted;
Current sampling point event queue is set, records the position coordinates when front slide sampling; Last sampled point event queue is set, records the position coordinates to last sampling of sliding.
3. method as claimed in claim 2, is characterized in that, describedly determines that corresponding mouse action and mouse location information comprise according to touch operation:
Capture the slip event of screen, and know that left button mode bit, right button mode bit and middle key mode bit are all lift;
Judge whether the length of current sampling point event queue is less than length threshold, if so, then the position coordinates of slip event is stored into current sampling point event queue; Otherwise, judge whether last sampled point event queue is empty:
If be empty, then the position coordinates of the slip event of present sample be stored into last sampled point event queue, empty current sampling point event queue;
If be not empty, then calculate sliding vector by the position coordinates of last sampled point event queue and the position coordinates of current sampling point event queue, as mouse location information, and mouse action is defined as there is no button by lower slider.
4. method as claimed in claim 2, is characterized in that, describedly determines that corresponding mouse action and mouse location information comprise according to touch operation:
What successively capture the first contact of screen and the second contact presses event;
If two time differences pressing event are greater than very first time threshold value, then according to the horizontal ordinate determination mouse action of the first contact position coordinate and the second contact position coordinate, mouse action is that left button is pressed or right button is pressed, and left button mode bit or right button mode bit is set to press.
5. method as claimed in claim 2, is characterized in that, describedly determines that corresponding mouse action and mouse location information comprise according to touch operation:
Capture the slip event of screen, and know that left button mode bit, right button mode bit or middle key mode bit are for pressing;
Judge whether the length of current sampling point event queue is less than length threshold, if so, then the position coordinates of slip event is stored into current sampling point event queue; Otherwise, judge whether last sampled point event queue is empty:
If be empty, then the position coordinates of the slip event of present sample be stored into last sampled point event queue, empty current sampling point event queue;
If be not empty, then calculate sliding vector by the position coordinates of last sampled point event queue and the position coordinates of current sampling point event queue, as mouse location information, mouse action is defined as left button by lower slider, right button by lower slider or middle key by lower slider.
6. method as claimed in claim 2, is characterized in that, describedly determines that corresponding mouse action and mouse location information comprise according to touch operation:
Successively capture 2 long click event of screen;
If inquiry left button mode bit for pressing, then determines that mouse action is that left button is pressed, if inquiry right button mode bit is for pressing, then determining that mouse action is that right button is pressed, if inquiry middle key mode bit is for pressing, then determining that mouse action is that middle key is pressed; And using the long position coordinates clicked as mouse location information.
7. method as claimed in claim 2, is characterized in that, describedly determines that corresponding mouse action and mouse location information comprise according to touch operation:
What capture the first contact of screen or the second contact lifts event;
If inquiry left button mode bit for pressing, then determines that mouse action is that left button lifts; If inquiry right button mode bit for pressing, then determines that mouse action is that right button lifts; If inquiry middle key mode bit for pressing, then determines that mouse action is that middle key is lifted; To the contact position coordinate of event be lifted as mouse location information, and corresponding mode bit is set to lift.
8. method as claimed in claim 2, is characterized in that, describedly determines that corresponding mouse action and mouse location information comprise according to touch operation:
What successively capture the first contact of screen and the second contact presses event;
If two time differences pressing event are less than the second time threshold, then mouse action are defined as middle key and press, the contact position coordinate pressing event is defined as mouse location information, and middle key mode bit is set to press.
9. carry out a mobile terminal for mouse input, it is characterized in that, this mobile terminal comprises communication management module, mouse function arranges module, action judges recognition mode and protocol conversion module;
Described communication management module, sets up the communication connection between mobile terminal and computer, and receives the protocol data from described protocol conversion module, sends to computer;
Described mouse function arranges module, arranges the corresponding relation between touch operation and mouse action;
Described action judges recognition mode, catches the touch operation of user to mobile terminal screen, determines corresponding mouse action and mouse location information, mouse action and mouse location information are sent to described protocol conversion module according to touch operation;
Described protocol conversion module, according to the host-host protocol between computer, converts mouse action and mouse location information to protocol data, then the protocol data after conversion is sent to communication management module.
10. mobile terminal as claimed in claim 9, it is characterized in that, described action judges identification module, also arranges as follows: arrange left button mode bit, the state that record left mouse button is pressed and lifted; Right button mode bit is set, the state that record right mouse button is pressed and lifted; Middle key mode bit is set, the state that record middle mouse button is pressed and lifted; Current sampling point event queue is set, records the position coordinates when front slide sampling; Last sampled point event queue is set, records the position coordinates to last sampling of sliding.
CN201510234868.2A 2015-05-08 2015-05-08 Carry out the method and mobile terminal of mouse input Active CN104808810B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510234868.2A CN104808810B (en) 2015-05-08 2015-05-08 Carry out the method and mobile terminal of mouse input

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510234868.2A CN104808810B (en) 2015-05-08 2015-05-08 Carry out the method and mobile terminal of mouse input

Publications (2)

Publication Number Publication Date
CN104808810A true CN104808810A (en) 2015-07-29
CN104808810B CN104808810B (en) 2017-12-01

Family

ID=53693712

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510234868.2A Active CN104808810B (en) 2015-05-08 2015-05-08 Carry out the method and mobile terminal of mouse input

Country Status (1)

Country Link
CN (1) CN104808810B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107885450A (en) * 2017-11-09 2018-04-06 维沃移动通信有限公司 Realize the method and mobile terminal of mouse action
CN110233771A (en) * 2019-04-15 2019-09-13 长飞光纤光缆股份有限公司 A kind of judgment method and device of the network link environment based on spice agreement
CN110609628A (en) * 2018-05-28 2019-12-24 敦泰电子有限公司 Mouse control method and mouse
CN114637571A (en) * 2022-05-18 2022-06-17 深圳麦风科技有限公司 Method and device for controlling IOS terminal by computer terminal, intelligent terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102830819A (en) * 2012-08-21 2012-12-19 曾斌 Method and equipment for simulating mouse input
CN103067566A (en) * 2012-04-24 2013-04-24 曾昭兴 Mouse input method and touch-screen mobile phone control device
CN103902150A (en) * 2012-12-24 2014-07-02 李永贵 Simulated mouse
US20150015550A1 (en) * 2013-07-11 2015-01-15 Samsung Electronics Co., Ltd. Computer input apparatus and method using smart terminal with electronic pen

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067566A (en) * 2012-04-24 2013-04-24 曾昭兴 Mouse input method and touch-screen mobile phone control device
CN102830819A (en) * 2012-08-21 2012-12-19 曾斌 Method and equipment for simulating mouse input
CN103902150A (en) * 2012-12-24 2014-07-02 李永贵 Simulated mouse
US20150015550A1 (en) * 2013-07-11 2015-01-15 Samsung Electronics Co., Ltd. Computer input apparatus and method using smart terminal with electronic pen

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107885450A (en) * 2017-11-09 2018-04-06 维沃移动通信有限公司 Realize the method and mobile terminal of mouse action
CN110609628A (en) * 2018-05-28 2019-12-24 敦泰电子有限公司 Mouse control method and mouse
CN110233771A (en) * 2019-04-15 2019-09-13 长飞光纤光缆股份有限公司 A kind of judgment method and device of the network link environment based on spice agreement
CN110233771B (en) * 2019-04-15 2022-05-24 长飞光纤光缆股份有限公司 Method and device for judging network link environment based on spice protocol
CN114637571A (en) * 2022-05-18 2022-06-17 深圳麦风科技有限公司 Method and device for controlling IOS terminal by computer terminal, intelligent terminal and storage medium

Also Published As

Publication number Publication date
CN104808810B (en) 2017-12-01

Similar Documents

Publication Publication Date Title
US8577100B2 (en) Remote input method using fingerprint recognition sensor
CN103294366B (en) A kind of screen unlock method and electronic equipment
CN104571852B (en) The moving method and device of icon
CN103034427B (en) A kind of touch-screen page turning method, device and a kind of touch panel device
CN102739887B (en) Wireless control method based on touch-screen mobile phone
CN102402369B (en) Electronic equipment and its operation indicating mark moving method
CN102203696B (en) Mobile terminal and input control method
CN108616712B (en) Camera-based interface operation method, device, equipment and storage medium
CN104808810A (en) Method and mobile terminal for performing mouse input
CN102662510A (en) Method for realizing screen-capture by multipoint touching
CN105159481A (en) Pen-type input device and input method using the same
CN103324348A (en) Windows desktop control method based on intelligent mobile terminals
CN102854982A (en) Method for recognizing customized gesture tracks
CN103019426A (en) Interacting method and interacting device in touch terminal
CN102253744A (en) Method for controlling touch panel and touch device using method
CN101667077B (en) Method for identifying single-click, double-click and drag motions and controller of touch device
WO2014146516A1 (en) Interactive device and method for left and right hands
CN104077066A (en) Portable device and operation method
CN109885236B (en) Method for realizing interactive operation with remote system desktop based on mobile equipment
CN105183191B (en) A kind of stylus and touch-controlled electronic devices and control method
CN104601795A (en) Convenient and efficient smartphone user hand identification method
CN104866210B (en) A kind of touch screen control method, device and electronic equipment
WO2023179694A1 (en) Texture identification based difference touch method
CN104461365A (en) Touch method and device of terminal
CN101598982B (en) Electronic device and method for executing mouse function of same

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant