Background technology
Adopt at present multimedia to finish meeting report, the characteristics such as its bandwagon effect, interactive operation have changed the stiff, uninteresting of traditional meeting fully, also make the lecturer faster, easily.Appear at widely the occasions miscellaneous such as school, community, company, government department, commercial affairs interchange, product introduction.But do not having in the situation of other aids, the operator controls multimedia playing flow and just seems inconvenient, and scope of activities has to be confined to the zone at computing machine place.Commonly used auxiliary electron instrument such as laser pen, the defective such as electronic romote-controller need to be bought extra electronic equipment, has the inconvenience of carrying, and expensive and function is limited.
Current, it is by obtaining the displaying contents information of PC desktop that portions of electronics equipment is arranged, and then shows at electronic equipment (such as ipad), again by the enterprising line operate of electronic equipment is realized PC is controlled.This method has to first obtain the demonstration data to pc, and needs constantly show alternately data when practical operation, can produce the data processing pressure to PC or electronic equipment like this.
The patent of publication number CN 101510125A " a kind of method that realizes computer keyboard mouse action control using mobile phone by bluetooth " discloses and has a kind ofly realized by bluetooth that the method for computer keyboard mouse action control using mobile phone relates to and a kind ofly utilize bluetooth to connect in various occasions, realize the method for each generic operation of mobile phone remote control computing machine, at first at mobile phone terminal client software is installed, at computer terminal build-in services device software, the client software of starting hand-set and the server software of computer terminal also connect by bluetooth, then client software is pressed mobile phone key, corresponding key mapping information is sent to server end, after server end receives information, again according to the user can customize in the configuration file of shortcut to arrange this information analysis be corresponding mouse-keyboard operational order, the corresponding relation of mobile phone terminal button and computer mouse function, thus realization is to the control of computing machine.But this method operation is dull, also can't realize the operation of comparison camber line, makes the user feel inconvenient.
Current, the screen intensity of most of touch-screen mobile phone is directly proportional with its electric weight that consumes, and screen intensity then its power consumption is also larger.The patent of publication number CN 101924807A " method of a kind of touch-screen mobile phone and mouse input " discloses the method that the invention discloses a kind of touch-screen mobile phone and mouse input, and the method comprises: the mouse-driven module that will be arranged on the touch-screen mobile phone is connected on the PC; Load the mouse function of touch-screen mobile phone; Demonstrate mouse inputting interface at the touch-screen mobile phone display screen; The operation touch-screen generates the operational order of corresponding button and cursor of mouse action, converts the key assignments of respective keys and cursor of mouse action to, transfers to PC and finishes the mouse input.But this method action need operates according to the inputting interface of the mouse pointer to mouse, operating process is more stiff, can't realize the camber line operation, simultaneously must left-right key be set at screen, mobile phone screen is the light yellow screen again, must consume the electric weight of part mobile phone, on the other hand, user's eyes must stare at bright mobile phone screen and operate, and have disperseed the energy of control.
Most of PC control by Mobile phone screen adopts " bright " the mode of screen, at screen the left-right key key area is set, and the operator realizes the function of its right and left key by clicking its key area.But this also wastes the screen operating space to a certain extent in the waste cell-phone battery electric-charge quantity.
Summary of the invention
For addressing the above problem, the invention provides a kind of mouse input method and touch-screen mobile phone control device, can be in the situation that does not show contents of mobile phone screen, its screen of controlling operates, and has namely saved the electric energy of mobile phone again so that screen operator is simpler.
A kind of method of mouse input comprises the steps:
Set up being connected of mobile phone terminal (mobile touch apparatus) and server;
Gather the coordinate information of touch objects touch point in mobile phone screen;
Judge whether touch objects leaves handset touch panel, if not, obtain the motion track information of touch objects on mobile phone screen in the first Preset Time, and move according to motion track information mouse beacon;
Described motion track information is the set that gathers the touch point coordinate in described the first Preset Time section.
A kind of touch-screen mobile phone, it comprises:
Comprise mobile phone terminal and server end;
Described mobile phone terminal comprises time block, mobile phone screen acquisition module, data processing module, wireless communication module, modules connects successively, described server end comprises wireless communication module, mouse control module, two modules connect successively, and described mobile phone terminal is connected wireless communication module and carries out the signal connection with server end.
Described time block arranges touch information the first Preset Time that gathers mobile phone screen, the mobile phone screen acquisition module is according to gathering the touch information of mobile phone screen in the first Preset Time and sending to data processing module, data processing module carries out data according to the information of receiving to be processed, generate corresponding mouse action order, and with mouse action order transmission mobile communication module, the mobile communication module sends to above-mentioned mouse action order the communication module of server end, the communication module of server end receives above-mentioned mouse action order and issues the mouse control module, and the mouse control module is controlled screen mouse.
Described data processing module comprises the button determination module, and described button determination module is used for judging the button operation type of touch operation.
Described data processing module comprises an acquisition of information module, described mouse control module comprises an acquisition of information module, be used for obtaining respectively the resolution information of mobile phone screen and control screen, draw its resolution ratio, and the comparative result by resolution ratio and the first preset value, control the translational speed of screen mouse pointer.
Compared with prior art, the inventor thinks to possess at least following beneficial effect:
The first, flexible operation, simple can be done the camber line operation, right and left key must be set in addition just can realize the right and left key function;
The second, the present invention must not download desktop contents information in use in addition, and the brightness of screen can be " 0 ", can save the electric weight of mobile phone;
Three, the present invention uses touch-screen mobile phone as mouse, can realize replacing fully mouse that screen is operated, and human eye can break away from mobile phone screen fully and operates during use;
Four, the present invention can be automatically according on server end and the mobile phone terminal resolution, regulate its pointer movement speed on display device, have preferably hommization operating feature.
Embodiment
The invention provides a kind of mouse input method and touch-screen mobile phone control device, can be in the situation that does not show contents of mobile phone screen, its screen of controlling operates, and has namely saved the electric energy of mobile phone again so that screen operator is simpler.Describe specific embodiments of the invention in detail below in conjunction with accompanying drawing.
Embodiment one
A kind of mouse input method as shown in Figure 1, comprises the steps:
S101, set up being connected of mobile phone terminal (mobile touch apparatus) and server;
Mobile phone and server end connect, and can adopt multiple connected mode; Connected mode comprises the existing connected modes such as the connection of usb line, bluetooth connection or wifi connection;
After connecting, the touch-screen of mobile phone namely obtains by the information of mouse in the control screen, and server and the mobile phone of being controlled screen carry out information interaction.
The coordinate information of S102, collection touch objects touch point in mobile phone screen;
After mobile phone and server end connected, mobile phone terminal judged whether touch objects touches handset touch panel, is then to obtain the coordinate information P1 of current touch point in mobile phone screen.Namely when touch objects (such as finger) touching mobile phone screen was arranged, cell phone system judged that namely the coordinate of its touch point is P1.If do not have touch objects the touching mobile phone screen then cell phone system will continue have judged whether touch objects touching handset touch panel.
S103, judge whether touch objects leaves handset touch panel, if not, obtain the motion track information of touch objects on mobile phone screen in the first Preset Time, and move according to motion track information mouse beacon; If enter S104;
After touch objects touches handset touch panel, and when handset touch panel operates, (this is the first Preset Time to cell phone system every the N millisecond, can adjust according to different demands) just can obtain the current coordinate information Pn in mobile phone screen in touch point, and obtain motion track from P1 to Pn, L is touch track as shown in Figure 2, this track is several coordinate points (p1 that gathers in the N millisecond, p2.., pn) set, and sending the rolling mouse order to server, server is received the event that rear motion track information according to recording moves to system's generation mouse, and the control screen mouse moves.
In the present embodiment, the touch track of touch objects touch handset touch panel can become with the motion track of screen mouse certain proportionate relationship.On the moving direction that moves to p2 such as p1 was, its step-length that moves was 1, the motion track of mouse can be decided to be on moving direction that p1 moves to p2 is and server obtains after the information ratio according to its resolution, and its step-length that moves is 10.The point of other motion track can the like, artificial setup parameter in particular cases.
Above-mentioned the first Preset Time that mentions can be adjusted according to the actual requirements, can be N millisecond, N second or N microsecond.
S104, mouse beacon stop mobile.
After touch objects was left handset touch panel, cell phone system obtained the current coordinate information P3 in mobile phone screen in touch point, and the control screen mouse stops mobile.
By the method for above-mentioned realization mouse with mobile telephone set shape, even can namely save the consumption of mobile phone electric weight so that touch-screen is also can control screen mouse in the situation of " 0 " there not being screen intensity, improved again user's experience.
As an embodiment preferably, in order to make different touch-screen mobile phones, reasonable control effect is arranged.The present invention also introduces a kind of mousebutton decision method, as shown in Figure 3, specifically comprises the steps: to determine whether in the second Preset Time, if carry out double click operation after step S103 judges that touch objects is left handset touch panel; If not, return S102.
Because people's operating handset touch-screen, generally all operate with finger, described coordinate preset range is that finger take common people is as object of reference, carry out setting range, in the present embodiment, the second Preset Time is an empirical value, generally is to point with common people to click the mistiming of lifting and again click screen behind the mobile phone screen and set, and the Preset Time that adopts in the present embodiment is 0.1s.If the people who certainly uses has other requirements, also can adjust the second Preset Time according to its requirement.
As shown in Figure 4, comprising the steps: specifically after step S102 obtains the coordinate information P1 of current touch point in mobile phone screen that judging has again the second touch objects to touching in the first preset range in mobile phone screen, is then to carry out the right button operation;
In the present embodiment, the first preset range is take the touch point of current its collection as the center of circle (namely when first finger of forefathers pin this touch point), and another finger is pinned the coordinate preset range of current mobile phone screen simultaneously.This first preset range is take a finger as the center of circle, and another finger distance side by side is the border circular areas that radius is drawn circle.Coordinate range preset range herein is an empirical value, by can being to take the touch point as the center of circle, the circle ring area that radius 12mm becomes;
People's operating handset touch-screen, generally all operate with finger, described the first coordinate preset range of present embodiment is that finger take common people is as object of reference, carry out setting range, in the present embodiment, the coordinate preset range is take the touch point of current its collection as the center of circle, behind first finger touch screen, and second unlikely touch scope of meeting first finger of finger.If but second finger during touch screen too away from first finger, then may be that false touch is touched, being provided with of such preset range is beneficial to correctly decision person's intention, also can allow simultaneously brightness for " 0 " mobile phone screen carry out the operation of right button, and then the perfect function of touching screen mouse.
In addition, because the resolution sizes of display screen may be different, and every type handset touch panel curtain size also can't be unified, so if the screen of mobile phone is too little, and the screen of display screen is when excessive, and it is dumb that mouse on the screen is moved, and affects user's operation.
As an embodiment preferably, in order to make different touch-screen mobile phones, when the different real screen of control, reasonable control effect is arranged.The present invention also introduces a kind of method that realizes that the mouse with mobile telephone set shape speed of finger is regulated automatically, as shown in Figure 5, specifically comprises the steps:
S1011, touch-screen mobile phone and server end connect;
S1012, obtain the resolution a=640*360 of handset touch panel, and obtain the screen display resolution b=1920*1080 of server end;
The ratio c=a/b of S1013, two screen resolutions of calculating;
S1014, regulate the mouse pointer translational speed according to the relation of ratio and preset ratio value.
What of the mobile pixel value of the screen of finger mouse corresponding with service device end when Moving Unit length are described mouse pointer translational speed be.
If described ratio is less than or equal to the first preset ratio value, mouse then is set regulates pointer movement speed for fast;
If described ratio is less than or equal to the second preset ratio value greater than the first preset ratio value, mouse then is set regulates during pointer movement speed is;
If described ratio, then arranges mouse greater than the second preset ratio value and regulates pointer movement speed for slow;
Above-mentioned mouse pointer translational speed be finger mouse soon in the time of mobile one inch the mobile pixel count of screen of corresponding with service device end is 1600, in be finger mouse in the time of mobile one inch the mobile pixel count of screen of corresponding with service device end is 800, be that the mobile pixel count of screen of finger mouse corresponding with service device end in the time of mobile an inch is 400 slowly.In addition, the user also can adjust speed of finger according to the actual requirements.
Embodiment two
Corresponding with a kind of method of mouse input, the present invention also provides a kind of touch-screen mobile phone control device, as shown in Figure 6, comprises mobile phone terminal and server end;
Described mobile phone terminal comprises time block, mobile phone screen acquisition module, data processing module, wireless communication module, and described server end comprises wireless communication module, mouse control module;
Time block arranges touch information the first Preset Time that gathers mobile phone screen, the mobile phone screen acquisition module gathers the touch information (leaving the information of mobile phone screen such as touch track L or touch objects) of mobile phone screen and sends to data processing module according to the first Preset Time, data processing module carries out data according to the information of receiving to be processed, generate corresponding mouse action order (such as movement directive or cease and desist order), and touch information is generated corresponding screen mouse mobile message send the mobile communication module.
The mobile communication module sends to above-mentioned mouse action order and screen mouse mobile message the communication module of server end, the above-mentioned mouse action order of the communication module of server end and screen mouse mobile message are issued the mouse control mould, and screen mouse is controlled.
Wireless communication module can adopt WiFi or Bluetooth technology.
Wireless communication module herein also can just replace with wire communication, and only some communication need to connect mobile phone and server with data line, and is relatively wireless cumbersome.
Preferably, as shown in Figure 7, described data processing module comprises the button determination module, and described button determination module is used for judging button operation type corresponding to touch operation.Its button decision method carries out according to mouse action information, comprising: after judging that touch objects is left handset touch panel, determine whether in the second Preset Time, if carry out double click operation; If the second touch objects point touching screen is arranged again when touch-screen is not left in the first touch point, then be judged to be the right button operation.
But because the screen of touch-screen is larger, the maloperation in the time of may causing many manual manipulations.Therefore, distance between the second touch objects point touching screen and touch point is arranged again when touch-screen is not left in the first touch point in preset range, judge that again it carries out the probability that the right button operation can reduce maloperation.
Be the implementation method with texts, also can be placed on server end to this step and finish.
Described coordinate preset range is take its coordinate points as the center of circle, and radius is the circle ring area that 12mm becomes;
Preferably, as shown in Figure 8, described mobile phone terminal can comprise the acquisition of information module, is used for obtaining the resolution information a of mobile phone screen; Server end also comprises the acquisition of information module, and the acquisition of information module is obtained the resolution information b of display screen; When mobile phone terminal connected with server end, mobile phone terminal or server end obtained both resolution informations, calculated the ratio c=a/b of two screen resolutions, and regulated the pixel count that mouse pointer moves by the relation of ratio and preset ratio value.
Need to prove that according to the method for above-mentioned pointer movement speed as can be known, the motion track of mobile phone screen is given tacit consent to into its respectively ratio relation of rate with the motion track of the screen mouse of controlling.In addition, owing to mobile phone screen can mate with the display resolution of control screen, so that present technique has than altitude acclimation under the application of different screen resolutions.Other technologies feature in a kind of touch-screen mobile phone control device in the present embodiment is identical with the method that the mouse among the embodiment one is inputted, and does not repeat them here.
Can find out that by above several embodiment the control device of mouse input method of the present invention and touch-screen mobile phone can carry out mouse action to computer screen or other display screens with the touch-screen of mobile phone.Flexible operation, simple, than the tool hommization, human eye can break away from mobile phone screen fully and operates during use, and mobile phone screen does not need light yellow yet, has both saved the electric weight of mobile phone, has improved again user's experience.
Above-described embodiment of the present invention does not consist of the restriction to protection domain of the present invention.Any modification of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., all should be included within the claim protection domain of the present invention.