CN110989952A - Multi-screen-based mouse sharing implementation method, device and system - Google Patents
Multi-screen-based mouse sharing implementation method, device and system Download PDFInfo
- Publication number
- CN110989952A CN110989952A CN201911185148.6A CN201911185148A CN110989952A CN 110989952 A CN110989952 A CN 110989952A CN 201911185148 A CN201911185148 A CN 201911185148A CN 110989952 A CN110989952 A CN 110989952A
- Authority
- CN
- China
- Prior art keywords
- screen
- coordinate position
- spliced
- relative coordinate
- current screen
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1423—Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
- G06F3/1446—Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display display composed of modules, e.g. video walls
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Information Transfer Between Computers (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a method, a device and a system for realizing mouse sharing based on multiple screens, wherein the method comprises the following steps: when a mouse cursor moves to the edge of a current screen, judging whether the edge of the current screen is spliced with another screen or not; if so, obtaining the absolute coordinate position and the relative coordinate position of the mouse cursor moving on the edge of the current screen; judging whether the screen is moved to another spliced screen or not based on the absolute coordinate position and the relative coordinate position; if so, the current screen sends the relative coordinate position of the mouse cursor to another spliced screen, and the other spliced screen receives the relative coordinate position of the mouse cursor and forwards the relative coordinate position to an operating system. In the implementation of the invention, one mouse can be inserted into one of the screens to operate the other spliced screens, so that the operation efficiency is improved.
Description
Technical Field
The invention relates to the technical field of multi-screen display, in particular to a method, a device and a system for realizing mouse sharing based on multiple screens.
Background
In the prior art, when a plurality of spliced screens form a complete screen, because the operation information between each screen is independent, if the case on each screen needs to be operated independently, a mouse needs to be connected to the corresponding screen to click, and the operation process is not friendly.
When the plurality of screens are spliced, videos and pictures can be completely displayed on the plurality of screens according to the displayed content, and because each screen corresponds to an independent operating system, when the operation of the mouse inserted into the screen A is finished, the screen B cannot be operated if the mouse is not inserted into the screen B; when a large number of spliced screens exist, the operation on the spliced screens is difficult and the operation efficiency is very low due to the very large complexity of the interfaces.
Disclosure of Invention
The invention aims to overcome the defects of the prior art, and provides a method, a device and a system for realizing mouse sharing based on multiple screens, which can realize that one mouse is inserted into one of the screens to operate other spliced screens, thereby improving the operation efficiency.
In order to solve the technical problem, an embodiment of the present invention provides a method for implementing mouse sharing based on multiple screens, where the method includes:
when a mouse cursor moves to the edge of a current screen, judging whether the edge of the current screen is spliced with another screen or not;
if so, obtaining the absolute coordinate position and the relative coordinate position of the mouse cursor moving on the edge of the current screen;
judging whether the screen is moved to another spliced screen or not based on the absolute coordinate position and the relative coordinate position;
if so, the current screen sends the relative coordinate position of the mouse cursor to another spliced screen, and the other spliced screen receives the relative coordinate position of the mouse cursor and forwards the relative coordinate position to an operating system.
Optionally, the screen is connected with another spliced screen through a network cable or a serial port.
Optionally, an operating system is run in the screen, and the operating system is a Linux system or an Android system.
Optionally, when the mouse cursor moves to the edge of the current screen, determining whether another screen is spliced to the edge of the current screen, including:
acquiring all screens spliced with the current screen and position information, wherein the position information comprises an upper screen, a lower screen, a left screen, a right screen, an upper left oblique diagonal, an upper right oblique diagonal, a lower right oblique diagonal and a lower left oblique diagonal;
acquiring the position information and the movement trend of the mouse cursor moving to the edge of the current screen;
and comparing all the screens and the position information spliced by the current screen with the position information and the movement trend of the mouse cursor moving to the edge of the current screen to judge whether another screen is spliced at the edge of the current screen.
Optionally, the obtaining an absolute coordinate position and a relative coordinate position of the mouse cursor moving on the edge of the current screen includes:
the current screen returns the absolute coordinate position and the relative coordinate position of the mouse cursor moving on the edge of the current screen through an input subsystem of an operating system to obtain the absolute coordinate position and the relative coordinate position of the mouse cursor moving on the edge of the current screen;
the absolute coordinate position is the pixel absolute position of the current screen; the relative coordinate position is a coordinate position offset from the absolute coordinate position.
Optionally, the determining whether the screen has been moved to another spliced screen based on the absolute coordinate position and the relative coordinate position includes:
adding the absolute coordinate position and the relative coordinate position to obtain a coordinate addition result;
judging whether the coordinate addition result is larger than the width and/or height of the current screen;
when the coordinate addition result is larger than the width and/or the height of the current screen, judging that the screen is moved to another spliced screen;
and when the coordinate addition result is less than or equal to the width and/or the height of the current screen, judging that the screen is not moved to another spliced screen.
Optionally, when the current screen sends the relative coordinate position of the mouse cursor to another spliced screen, the method further includes:
and the operating system of the current screen closes the mouse cursor displayed on the current screen.
Optionally, the receiving, on the other spliced screen, the relative coordinate position of the mouse cursor and forwarding the relative coordinate position to the operating system includes:
after the relative coordinate position of the mouse cursor is received on the other spliced screen, creating a virtual mouse device at the relative coordinate position of the mouse cursor through the uinput of the operating system of the other spliced screen;
and forwarding the relative coordinate position of the virtual mouse device to an operating system of the spliced other screen.
In addition, an embodiment of the present invention further provides a multi-screen-based mouse sharing implementation apparatus, where the apparatus includes:
a first judgment module: the device comprises a display screen, a mouse cursor and a control unit, wherein the display screen is used for displaying a current screen;
a coordinate acquisition module: the method comprises the steps that when another screen is spliced at the edge of the current screen, the absolute coordinate position and the relative coordinate position of the movement of the mouse cursor on the edge of the current screen are obtained;
a second judging module: the terminal is used for judging whether the terminal is moved to another spliced screen or not based on the absolute coordinate position and the relative coordinate position;
a coordinate forwarding module: and the current screen is used for sending the relative coordinate position of the mouse cursor to another spliced screen when the current screen is judged to be moved to the other spliced screen, and the other spliced screen receives the relative coordinate position of the mouse cursor and forwards the relative coordinate position to an operating system.
In addition, the embodiment of the invention also provides a multi-screen-based mouse sharing implementation system, which comprises at least two screens, wherein each two screens are connected through a network cable or a serial port cable; an operating system is respectively operated in each screen, and the operating system is a Linux system or an Android system;
the at least two screens are configured to perform the mouse sharing implementation method of any one of the above.
In the implementation of the invention, when the mouse cursor moves to the edge of the current screen, whether another screen is spliced on the edge of the current screen is judged; if so, obtaining the absolute coordinate position and the relative coordinate position of the mouse cursor moving on the edge of the current screen; judging whether the screen is moved to another spliced screen or not based on the absolute coordinate position and the relative coordinate position; if so, the current screen sends the relative coordinate position of the mouse cursor to another spliced screen, and the other spliced screen receives the relative coordinate position of the mouse cursor and forwards the relative coordinate position to an operating system; the operation of inserting a mouse into one of the screens on the other spliced screens can be realized, and the operation efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart illustrating a multi-screen-based mouse sharing implementation method according to an embodiment of the present invention;
FIG. 2 is a schematic structural component diagram of a multi-screen-based mouse sharing implementation apparatus according to an embodiment of the present invention;
fig. 3 is a schematic structural component diagram of a multi-screen-based mouse sharing implementation system in an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Examples
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for implementing multi-screen-based mouse sharing according to an embodiment of the present invention.
As shown in fig. 1, a method for implementing mouse sharing based on multiple screens includes:
s11: when a mouse cursor moves to the edge of a current screen, judging whether the edge of the current screen is spliced with another screen or not;
in the specific implementation process of the invention, the screen is connected with another spliced screen through a network cable or a serial port; and operating an operating system in the screen, wherein the operating system is a Linux system or an Android system.
Further, when the mouse cursor moves to the edge of the current screen, determining whether another screen is spliced to the edge of the current screen, including: acquiring all screens spliced with the current screen and position information, wherein the position information comprises an upper screen, a lower screen, a left screen, a right screen, an upper left oblique diagonal, an upper right oblique diagonal, a lower right oblique diagonal and a lower left oblique diagonal; acquiring the position information and the movement trend of the mouse cursor moving to the edge of the current screen; and comparing all the screens and the position information spliced by the current screen with the position information and the movement trend of the mouse cursor moving to the edge of the current screen to judge whether another screen is spliced at the edge of the current screen.
Specifically, in a mode of performing matrix splicing by using 4 screens, other screens, the position number of the current screen and the position information of the screen are stored in an operating system of the screen, the position information comprises upper, lower, left, right, upper left oblique diagonal, upper right oblique diagonal, lower right oblique diagonal and lower left oblique diagonal, the first screen at the upper left corner is assumed to be selected as the current screen, when a mouse cursor moves on the current screen, and the movement trend of the mouse is also to move to the right, and when the mouse moves to the rightmost side of the screen, the position information and the number of the other screens stored in the operating system of the current screen can be used for obtaining the spliced screen at the rightmost side.
In a specific implementation process, when the screens are directly spliced, every two screens are connected through network cables or serial port cables, and can also be connected through other data cables or interfaces for communication, which is not an example; each screen is provided with an operating system, the operating systems can be Linux systems, Android systems, Windows systems and other operating systems, the spliced screens are not required to use the same operating system, and the screens can be different operating systems.
S12: if so, obtaining the absolute coordinate position and the relative coordinate position of the mouse cursor moving on the edge of the current screen;
in a specific implementation process of the present invention, the obtaining an absolute coordinate position and a relative coordinate position of the movement of the mouse cursor on the edge of the current screen includes: the current screen returns the absolute coordinate position and the relative coordinate position of the mouse cursor moving on the edge of the current screen through an input subsystem of an operating system to obtain the absolute coordinate position and the relative coordinate position of the mouse cursor moving on the edge of the current screen; the absolute coordinate position is the pixel absolute position of the current screen; the relative coordinate position is a coordinate position offset from the absolute coordinate position.
Specifically, an input subsystem in an operating system of the current screen returns the absolute coordinate position and the relative coordinate position of the mouse moving on the edge of the current screen to obtain the absolute coordinate position and the relative coordinate position of the mouse cursor moving on the edge of the current screen; the absolute coordinate position is the pixel absolute position of the current screen; the relative coordinate position is a coordinate position offset from the absolute coordinate position.
S13: judging whether the screen is moved to another spliced screen or not based on the absolute coordinate position and the relative coordinate position;
in a specific implementation process of the present invention, the determining whether the screen has been moved to another spliced screen based on the absolute coordinate position and the relative coordinate position includes: adding the absolute coordinate position and the relative coordinate position to obtain a coordinate addition result; judging whether the coordinate addition result is larger than the width and/or height of the current screen; when the coordinate addition result is larger than the width and/or the height of the current screen, judging that the screen is moved to another spliced screen; and when the coordinate addition result is less than or equal to the width and/or the height of the current screen, judging that the screen is not moved to another spliced screen.
Specifically, a coordinate addition result is obtained by adding the absolute coordinate position and the relative coordinate position; judging whether the coordinate addition result is larger than the width and/or height of the current screen; to determine whether it has moved to another screen of the mosaic; specifically, when the coordinate addition result is larger than the width and/or height of the current screen, it is determined that the screen has been moved to another spliced screen; and when the coordinate addition result is less than or equal to the width and/or the height of the current screen, judging that the screen is not moved to another spliced screen.
S14: if so, the current screen sends the relative coordinate position of the mouse cursor to another spliced screen, and the other spliced screen receives the relative coordinate position of the mouse cursor and forwards the relative coordinate position to an operating system.
In a specific implementation process of the present invention, when the current screen sends the relative coordinate position of the mouse cursor to another spliced screen, the method further includes: and the operating system of the current screen closes the mouse cursor displayed on the current screen.
Further, after receiving the relative coordinate position of the mouse cursor on the other spliced screen, forwarding the relative coordinate position to an operating system, including: after the relative coordinate position of the mouse cursor is received on the other spliced screen, creating a virtual mouse device at the relative coordinate position of the mouse cursor through the uinput of the operating system of the other spliced screen; and forwarding the relative coordinate position of the virtual mouse device to an operating system of the spliced other screen.
Specifically, since the mouse is connected to the current screen, at this time, the tiled screen does not receive corresponding data of the mouse, at this time, the relative coordinate position of the mouse is sent to the tiled screen through the current screen via the network cable or the serial port, and meanwhile, the operating system of the current screen closes the mouse cursor displayed on the current screen; after receiving the relative coordinate position of the mouse cursor on the other spliced screen, establishing a virtual mouse device at the relative coordinate position of the mouse cursor through the uinput of the operating system of the other spliced screen; and forwarding the relative coordinate position of the virtual mouse device to the operating system of the spliced other screen.
When the mouse still moves on the other spliced screen, the relative coordinate position of the mouse cursor is sent to the other spliced screen by always weighing the current screen, and the other spliced screen receives the relative coordinate position of the mouse cursor and then forwards the relative coordinate position to the operating system to realize screen sharing of the mouse.
In the implementation of the invention, when the mouse cursor moves to the edge of the current screen, whether another screen is spliced on the edge of the current screen is judged; if so, obtaining the absolute coordinate position and the relative coordinate position of the mouse cursor moving on the edge of the current screen; judging whether the screen is moved to another spliced screen or not based on the absolute coordinate position and the relative coordinate position; if so, the current screen sends the relative coordinate position of the mouse cursor to another spliced screen, and the other spliced screen receives the relative coordinate position of the mouse cursor and forwards the relative coordinate position to an operating system; the operation of inserting a mouse into one of the screens on the other spliced screens can be realized, and the operation efficiency is improved.
Examples
Referring to fig. 2, fig. 2 is a schematic structural component diagram of a multi-screen-based mouse sharing implementation apparatus according to an embodiment of the present invention.
As shown in fig. 2, an apparatus for implementing mouse sharing based on multiple screens includes:
the first judgment module 21: the device comprises a display screen, a mouse cursor and a control unit, wherein the display screen is used for displaying a current screen;
in the specific implementation process of the invention, the screen is connected with another spliced screen through a network cable or a serial port; and operating an operating system in the screen, wherein the operating system is a Linux system or an Android system.
Further, when the mouse cursor moves to the edge of the current screen, determining whether another screen is spliced to the edge of the current screen, including: acquiring all screens spliced with the current screen and position information, wherein the position information comprises an upper screen, a lower screen, a left screen, a right screen, an upper left oblique diagonal, an upper right oblique diagonal, a lower right oblique diagonal and a lower left oblique diagonal; acquiring the position information and the movement trend of the mouse cursor moving to the edge of the current screen; and comparing all the screens and the position information spliced by the current screen with the position information and the movement trend of the mouse cursor moving to the edge of the current screen to judge whether another screen is spliced at the edge of the current screen.
Specifically, in a mode of performing matrix splicing by using 4 screens, other screens, the position number of the current screen and the position information of the screen are stored in an operating system of the screen, the position information comprises upper, lower, left, right, upper left oblique diagonal, upper right oblique diagonal, lower right oblique diagonal and lower left oblique diagonal, the first screen at the upper left corner is assumed to be selected as the current screen, when a mouse cursor moves on the current screen, and the movement trend of the mouse is also to move to the right, and when the mouse moves to the rightmost side of the screen, the position information and the number of the other screens stored in the operating system of the current screen can be used for obtaining the spliced screen at the rightmost side.
In a specific implementation process, when the screens are directly spliced, every two screens are connected through network cables or serial port cables, and can also be connected through other data cables or interfaces for communication, which is not an example; each screen is provided with an operating system, the operating systems can be Linux systems, Android systems, Windows systems and other operating systems, the spliced screens are not required to use the same operating system, and the screens can be different operating systems.
The coordinate acquisition module 22: the method comprises the steps that when another screen is spliced at the edge of the current screen, the absolute coordinate position and the relative coordinate position of the movement of the mouse cursor on the edge of the current screen are obtained;
in a specific implementation process of the present invention, the obtaining an absolute coordinate position and a relative coordinate position of the movement of the mouse cursor on the edge of the current screen includes: the current screen returns the absolute coordinate position and the relative coordinate position of the mouse cursor moving on the edge of the current screen through an input subsystem of an operating system to obtain the absolute coordinate position and the relative coordinate position of the mouse cursor moving on the edge of the current screen; the absolute coordinate position is the pixel absolute position of the current screen; the relative coordinate position is a coordinate position offset from the absolute coordinate position.
Specifically, an input subsystem in an operating system of the current screen returns the absolute coordinate position and the relative coordinate position of the mouse moving on the edge of the current screen to obtain the absolute coordinate position and the relative coordinate position of the mouse cursor moving on the edge of the current screen; the absolute coordinate position is the pixel absolute position of the current screen; the relative coordinate position is a coordinate position offset from the absolute coordinate position.
The second determination module 23: the terminal is used for judging whether the terminal is moved to another spliced screen or not based on the absolute coordinate position and the relative coordinate position;
in a specific implementation process of the present invention, the determining whether the screen has been moved to another spliced screen based on the absolute coordinate position and the relative coordinate position includes: adding the absolute coordinate position and the relative coordinate position to obtain a coordinate addition result; judging whether the coordinate addition result is larger than the width and/or height of the current screen; when the coordinate addition result is larger than the width and/or the height of the current screen, judging that the screen is moved to another spliced screen; and when the coordinate addition result is less than or equal to the width and/or the height of the current screen, judging that the screen is not moved to another spliced screen.
Specifically, a coordinate addition result is obtained by adding the absolute coordinate position and the relative coordinate position; judging whether the coordinate addition result is larger than the width and/or height of the current screen; to determine whether it has moved to another screen of the mosaic; specifically, when the coordinate addition result is larger than the width and/or height of the current screen, it is determined that the screen has been moved to another spliced screen; and when the coordinate addition result is less than or equal to the width and/or the height of the current screen, judging that the screen is not moved to another spliced screen.
Coordinate forwarding module 24: and the current screen is used for sending the relative coordinate position of the mouse cursor to another spliced screen when the current screen is judged to be moved to the other spliced screen, and the other spliced screen receives the relative coordinate position of the mouse cursor and forwards the relative coordinate position to an operating system.
In a specific implementation process of the present invention, when the current screen sends the relative coordinate position of the mouse cursor to another spliced screen, the method further includes: and the operating system of the current screen closes the mouse cursor displayed on the current screen.
Further, after receiving the relative coordinate position of the mouse cursor on the other spliced screen, forwarding the relative coordinate position to an operating system, including: after the relative coordinate position of the mouse cursor is received on the other spliced screen, creating a virtual mouse device at the relative coordinate position of the mouse cursor through the uinput of the operating system of the other spliced screen; and forwarding the relative coordinate position of the virtual mouse device to an operating system of the spliced other screen.
Specifically, since the mouse is connected to the current screen, at this time, the tiled screen does not receive corresponding data of the mouse, at this time, the relative coordinate position of the mouse is sent to the tiled screen through the current screen via the network cable or the serial port, and meanwhile, the operating system of the current screen closes the mouse cursor displayed on the current screen; after receiving the relative coordinate position of the mouse cursor on the other spliced screen, establishing a virtual mouse device at the relative coordinate position of the mouse cursor through the uinput of the operating system of the other spliced screen; and forwarding the relative coordinate position of the virtual mouse device to the operating system of the spliced other screen.
When the mouse still moves on the other spliced screen, the relative coordinate position of the mouse cursor is sent to the other spliced screen by always weighing the current screen, and the other spliced screen receives the relative coordinate position of the mouse cursor and then forwards the relative coordinate position to the operating system to realize screen sharing of the mouse.
In the implementation of the invention, when the mouse cursor moves to the edge of the current screen, whether another screen is spliced on the edge of the current screen is judged; if so, obtaining the absolute coordinate position and the relative coordinate position of the mouse cursor moving on the edge of the current screen; judging whether the screen is moved to another spliced screen or not based on the absolute coordinate position and the relative coordinate position; if so, the current screen sends the relative coordinate position of the mouse cursor to another spliced screen, and the other spliced screen receives the relative coordinate position of the mouse cursor and forwards the relative coordinate position to an operating system; the operation of inserting a mouse into one of the screens on the other spliced screens can be realized, and the operation efficiency is improved.
Examples
Referring to fig. 3, fig. 3 is a schematic structural component diagram of a multi-screen-based mouse sharing implementation system according to an embodiment of the present invention.
Referring to fig. 3, a multi-screen-based mouse sharing implementation system includes at least two screens, and each two screens are connected by a network cable or a serial port cable; an operating system is respectively operated in each screen, and the operating system is a Linux system or an Android system;
the at least two screens are configured to perform the mouse sharing implementation method of any one of the above.
In the specific implementation process of the present invention, the specific implementation manner of the multi-screen-based mouse sharing implementation system may refer to the above embodiments, and is not described herein again.
In the implementation of the invention, when the mouse cursor moves to the edge of the current screen, whether another screen is spliced on the edge of the current screen is judged; if so, obtaining the absolute coordinate position and the relative coordinate position of the mouse cursor moving on the edge of the current screen; judging whether the screen is moved to another spliced screen or not based on the absolute coordinate position and the relative coordinate position; if so, the current screen sends the relative coordinate position of the mouse cursor to another spliced screen, and the other spliced screen receives the relative coordinate position of the mouse cursor and forwards the relative coordinate position to an operating system; the operation of inserting a mouse into one of the screens on the other spliced screens can be realized, and the operation efficiency is improved.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic or optical disk, or the like.
In addition, the method, the device and the system for realizing multi-screen-based mouse sharing according to the embodiments of the present invention are described in detail, and a specific embodiment is used herein to explain the principle and the implementation manner of the present invention, and the description of the embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (10)
1. A multi-screen-based mouse sharing implementation method is characterized by comprising the following steps:
when a mouse cursor moves to the edge of a current screen, judging whether the edge of the current screen is spliced with another screen or not;
if so, obtaining the absolute coordinate position and the relative coordinate position of the mouse cursor moving on the edge of the current screen;
judging whether the screen is moved to another spliced screen or not based on the absolute coordinate position and the relative coordinate position;
if so, the current screen sends the relative coordinate position of the mouse cursor to another spliced screen, and the other spliced screen receives the relative coordinate position of the mouse cursor and forwards the relative coordinate position to an operating system.
2. The method for implementing mouse sharing according to claim 1, wherein the screen is connected to another spliced screen through a network cable or a serial port.
3. The method for implementing mouse sharing according to claim 1, wherein an operating system runs in the screen, and the operating system is a Linux system or an Android system.
4. The method of claim 1, wherein the determining whether another screen is spliced to the edge of the current screen when the mouse cursor moves to the edge of the current screen comprises:
acquiring all screens spliced with the current screen and position information, wherein the position information comprises an upper screen, a lower screen, a left screen, a right screen, an upper left oblique diagonal, an upper right oblique diagonal, a lower right oblique diagonal and a lower left oblique diagonal;
acquiring the position information and the movement trend of the mouse cursor moving to the edge of the current screen;
and comparing all the screens and the position information spliced by the current screen with the position information and the movement trend of the mouse cursor moving to the edge of the current screen to judge whether another screen is spliced at the edge of the current screen.
5. The method of claim 1, wherein the obtaining of the absolute coordinate position and the relative coordinate position of the mouse cursor moving on the edge of the current screen comprises:
the current screen returns the absolute coordinate position and the relative coordinate position of the mouse cursor moving on the edge of the current screen through an input subsystem of an operating system to obtain the absolute coordinate position and the relative coordinate position of the mouse cursor moving on the edge of the current screen;
the absolute coordinate position is the pixel absolute position of the current screen; the relative coordinate position is a coordinate position offset from the absolute coordinate position.
6. The method of claim 1, wherein the determining whether to move to another spliced screen based on the absolute coordinate position and the relative coordinate position comprises:
adding the absolute coordinate position and the relative coordinate position to obtain a coordinate addition result;
judging whether the coordinate addition result is larger than the width and/or height of the current screen;
when the coordinate addition result is larger than the width and/or the height of the current screen, judging that the screen is moved to another spliced screen;
and when the coordinate addition result is less than or equal to the width and/or the height of the current screen, judging that the screen is not moved to another spliced screen.
7. The method of claim 1, wherein the current screen sends the relative coordinate position of the mouse cursor to another screen to be spliced, and further comprising:
and the operating system of the current screen closes the mouse cursor displayed on the current screen.
8. The method of claim 1, wherein the step of forwarding the relative coordinate position of the mouse cursor received on the other spliced screen to an operating system comprises:
after the relative coordinate position of the mouse cursor is received on the other spliced screen, creating a virtual mouse device at the relative coordinate position of the mouse cursor through the uinput of the operating system of the other spliced screen;
and forwarding the relative coordinate position of the virtual mouse device to an operating system of the spliced other screen.
9. A multi-screen-based mouse sharing implementation device is characterized in that the device comprises:
a first judgment module: the device comprises a display screen, a mouse cursor and a control unit, wherein the display screen is used for displaying a current screen;
a coordinate acquisition module: the method comprises the steps that when another screen is spliced at the edge of the current screen, the absolute coordinate position and the relative coordinate position of the movement of the mouse cursor on the edge of the current screen are obtained;
a second judging module: the terminal is used for judging whether the terminal is moved to another spliced screen or not based on the absolute coordinate position and the relative coordinate position;
a coordinate forwarding module: and the current screen is used for sending the relative coordinate position of the mouse cursor to another spliced screen when the current screen is judged to be moved to the other spliced screen, and the other spliced screen receives the relative coordinate position of the mouse cursor and forwards the relative coordinate position to an operating system.
10. A mouse sharing implementation system based on multiple screens is characterized by comprising at least two screens, wherein each two screens are connected through a network cable or a serial port cable; an operating system is respectively operated in each screen, and the operating system is a Linux system or an Android system;
the at least two screens are configured to perform the mouse sharing implementation method of any one of claims 1-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911185148.6A CN110989952B (en) | 2019-11-27 | 2019-11-27 | Multi-screen-based mouse sharing implementation method, device and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911185148.6A CN110989952B (en) | 2019-11-27 | 2019-11-27 | Multi-screen-based mouse sharing implementation method, device and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110989952A true CN110989952A (en) | 2020-04-10 |
CN110989952B CN110989952B (en) | 2021-08-27 |
Family
ID=70087520
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911185148.6A Active CN110989952B (en) | 2019-11-27 | 2019-11-27 | Multi-screen-based mouse sharing implementation method, device and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110989952B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112346586A (en) * | 2020-10-27 | 2021-02-09 | 深圳市东微智能科技股份有限公司 | Mouse display control device and distributed splicing display system |
WO2022206751A1 (en) * | 2021-03-30 | 2022-10-06 | 华为技术有限公司 | Cross-device collaboration method for input device multiplexing and electronic device |
WO2022252733A1 (en) * | 2021-06-02 | 2022-12-08 | Tcl通讯(宁波)有限公司 | Method and apparatus for mouse sharing by multiple devices, terminal device, and storage medium |
CN116301470A (en) * | 2023-02-14 | 2023-06-23 | 广东保伦电子股份有限公司 | Mouse cursor position prompting method crossing multiple display pictures |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101853086A (en) * | 2010-05-06 | 2010-10-06 | 广东威创视讯科技股份有限公司 | Computer matching display system as well as desktop control switcher and method thereof |
US20110234486A1 (en) * | 2003-12-19 | 2011-09-29 | Fujitsu Component Limited | Switching device and switching methods of the same |
CN102411487A (en) * | 2011-10-28 | 2012-04-11 | 广东威创视讯科技股份有限公司 | Desktop control method and device |
CN106293160A (en) * | 2016-09-08 | 2017-01-04 | 青岛海信电器股份有限公司 | The method and device of mouse pointer switching between a kind of multi-display |
CN107153520A (en) * | 2017-05-08 | 2017-09-12 | 广州美凯信息技术股份有限公司 | Multi-screen cooperation control method, device and multi-screen management system |
CN110007772A (en) * | 2017-12-29 | 2019-07-12 | 宏正自动科技股份有限公司 | Resource sharing device and its control method |
CN110389672A (en) * | 2018-04-13 | 2019-10-29 | 锋厚科技股份有限公司 | Multicomputer switch system |
-
2019
- 2019-11-27 CN CN201911185148.6A patent/CN110989952B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110234486A1 (en) * | 2003-12-19 | 2011-09-29 | Fujitsu Component Limited | Switching device and switching methods of the same |
CN101853086A (en) * | 2010-05-06 | 2010-10-06 | 广东威创视讯科技股份有限公司 | Computer matching display system as well as desktop control switcher and method thereof |
CN102411487A (en) * | 2011-10-28 | 2012-04-11 | 广东威创视讯科技股份有限公司 | Desktop control method and device |
CN106293160A (en) * | 2016-09-08 | 2017-01-04 | 青岛海信电器股份有限公司 | The method and device of mouse pointer switching between a kind of multi-display |
CN107153520A (en) * | 2017-05-08 | 2017-09-12 | 广州美凯信息技术股份有限公司 | Multi-screen cooperation control method, device and multi-screen management system |
CN110007772A (en) * | 2017-12-29 | 2019-07-12 | 宏正自动科技股份有限公司 | Resource sharing device and its control method |
CN110389672A (en) * | 2018-04-13 | 2019-10-29 | 锋厚科技股份有限公司 | Multicomputer switch system |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112346586A (en) * | 2020-10-27 | 2021-02-09 | 深圳市东微智能科技股份有限公司 | Mouse display control device and distributed splicing display system |
WO2022206751A1 (en) * | 2021-03-30 | 2022-10-06 | 华为技术有限公司 | Cross-device collaboration method for input device multiplexing and electronic device |
WO2022252733A1 (en) * | 2021-06-02 | 2022-12-08 | Tcl通讯(宁波)有限公司 | Method and apparatus for mouse sharing by multiple devices, terminal device, and storage medium |
CN116301470A (en) * | 2023-02-14 | 2023-06-23 | 广东保伦电子股份有限公司 | Mouse cursor position prompting method crossing multiple display pictures |
CN116301470B (en) * | 2023-02-14 | 2024-02-09 | 广东保伦电子股份有限公司 | Mouse cursor position prompting method crossing multiple display pictures |
Also Published As
Publication number | Publication date |
---|---|
CN110989952B (en) | 2021-08-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110989952B (en) | Multi-screen-based mouse sharing implementation method, device and system | |
KR102463304B1 (en) | Video processing method and device, electronic device, computer-readable storage medium and computer program | |
EP2767905A1 (en) | Terminal apparatus, server, browser of terminal apparatus operating system and method of operating browser | |
CN103680470A (en) | Large screen control image display method and system | |
CN106909333B (en) | Screen configuration method and device for display screen | |
CN105491452A (en) | Multi-video-window hierarchy switching method and device | |
CN104102463A (en) | Electronic display screen and method for realizing automatic screen splicing | |
US20220284377A1 (en) | Method and apparatus for task group positioning | |
US20190037266A1 (en) | Image receiving/reproducing device, image generating/transmitting device, display system, image receiving/reproducing method, image generating/transmitting method, and computer readable medium | |
WO2023005050A1 (en) | Fully automatic multi-screen splicing method, device, and storage medium | |
CN110012306A (en) | Display methods, device, equipment and the storage medium of barrage | |
CN109976689B (en) | Method and device for rapidly configuring distributed splicing processor by using smart phone | |
TWI497400B (en) | Method of auto-recognizing for cursor in monitors | |
CN106775690B (en) | Recording method and device based on gdi/gdi + window coverage | |
CN113973133A (en) | USB equipment redirection method and device, electronic equipment and storage medium | |
US9354772B2 (en) | Method and device for movement of image object | |
CN112309311B (en) | Display control method, device, display control card and computer readable medium | |
CN109089060B (en) | Multi-channel signal source playing method and system | |
CN111930326A (en) | Image processing method, device and system | |
CN112995538B (en) | Central control equipment control splicer and multimedia signal source on-demand display method and equipment | |
US20200371822A1 (en) | Method and device for displaying, on a local terminal, an application executed on a remote server by means of a remote office protocol | |
CN112948730B (en) | Webpage data display method and device, storage medium and electronic equipment | |
CN104035813A (en) | Cross-platform interaction detection method and device | |
WO2023082440A1 (en) | Fault reproduction method and apparatus, and device and readable storage medium | |
CN111240618B (en) | Multi-user multi-screen display method and device based on android |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: Room 238, room 406, No.1, Yichuang street, Huangpu District, Guangzhou, Guangdong 510000 Patentee after: Guangzhou langguo Electronic Technology Co.,Ltd. Address before: 510000 unit a and B, zone 02, 4th floor, No. 136, Gaopu Road, high tech Development Zone, Tianhe District, Guangzhou City, Guangdong Province Patentee before: GUANGZHOU LANGO ELECTRONIC SCIENCE & TECHNOLOGY Co.,Ltd. |
|
CP03 | Change of name, title or address |