Summary of the invention
The object of the invention is to propose a kind of control method and device of realizing virtual mouse based on mobile terminal, can use mobile terminal to substitute mouse PC end is carried out to mouse action, solved the problem of the limited and wiring inconvenience of the distance of prior art mouse action.
For reaching this object, the present invention by the following technical solutions:
A control method that realizes virtual mouse based on mobile terminal, comprising:
Open the default mouse mode of mobile terminal;
Detection effect is in the touching signals of mobile terminal;
Determine the mouse action instruction that described touching signals is corresponding;
Send described mouse action instruction to matching with this mobile terminal the PC end being connected, so that this PC end is carried out to mouse action.
Wherein, before the default mouse mode of described unlatching mobile terminal, comprising:
Setting up mobile terminal is connected with the pairing of PC end; Described pairing connects and comprises that wifi connects, data network connects or bluetooth connects;
Under described default mouse mode, the described mobile terminal display screen screen that goes out;
Described detection effect, in the touching signals of mobile terminal, is specially: the touching signals of the mobile terminal of detection effect under the screen state that goes out.
Wherein, described in determine the mouse action instruction that described touching signals is corresponding before, comprising:
The relation list of setting up touching signals and mouse action instruction, described relation list comprises:
The instruction of the corresponding mobile cursor of touching signals of slip screen;
The instruction of the corresponding left mouse button/right button of touching signals of up/down volume key;
The instruction that the corresponding mouse of touching signals of upper volume key+slip screen pulls;
The touching signals correspondence of home key+up/down/left/right slip screen upwards/down/left/right side draws the instruction of scroll bar;
The touching signals correspondence of two finger up/down/left/right slip screens upwards/down/left/right side pulls the instruction of the page.
Wherein, described in determine the mouse action instruction that described touching signals is corresponding, comprising:
Inquire about described relation list, if there is described touching signals, obtain corresponding mouse action instruction;
Described determine the mouse action instruction that described touching signals is corresponding after, also comprise:
Determine that described mouse action instruction needs mobile cursor, go out cursor movement precision corresponding to described mouse action instruction according to the screen resolution adaptation of the PC end connecting with this mobile terminal pairing;
To sending described mouse action instruction and corresponding cursor movement precision with described PC end.
Wherein, after the default mouse mode of described unlatching mobile terminal, also comprise:
If the signal that starts mobile terminal normal manipulation mode detected, close described mouse mode.
The present invention also provides a kind of device of realizing virtual mouse based on mobile terminal, comprising:
Switch module, for opening the default mouse mode of mobile terminal;
Detection module, for detection of the touching signals of touch-screen that acts on mobile terminal;
Determination module, for determining the mouse action instruction that described touching signals is corresponding;
Sending module, for sending described mouse action instruction to matching with this mobile terminal the PC end being connected, so that this PC end is carried out to mouse action.
Wherein, also comprise:
Link block, is connected with the pairing of PC end for setting up mobile terminal; Described pairing connects and comprises that wifi connects, data network connects or bluetooth connects;
Under described default mouse mode, the described mobile terminal display screen screen that goes out;
Described detection module, the touching signals of the mobile terminal specifically for detection effect under the screen state that goes out.
Also comprise: module is set, for setting up the relation list of touching signals and mouse action instruction; Described relation list comprises:
The instruction of the corresponding mobile cursor of touching signals of slip screen;
The instruction of the corresponding left mouse button/right button of touching signals of up/down volume key;
The instruction that the corresponding mouse of touching signals of upper volume key+slip screen pulls;
The touching signals correspondence of home key+up/down/left/right slip screen upwards/down/left/right side draws the instruction of scroll bar;
The touching signals correspondence of two finger up/down/left/right slip screens upwards/down/left/right side pulls the instruction of the page.
Wherein, described determination module, specifically for inquiring about described relation list, if there is described touching signals, obtain corresponding mouse action instruction, also, for determining that described mouse action instruction needs mobile cursor, go out cursor movement precision corresponding to described mouse action instruction according to the screen resolution adaptation of the PC end connecting with this mobile terminal pairing;
Described sending module, also for sending described mouse action instruction and corresponding cursor movement precision to the PC end connecting with this mobile terminal pairing.
Wherein, described switch module, if also for the signal that starts mobile terminal normal manipulation mode being detected, close default mouse mode.
Implement the embodiment of the present invention, there is following beneficial effect:
The embodiment of the present invention is by opening the default mouse mode of mobile terminal, detection effect is in the touching signals of mobile terminal, determine the mouse action instruction that described touching signals is corresponding, send described mouse action instruction to matching with this mobile terminal the PC end being connected, use mobile terminal to substitute mouse PC end is carried out to mouse action thereby realize.The solution of the present invention makes mobile terminal increase the function of wireless mouse, and uses by mobile terminal being used as to mouse, and extend user and PC has been held to the distance of carrying out mouse action, and without wiring, for user has brought facility.
Embodiment
Below in conjunction with accompanying drawing of the present invention, technical scheme in the embodiment of the present invention is carried out to clear, complete description, obviously, described embodiment is only a part of embodiment of the present invention, instead of whole embodiment.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under the prerequisite of not making creative work, belongs to the scope of protection of the invention.
In conjunction with Fig. 1, the first embodiment of the present invention is described.
Fig. 1 is a kind of control method process flow diagram of realizing virtual mouse based on mobile terminal of first embodiment of the invention, and details are as follows:
Step 101, opens the default mouse mode of mobile terminal.
In the present embodiment, can open or close default mouse mode by the corresponding setting options of mobile terminal.Mobile terminal is opened after mouse mode, can enter into a specific user interface, or enter the screen state that goes out.Preferably, the present embodiment mobile terminal enters after mouse mode, and the mobile terminal screen that goes out, to reduce the consumption of electric weight.
Step 102, detection effect is in the touching signals of mobile terminal.
In the first embodiment, mobile terminal enters after mouse mode, and display backlight lamp is closed, the mobile terminal screen that goes out.By touch-screen and or the touching signals of the mobile terminal of key circuit detection effect under the screen state that goes out.Cause is without the screen of lighting mobile terminal, and electric quantity consumption is less.Preferably, the button of the present embodiment mobile terminal comprises volume key, home key and power key.
Step 103, determines the mouse action instruction that described touching signals is corresponding.
In the first embodiment, need to set up at mobile terminal in advance the relation list of touching signals and mouse action instruction.Described in the present embodiment, relation list comprises: the instruction of the corresponding mobile cursor of touching signals of slip screen; The instruction of the corresponding left mouse button/right button of touching signals of up/down volume key; The instruction that the corresponding mouse of touching signals of upper volume key+slip screen pulls; The touching signals correspondence of home key+up/down/left/right slip screen upwards/down/left/right side draws the instruction of scroll bar; The touching signals correspondence of two finger up/down/left/right slip screens upwards/down/left/right side pulls the instruction of the page.
It should be noted that, above-mentioned relation list is a preferred implementation of the present embodiment, and user also can arrange other relation lists according to the operating habit of oneself.
The present embodiment, by the described relation list of inquiry, if relation list exists the touching signals detecting in step 102, obtains corresponding mouse action instruction, if there is not corresponding touching signals in relation list, continues to detect new touching signals.
Step 104, sends described mouse action instruction to matching with this mobile terminal the PC end being connected, so that this PC end is carried out to mouse action.
In the first embodiment, before step 101, need to set up mobile terminal and be connected with the pairing of PC end.Described pairing connects wireless connections such as comprising wifi connection, data network connection or bluetooth connection.
As a preferred implementation of the present embodiment, because the resolution of the display screen that generally display screen of mobile terminal is held from PC is different, therefore after determining the mouse action instruction that described touching signals is corresponding, if described mouse action instruction needs mobile cursor, also need to determine cursor movement precision corresponding to described mouse action instruction, and described mouse action instruction and corresponding cursor movement precision are sent in the lump and match with this mobile terminal the PC being connected and hold, so that this PC is held and carries out mouse action.In the present embodiment, cursor movement precision refers to: user finger slides one inch time on the touch-screen of mobile terminal, the displacement of the cursor of mouse of corresponding PC end.Specifically can go out corresponding cursor movement precision according to the screen resolution adaptation of corresponding PC end.
For example: if detect, user presses the touching signals of up/down volume key, can determine this touching signals is the instruction of left mouse button/right button, this mouse action instruction is sent to this mobile terminal and match the PC end being connected, PC end is carried out to the operation that cursor click or right button are opened menu.Again for example: if detect, user is by living in volume key and the touching signals of the screen that slides, can determine this touching signals is the instruction of pulling the object of choosing or selecting frame operation, this instruction need to mobile cursor, can go out cursor movement precision corresponding to described mouse action instruction according to the screen resolution adaptation of PC end, this mouse action instruction and corresponding cursor movement precision are sent to PC end in the lump, realize the mouse action to PC end.
By above-mentioned the first embodiment of the present invention, make mobile terminal increase the function of wireless mouse, and user's mouse action to PC end at a distance, for example adept machine operation computer, while wanting to see a film, what user can be random shows comfortable posture, by handset touch panel operating computer.And without wiring, for user has brought facility.
In conjunction with Fig. 2, the second embodiment of the present invention is described, the control method that realizes virtual mouse by the second embodiment to the present invention is based on mobile terminal is elaborated.In the second embodiment, increase the explanation of exiting mouse mode in the time that user needs normal use mobile terminal.
As shown in Figure 2, in a second embodiment, details are as follows for described control method:
Step 201, the mouse mode of default mobile terminal, sets up the relation list of touching signals and mouse action instruction.
Described in the second embodiment, relation list comprises: the instruction of the corresponding mobile cursor of touching signals of slip screen; The instruction of the corresponding left mouse button/right button of touching signals of up/down volume key; The instruction that the corresponding mouse of touching signals of upper volume key+slip screen pulls; The touching signals correspondence of home key+up/down/left/right slip screen upwards/down/left/right side draws the instruction of scroll bar; The touching signals correspondence of two finger up/down/left/right slip screens upwards/down/left/right side pulls the instruction of the page.It should be noted that, above-mentioned relation list is a preferred implementation of the present embodiment, and user also can arrange other relation lists according to the operating habit of oneself.
Step 202, sets up mobile terminal and is connected with the pairing of PC end.Described pairing connects wireless connections such as comprising wifi connection, data network connection or bluetooth connection.
In the present embodiment, all be preset with corresponding control module at mobile terminal and PC end, while connecting, mobile terminal can send a connection request instruction (being similar to driving) to PC end, PC end selects corresponding installation file to install, and to realize PC end, the data message of mobile terminal is identified.
Step 203, the mouse mode of unlatching mobile terminal.
In the present embodiment, can open or close mouse mode by corresponding setting options, the mobile terminal screen that goes out under mouse mode.Because of without the screen of lighting mobile terminal, less to the electric quantity consumption of mobile terminal.
Step 204, detection effect is in the touching signals of mobile terminal.
Can be by touch-screen and or the touching signals of the mobile terminal of key circuit detection effect under the screen state that goes out in the present embodiment.Wherein the button of mobile terminal can comprise volume key, home key and power key.
Step 205, the list of inquiry above-mentioned relation, determines the mouse action instruction that described touching signals is corresponding.
Step 206, does this mouse action instruction need mobile cursor? if so, carry out next step, otherwise, execution step 209.
In the present embodiment, except the instruction of left mouse button/right button, other mouse instructions all need mobile cursor.
Step 207, goes out cursor movement precision corresponding to described mouse action instruction according to the screen resolution adaptation of the PC end connecting with this mobile terminal pairing.
The mobile terminal of the present embodiment is connected with the pairing of PC end, and enters after mouse mode, automatic acquisition is implemented to the screen resolution of PC end.Cursor movement precision in the present embodiment refers to: user finger slides one inch time on the touch-screen of mobile terminal, the displacement of the cursor of mouse of corresponding PC end.Concrete as: look from human eye, user's finger is in the time of one inch of the upper left slip of touch-screen of mobile terminal, and the cursor of mouse of PC end can be moved to the left the distance of 1.5 inches.
Step 208, sends described mouse action instruction and corresponding cursor movement precision to described PC end, enters step 210.
Again for example: if detect, user is by living in volume key and the touching signals of the screen that slides, can determine this touching signals is the instruction of pulling the object of choosing or selecting frame operation, this instruction need to mobile cursor, therefore also need to go out cursor movement precision corresponding to described mouse action instruction according to the screen resolution adaptation of PC end, this mouse action instruction and corresponding cursor movement precision are sent to PC end in the lump, realize the mouse action to PC end.
Step 209, sends described mouse action instruction to described PC end, enters step 210.
For example: if detect, user presses the touching signals of up/down volume key, can determine this touching signals is the instruction of left mouse button/right button, this mouse action instruction is sent to this mobile terminal and match the PC end being connected, PC end is carried out to the operation that cursor click or right button are opened menu.
Does step 210, receive the signal that starts mobile terminal normal manipulation mode? if so, carry out next step, otherwise, re-execute step 210.
In the present embodiment, the signal that starts mobile terminal normal manipulation mode comprises the signal of lighting display screen, for example, in the time that user presses the power key of mobile terminal or mobile terminal and has incoming call to access, all can produce a signal of lighting display screen.
Step 211, exits mouse mode, and mobile terminal display screen lights, and user can access by normal mode of operation the function of mobile terminal.
By above-mentioned the second embodiment of the present invention, make mobile terminal increase the function of wireless mouse, and user's mouse action to PC end at a distance, for example adept machine operation computer, while wanting to see a film, user can be random show comfortable posture, by handset touch panel operating computer, for user has brought facility.And do not affect user and normally use mobile terminal.
A kind of embodiment that realizes the device of virtual mouse based on mobile terminal providing for the embodiment of the present invention below.The embodiment of described device and above-mentioned embodiment of the method belong to same design, and the detail content of detailed description not in the embodiment of device, can be with reference to said method embodiment.
Fig. 3 shows a kind of structural representation of realizing the device of virtual mouse based on mobile terminal of third embodiment of the invention, is elaborated below.
Refer to Fig. 3, the device of realizing virtual mouse based on mobile terminal of the present embodiment comprises: switch module 301, detection module 302, determination module 303 and sending module 304.
Wherein, above-mentioned switch module 301 is for opening the default mouse mode of mobile terminal.In the present embodiment, in mobile terminal, preset mouse mode, can open or close mouse mode by the corresponding setting options of mobile terminal.Preferably, under described default mouse mode, the described mobile terminal display screen screen that goes out, reduces electric quantity consumption to save.
Above-mentioned detection module 302 is for detection of the touching signals of touch-screen that acts on mobile terminal.In the present embodiment, mobile terminal enters after mouse mode, and display backlight lamp is closed, and can reduce the electric quantity consumption of mobile terminal.By touch-screen and or key circuit can the mobile terminal of detection effect under the screen state that goes out touching signals.Concrete, the button of the present embodiment mobile terminal comprises volume key, home key and power key.
Above-mentioned determination module 303 is for determining the mouse action instruction that described touching signals is corresponding.Preferably, the present embodiment need be set up the touching signals of mobile terminal and the relation list of mouse action instruction in advance.Described determination module 303 is specifically for inquiring about described relation list, if relation list exists the touching signals detecting, obtains corresponding mouse action instruction.
Above-mentioned sending module 304 is for sending described mouse action instruction to matching with this mobile terminal the PC end being connected, so that this PC end is carried out to mouse action.
Preferably, the device of realizing virtual mouse based on mobile terminal of the present embodiment also comprises: link block 305 and module 306 is set.
Above-mentioned link block 305 is connected with the pairing of PC end for setting up mobile terminal; The wireless connections such as the wifi that specifically can set up mobile terminal and PC end is connected, data network connection or bluetooth connection.
The above-mentioned module 306 that arranges is for the touching signals of foundation in advance and the relation list of mouse action instruction.Described in the present embodiment, relation list specifically comprises: the instruction of the corresponding mobile cursor of touching signals of slip screen; The instruction of the corresponding left mouse button/right button of touching signals of up/down volume key; The instruction that the corresponding mouse of touching signals of upper volume key+slip screen pulls; The touching signals correspondence of home key+up/down/left/right slip screen upwards/down/left/right side draws the instruction of scroll bar; The touching signals correspondence of two finger up/down/left/right slip screens upwards/down/left/right side pulls the instruction of the page.
It should be noted that, user also can arrange other relation lists according to the operating habit of oneself.
Further, because the resolution of the display screen that generally display screen of mobile terminal is held from PC is different, therefore after determining the mouse action instruction that described touching signals is corresponding, if described mouse action instruction needs mobile cursor, therefore described determination module 303, also in the time that the mouse action instruction of determining needs mobile cursor, goes out cursor movement precision corresponding to described mouse action instruction according to the screen resolution adaptation of corresponding PC end.In the present embodiment, cursor movement precision refers to: user finger slides one inch time on the touch-screen of mobile terminal, the displacement of the cursor of mouse of corresponding PC end.
In the present embodiment, except the instruction of left mouse button/right button, other mouse action instructions all need mobile cursor.
Further, described sending module 304 also match with this mobile terminal the PC being connected and holds for described mouse action instruction and corresponding cursor movement precision are sent to.
For example: press the touching signals of volume key if detection module 302 detects user, can to determine this touching signals be left mouse button instruction to determination module 303, then sending module 304 sends to this mouse action instruction with this mobile terminal and matches the PC end being connected, and to realize, PC end is carried out to cursor clicking operation.
Again for example: if detection module 302 detects that user is by living in volume key and the touching signals of the screen that slides, can to determine this touching signals be the object chosen of towing or the instruction of selecting frame operation to determination module 303, because this instruction need to mobile cursor, therefore also need to go out cursor movement precision corresponding to described mouse action instruction according to the screen resolution adaptation of PC end, then this mouse action instruction and corresponding cursor movement precision are sent in the lump PC end by sending module 304, to realize the mouse action to PC end.
Preferably, switch module 301 described in the present embodiment, if also for the signal that starts mobile terminal normal manipulation mode being detected, close default mouse mode, mobile terminal display screen lights.In the present embodiment, the signal that starts mobile terminal normal manipulation mode comprises the signal of lighting display screen, for example, in the time receiving that user presses power key and lights the signal of display screen or mobile terminal and have incoming call access, the mouse mode of turning-off mobile terminal, user can access by normal mode of operation the function of mobile terminal.
By the embodiment of the present invention, make mobile terminal increase the function of wireless mouse, and user's mouse action to PC end at a distance, for example adept machine operation computer, while wanting to see a film, what user can be random shows comfortable posture, by handset touch panel operating computer.And without wiring, for user has brought facility.
Above disclosed is only preferred embodiment of the present invention, certainly can not limit with this claim scope of the present invention, therefore, all any amendments of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., still belong to the scope that the present invention is contained.