CN103425408A - Mouse and keyboard sharing method and system - Google Patents
Mouse and keyboard sharing method and system Download PDFInfo
- Publication number
- CN103425408A CN103425408A CN2012101613511A CN201210161351A CN103425408A CN 103425408 A CN103425408 A CN 103425408A CN 2012101613511 A CN2012101613511 A CN 2012101613511A CN 201210161351 A CN201210161351 A CN 201210161351A CN 103425408 A CN103425408 A CN 103425408A
- Authority
- CN
- China
- Prior art keywords
- mouse
- keyboard
- electronic installation
- android
- operating system
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 25
- 238000009434 installation Methods 0.000 claims description 47
- 238000010586 diagram Methods 0.000 description 4
- 238000006243 chemical reaction Methods 0.000 description 3
- 230000002093 peripheral effect Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
Images
Landscapes
- Input From Keyboards Or The Like (AREA)
- Position Input By Displaying (AREA)
Abstract
Disclosed is a mouse and keyboard sharing method and system. The mouse and keyboard sharing method includes: moving a mouse leftwards on a computer and detecting movement of the mouse; hiding the mouse when the mouse detected moves to the leftmost edge of a computer system interface; changing an x-coordinate of the mouse position from zero to the width of a computer operation system interface; starting a mouse and keyboard mechanism of an electronic device, and sending the changed mouse coordinate and character strings input by a keyboard to the electronic device; converting the sent mouse coordinate to an Android system coordinate; drawing out a mouse icon at the position of the converted Android coordinate; moving the mouse rightwards on the computer and detecting the movement of the mouse; when the mouse detected moves to the rightmost edge of the computer operation system interface, stopping the mouse and keyboard mechanism of the electronic device and revising the x-coordinate of the mouse position to zero; displaying the mouse on the computer interface. By the aid of the mouse and keyboard sharing method and system, mouse and keyboard sharing of different electronic devices can be realized.
Description
Technical field
The present invention relates to the shared method and system of a kind of equipment, relate in particular to a kind of mouse-keyboard and share method and system.
Background technology
The general electronic installation based on the Android system is all to take touch-control (Touch Panel) as main, so usually all there is no external access of mouse and keyboard, even if as having on market, mouse and keyboard are integrated into to the design on electronic installation, but on the whole electronic installation slightly dislikes thick and heavy, be unfavorable for attractive in appearancely also being inconvenient to carry.If can realize the sharing of mouse-keyboard equipment of electronic installation and peripheral equipment, can make user's more convenient operation, also can reduce deviser's burden.
Summary of the invention
In view of above content, be necessary to provide a kind of mouse-keyboard to share method, can realize sharing of electronic installation based on the Android system and peripheral equipment mouse-keyboard equipment.
In view of above content, also be necessary to provide a kind of mouse-keyboard shared system, can realize sharing of electronic installation based on the Android system and peripheral equipment mouse-keyboard equipment.
Described mouse-keyboard is shared method and is comprised: the first detecting step, on computers by mouse toward moving left, and detect the movement of this mouse; First hides step, when detecting mouse while moving on to computer system interface leftmost border, hides this mouse on the computer operating system interface;
The first modify steps, by the mouse position horizontal ordinate by zero width that becomes the computer operating system interface; Transmitting step, start electronic installation Android system mouse-keyboard mechanism, and the character string that the mouse coordinates after changing is inputted together with keyboard is sent to electronic installation; Switch process, the mouse coordinates that computing machine is brought is converted to the Android system coordinates; The picture step, draw mouse icon by the Android system at the described Android coordinate position be converted to; The second detecting step, on computers, toward moving right, and detect the movement of this mouse by mouse; The second modify steps, when detecting mouse while moving on to computer operating system interface rightmost circle, stop electronic installation Android system mouse-keyboard mechanism, and the mouse position horizontal ordinate is revised as to zero; Step display shows mouse on the computer operating system interface.
Described mouse-keyboard shared system comprises: the first detecting module, for when on computers by mouse when moving left, detect the movement of this mouse; First hides module, for when detecting mouse while moving on to computer system interface leftmost border, hiding this mouse on the computer operating system interface; The first modified module, for by the mouse position horizontal ordinate by zero width that becomes the computer operating system interface; Transport module, start mouse-keyboard mechanism for notifying electronic installation Android system, and the character string that the mouse coordinates after changing is inputted together with keyboard is sent to electronic installation; Modular converter, be converted to the Android system coordinates for the mouse coordinates that computing machine is brought, and by the Android system, at the described Android coordinate position be converted to, draws mouse icon; The second detecting module, for when on computers by mouse when moving right, detect the movement of this mouse; The second modified module, for when detecting mouse while moving on to computer operating system interface rightmost circle, notice electronic installation Android system stops mouse-keyboard mechanism, and the mouse position horizontal ordinate is revised as to zero; Display module, for showing mouse on the computer operating system interface.
The present invention can realize that the mouse-keyboard of different electronic installations is shared.
The accompanying drawing explanation
Fig. 1 is the running environment figure of mouse-keyboard shared system of the present invention preferred embodiment.
Fig. 2 is the functional block diagram of mouse-keyboard shared system of the present invention preferred embodiment.
Fig. 3 is the process flow diagram that mouse-keyboard of the present invention is shared the method preferred embodiment.
The main element symbol description
Computing machine | 1 |
Electronic installation | 2 |
The mouse-keyboard shared system | 10 |
Mouse | 12 |
Keyboard | 14 |
Touch-screen | 16 |
Processor | 18、22 |
Storer | 20、24 |
The first detecting module | 100 |
First hides module | 102 |
The first modified module | 104 |
Transport module | 106 |
Modular converter | 108 |
The second detecting module | 110 |
Display module | 112 |
The second modified module | 114 |
Second hides module | 116 |
Following embodiment further illustrates the present invention in connection with above-mentioned accompanying drawing.
Embodiment
As shown in Figure 1, the running environment figure of mouse-keyboard shared system of the present invention, this mouse-keyboard shared system 10 operates on computing machine 1 and the electronic installation based on the Android system 2, and computing machine 1 is connected by the usb data line with electronic installation 2, and electronic installation 2 can be placed in the left end of computing machine 1.Computing machine 1 comprises mouse 12, keyboard 14, processor 18, storer 20.Electronic installation 2 comprises touch-screen 16, processor 22, storer 24, and electronic installation 2 can be the electronic installations such as smart mobile phone, panel computer, personal digital assistant, and computer operating system can be the operating system of the types such as Windows.
As shown in Figure 2, be the functional block diagram of mouse-keyboard shared system of the present invention preferred embodiment.
This mouse-keyboard shared system 10 comprises first detecting module the 100, first hiding module 102, the first modified module 104, transport module 106, modular converter 108, the second detecting module 110, display module 112, second modified module the 114, second hiding module 116.
The alleged module of the present invention has been the program segment of a specific function, than program, is more suitable in the implementation of describing software.Below in conjunction with Fig. 3, each functional module in mouse-keyboard shared system 10 is elaborated.
As shown in Figure 3, be the process flow diagram that mouse-keyboard of the present invention is shared the method preferred embodiment.
Step S200, on computing machine 1 by mouse 12 toward moving left, the movement of the first detecting module 100 detecting mouses 12.
Step S202, when detecting mouse 12 while moving on to computer system interface leftmost border (X-axis of coordinate is 0), by mouse 12, position coordinates now is designated as (Pw_x, Pw_y), first hides module 102 hides this mouse 12 on computer operating system, operating on electronic installation 2 with on computing machine 1 of mouse 12 being distinguished fully.First hides module 102 can also set up a transparent interface computer operating system interface is covered, in order that when mouse 12 is presented on electronic installation 2, clicking the mouse 12 can not affect computing machine 1 operating system.In this preferred embodiment, take the lower left corner of computer operating system windows desktop is true origin, and the windows desktop horizontal direction is X-axis, and vertical direction is Y-axis, sets up plane coordinate system.Hereinafter described coordinate all is based on this coordinate system.
Step S204, the first modified module 104 by the horizontal ordinate of mouse 12 position when the computer system leftmost border by the zero width W idth_win that becomes the computer operating system interface, now, the position coordinates of mouse 12 is labeled as (Pw_x "; Pw_y "), wherein, Pw_x "=Width_win, Pw_y "=Pw_y.
Step S206, the Android system mouse-keyboard mechanism of startup electronic installation 2, and the character string of the mouse coordinates after changing being inputted together with keyboard 14 by transport module 106 is sent to electronic installation 2.In this embodiment, can be by adb(Android Debug Bridge) instrument is sent to electronic installation 2 by the mouse coordinates after changing together with the character string of keyboard 14 inputs.This adb instrument plays the effect of debugging bridge, by adb, debugs the Android program, that is to say the debug instrument, and adb can direct control management Android simulator or real Andriod equipment (as the G1 mobile phone).Its major function has: upload/download file between port mapping, computing machine and the equipment of the shell of operational outfit (order line), management simulation device or equipment, local apk software is mounted to simulator or Android equipment.
Step S208, the coordinate conversion of the mouse 12 that modular converter 108 is brought computing machine 1 is electronic installation 2 Android system coordinates.Take computer operating system as Windows be example, wide (Width_win) of Windows system, high (Height_win) are different with wide (Width_droid), the height (Height_droid) of Android system, therefore the mouse coordinates that need to bring computing machine 1 is done conversion.Suppose that the Android coordinate is for (Pa_x, Pa_y), the Windows coordinate is Pw_x ", Pw_y ", can utilize following formula conversion:
Pa_x=(Pw_x”×Width_droid)÷Width_win;
Pa_y=(Pw_y”×Height_droid)÷Height_win。
Step S210, located to draw the icon of mouse 12 in the described Android system coordinates position (Pa_x, Pa_y) be converted to by the Android system.Present embodiment can be passed to the input of character string of the Android system coordinates that is converted to and keyboard 14 by EventHub the intermediary layer Framework of the Android system of electronic installation 2.Android receives incoming event by EventHub, and EventHub is the abstract structure of event, is safeguarding the ruuning situation of Android system equipment, and device type comprises Keyboard, TouchScreen, TraceBall.Therefore transmit the application program of the incoming event of event that mouse moves and keyboard to the Android system by EventHub in this better embodiment.When the Windows mouse is sent click (click event) event, when the Framework of Android system receives this click event by adb and EventHub, can on position corresponding on the Android of electronic installation 2 system desktop, simulate Touch event.
Step S212, on computing machine 1, by mouse 12, toward moving right, the second detecting module 110 is detected the movement of mouses 12.In this moving process, transport module 106 and modular converter 108 can by mouse 12, the position coordinates on computing machine 1 transmits, converts the coordinate on electronic installation 2 end Android systems in time, and draws mouse 12 in Shang De relevant position, the interface of Android system.
Step S214, when detecting mouse 12 while moving on to computer operating system system interface rightmost circle, stop electronic installation 2Android system mouse-keyboard mechanism, the second modified module 114 is revised as zero by the position horizontal ordinate of mouse 12, now, the coordinate of mouse 12 is defined as to Pw_ x, Pw_ y, wherein:
Pw_x?=?0,Pw_y?=?Pw_?y”。
Step S216, display module 112 shows this mouse 12 and transparent interface is cancelled on the computer operating system interface.This mouse 12 is presented at the high order end at computer operating system interface.
Step S218, second hides module 116 hides the mouse icon of electronic installation 2 ends, operating on electronic installation 2 with on computing machine 1 of mouse 12 being distinguished fully.
Above embodiment is only unrestricted in order to technical scheme of the present invention to be described, although with reference to preferred embodiment, the present invention is had been described in detail, those of ordinary skill in the art is to be understood that, can modify or be equal to replacement technical scheme of the present invention, and not break away from the spirit and scope of technical solution of the present invention.
Claims (11)
1. a mouse-keyboard is shared method, and the method is applied on computing machine and an electronic installation, and electronic installation is placed in the computing machine left end and is connected with computing machine by data line USB, and this electronic installation adopts the Android system, it is characterized in that, the method comprises:
The first detecting step, on computers by mouse toward moving left, and detect the movement of this mouse;
First hides step, when detecting mouse while moving on to Far Left border, computer system interface, hides this mouse on the computer operating system interface;
The first modify steps, by the horizontal ordinate of mouse position by zero width that becomes the computer operating system interface;
Transmitting step, start electronic installation Android system mouse-keyboard mechanism, and the character string that the mouse coordinates after changing is inputted together with keyboard is sent to electronic installation;
Switch process, the mouse coordinates that computing machine is sent is converted to the Android system coordinates;
The picture step, draw mouse icon by the Android system at the described Android coordinate position be converted to;
The second detecting step, on computers by mouse toward moving right, and detect the movement of this mouse;
The second modify steps, when detecting mouse while moving on to computer operating system interface rightmost circle, stop electronic installation Android system mouse-keyboard mechanism, and the mouse position horizontal ordinate is revised as to zero;
Step display shows mouse on the computer operating system interface.
2. mouse-keyboard according to claim 1 is shared method, it is characterized in that, computer operating system is WINDOWS operating system.
3. mouse-keyboard according to claim 1 is shared method, it is characterized in that, described transmitting step is that the character string of amended mouse coordinates being inputted together with keyboard by Android Debug Brideg transfers to electronic installation.
4. mouse-keyboard according to claim 1 is shared method, it is characterized in that, described first hides step also comprises that setting up a transparent interface covers the computer system interface.
5. mouse-keyboard according to claim 4 is shared method, it is characterized in that, described step display also comprises cancels transparent interface.
6. mouse-keyboard according to claim 1 is shared method, it is characterized in that, the method also comprises:
Second hides step, and the mouse icon of electronic installation is hidden.
7. a mouse-keyboard shared system, this system operates on computing machine and an electronic installation, and electronic installation is placed in the computing machine left end and is connected with computing machine by data line USB, and this electronic installation employing Android system, is characterized in that, and this system comprises:
The first detecting module, for when on computers by mouse when moving left, detect the movement of this mouse;
First hides module, for when detecting mouse while moving on to computer system interface leftmost border, hiding this mouse on the computer operating system interface;
The first modified module, for by the mouse position horizontal ordinate by zero width that becomes the computer operating system interface;
Transport module, start mouse-keyboard mechanism for notifying electronic installation Android system, and the character string that the mouse coordinates after changing is inputted together with keyboard is sent to electronic installation;
Modular converter, be converted to the Android system coordinates for the mouse coordinates that computer terminal is brought, and by the Android system, at the described Android coordinate position be converted to, draws mouse icon;
The second detecting module, for when on computers by mouse when moving right, detect the movement of this mouse;
The second modified module, for when detecting mouse while moving on to computer operating system system interface rightmost circle, notice electronic installation Android system stops mouse-keyboard mechanism, and the mouse position horizontal ordinate is revised as to zero;
Display module, for showing mouse on the computer operating system interface.
8. mouse-keyboard shared system according to claim 7, is characterized in that, computer operating system is WINDOWS operating system.
9. mouse-keyboard shared system according to claim 7, is characterized in that, described first hides module, also for setting up a transparent interface, computer operating system is covered;
Described display module, also for cancelling transparent interface.
10. mouse-keyboard shared system according to claim 7, is characterized in that, described transport module transfers to electronic installation for the character string of amended mouse coordinates being inputted together with keyboard by Android Debug Brideg.
11. mouse-keyboard shared system according to claim 7, is characterized in that, this system also comprises:
Second hides module, for the mouse icon by electronics end, hides.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012101613511A CN103425408A (en) | 2012-05-23 | 2012-05-23 | Mouse and keyboard sharing method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012101613511A CN103425408A (en) | 2012-05-23 | 2012-05-23 | Mouse and keyboard sharing method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103425408A true CN103425408A (en) | 2013-12-04 |
Family
ID=49650232
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012101613511A Pending CN103425408A (en) | 2012-05-23 | 2012-05-23 | Mouse and keyboard sharing method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103425408A (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104035900A (en) * | 2014-06-03 | 2014-09-10 | 上海卓悠网络科技有限公司 | Method and device for sharing input device of PC (personal computer) with Android device |
CN104811793A (en) * | 2015-03-18 | 2015-07-29 | 四川长虹电器股份有限公司 | Method for peripheral input through computer input equipment shared by television |
CN105302364A (en) * | 2015-09-24 | 2016-02-03 | 福建天晴数码有限公司 | Android device remote controlling method and system |
CN106060234A (en) * | 2016-05-05 | 2016-10-26 | 乐视控股(北京)有限公司 | Method and system of inputting information to mobile terminal via keyboard |
CN110489026A (en) * | 2019-07-05 | 2019-11-22 | 深圳市格上格创新科技有限公司 | A kind of handheld input device and its blanking control method and device for indicating icon |
WO2022111690A1 (en) * | 2020-11-30 | 2022-06-02 | 华为技术有限公司 | Method for sharing input device, electronic devices, and system |
CN114579016A (en) * | 2020-11-30 | 2022-06-03 | 华为技术有限公司 | Method for sharing input equipment, electronic equipment and system |
WO2023241257A1 (en) * | 2022-06-13 | 2023-12-21 | 荣耀终端有限公司 | Method for establishing connection between devices and terminal device |
US11947998B2 (en) | 2020-09-02 | 2024-04-02 | Huawei Technologies Co., Ltd. | Display method and device |
US12073071B2 (en) | 2020-07-29 | 2024-08-27 | Huawei Technologies Co., Ltd. | Cross-device object drag method and device |
WO2025001352A1 (en) * | 2023-06-30 | 2025-01-02 | 荣耀终端有限公司 | Method for sharing input device, and electronic device and storage medium |
US12197693B2 (en) | 2020-08-26 | 2025-01-14 | Huawei Technologies Co., Ltd. | Method and device for displaying a projection interface |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1622619A (en) * | 2004-12-24 | 2005-06-01 | 北京中星微电子有限公司 | A multi-screen display method and device |
CN101078955A (en) * | 2006-05-26 | 2007-11-28 | 南京易思克网络安全技术有限责任公司 | Multiple computer screen mouse switching device and method |
US20110047306A1 (en) * | 2009-06-15 | 2011-02-24 | Adder Technology Limited | Computer input switching device |
CN202281979U (en) * | 2011-08-17 | 2012-06-20 | 黄新华 | Multifunctional KVM (Kernel-based Virtual Machine) switcher |
-
2012
- 2012-05-23 CN CN2012101613511A patent/CN103425408A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1622619A (en) * | 2004-12-24 | 2005-06-01 | 北京中星微电子有限公司 | A multi-screen display method and device |
CN101078955A (en) * | 2006-05-26 | 2007-11-28 | 南京易思克网络安全技术有限责任公司 | Multiple computer screen mouse switching device and method |
US20110047306A1 (en) * | 2009-06-15 | 2011-02-24 | Adder Technology Limited | Computer input switching device |
CN202281979U (en) * | 2011-08-17 | 2012-06-20 | 黄新华 | Multifunctional KVM (Kernel-based Virtual Machine) switcher |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104035900A (en) * | 2014-06-03 | 2014-09-10 | 上海卓悠网络科技有限公司 | Method and device for sharing input device of PC (personal computer) with Android device |
CN104811793A (en) * | 2015-03-18 | 2015-07-29 | 四川长虹电器股份有限公司 | Method for peripheral input through computer input equipment shared by television |
CN104811793B (en) * | 2015-03-18 | 2019-01-04 | 四川长虹电器股份有限公司 | The method that TV shares computer input apparatus to carry out peripheral hardware input |
CN105302364A (en) * | 2015-09-24 | 2016-02-03 | 福建天晴数码有限公司 | Android device remote controlling method and system |
CN105302364B (en) * | 2015-09-24 | 2018-08-28 | 福建天晴数码有限公司 | It is remotely controlled the method and system of Android device |
CN106060234A (en) * | 2016-05-05 | 2016-10-26 | 乐视控股(北京)有限公司 | Method and system of inputting information to mobile terminal via keyboard |
CN110489026A (en) * | 2019-07-05 | 2019-11-22 | 深圳市格上格创新科技有限公司 | A kind of handheld input device and its blanking control method and device for indicating icon |
US12073071B2 (en) | 2020-07-29 | 2024-08-27 | Huawei Technologies Co., Ltd. | Cross-device object drag method and device |
US12197693B2 (en) | 2020-08-26 | 2025-01-14 | Huawei Technologies Co., Ltd. | Method and device for displaying a projection interface |
US11947998B2 (en) | 2020-09-02 | 2024-04-02 | Huawei Technologies Co., Ltd. | Display method and device |
WO2022111690A1 (en) * | 2020-11-30 | 2022-06-02 | 华为技术有限公司 | Method for sharing input device, electronic devices, and system |
CN114579016A (en) * | 2020-11-30 | 2022-06-03 | 华为技术有限公司 | Method for sharing input equipment, electronic equipment and system |
EP4235371A4 (en) * | 2020-11-30 | 2024-03-20 | Huawei Technologies Co., Ltd. | Method for sharing input device, electronic devices, and system |
WO2023241257A1 (en) * | 2022-06-13 | 2023-12-21 | 荣耀终端有限公司 | Method for establishing connection between devices and terminal device |
WO2025001352A1 (en) * | 2023-06-30 | 2025-01-02 | 荣耀终端有限公司 | Method for sharing input device, and electronic device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103425408A (en) | Mouse and keyboard sharing method and system | |
US8355007B2 (en) | Methods for use with multi-touch displays for determining when a touch is processed as a mouse event | |
CN101673146B (en) | Keyboard-screen-mouse switcher using touchscreen | |
US8659566B2 (en) | Touch sensing method and electronic apparatus using the same | |
CN103207757B (en) | Portable device and method of operation thereof | |
CN103092518B (en) | A kind of mobile accurate touch control method of cloud desktop based on RDP agreement | |
US8392935B2 (en) | Uniform event handling across multiple computing devices | |
US20110012838A1 (en) | Computer input device including a display device | |
US9182908B2 (en) | Method and electronic device for processing handwritten object | |
CN105117132A (en) | Touch control method and device | |
US11868549B2 (en) | Sensor system | |
US20150138085A1 (en) | Electronic apparatus for simulating or interfacing a backward compatible human input device by means or control of a gesture recognition system | |
US9019218B2 (en) | Establishing an input region for sensor input | |
TWI547861B (en) | System and method for sharing the mouse and keyboard | |
US10168898B2 (en) | Supporting different event models using a single input source | |
CN106775259A (en) | An information processing method, device and terminal | |
CN103853386A (en) | Touch display screen device with touch mouse function | |
CN103809793A (en) | Information processing method and electronic device | |
US8151279B1 (en) | Uniform event handling across multiple computing devices | |
TW201506787A (en) | Electronic device and inputting managemtne method thereof | |
US20140267030A1 (en) | Computer and mouse cursor control method | |
TWI478017B (en) | Touch panel device and method for touching the same | |
US20090273569A1 (en) | Multiple touch input simulation using single input peripherals | |
US10620760B2 (en) | Touch motion tracking and reporting technique for slow touch movements | |
CN103176659A (en) | Touch response accelerating method based on mobile web |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20131204 |
|
RJ01 | Rejection of invention patent application after publication |