CN112558850A - Multi-display mouse seamless moving method and device, computer equipment and medium - Google Patents

Multi-display mouse seamless moving method and device, computer equipment and medium Download PDF

Info

Publication number
CN112558850A
CN112558850A CN202011487247.2A CN202011487247A CN112558850A CN 112558850 A CN112558850 A CN 112558850A CN 202011487247 A CN202011487247 A CN 202011487247A CN 112558850 A CN112558850 A CN 112558850A
Authority
CN
China
Prior art keywords
mouse
desktop
actual
module
desktops
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011487247.2A
Other languages
Chinese (zh)
Other versions
CN112558850B (en
Inventor
李树辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Beacon Display Technology Co ltd
Original Assignee
Shenzhen Beacon Display Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Beacon Display Technology Co ltd filed Critical Shenzhen Beacon Display Technology Co ltd
Priority to CN202011487247.2A priority Critical patent/CN112558850B/en
Publication of CN112558850A publication Critical patent/CN112558850A/en
Application granted granted Critical
Publication of CN112558850B publication Critical patent/CN112558850B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/452Remote windowing, e.g. X-Window System, desktop virtualisation

Abstract

The invention discloses a multi-display mouse seamless moving method, a device, computer equipment and a medium, wherein the method comprises the following steps: establishing a virtual desktop according to the actual desktops of all the displays; monitoring mouse movement information in the virtual desktop; judging whether the newly arrived position of the mouse is in the current virtual desktop or not according to the movement information of the mouse; if the newly arrived position of the mouse is judged not to be in the current virtual desktop according to the mouse movement information, calculating the coordinate of the newly arrived position of the mouse on the actual desktop; and switching the mouse to a corresponding position according to the coordinates of the newly arrived position of the mouse on the actual desktop. The invention solves the problem that the free movement of the mouse is inconvenient under the multi-screen environment of operators, improves the smoothness and rapidity of the multi-screen movement of the mouse, and improves the use experience of users.

Description

Multi-display mouse seamless moving method and device, computer equipment and medium
Technical Field
The invention relates to the field of multi-screen display, in particular to a multi-display mouse seamless moving method, a multi-display mouse seamless moving device, computer equipment and a multi-display mouse seamless moving medium.
Background
With the improvement of working environment of people and the use of a large amount of software technologies, the requirement on the function of an expansion desktop of a display device is more and more, and due to the fact that the display coordinates and the size resolution of the display are greatly different in a plurality of displays, a serious problem exists when a mouse is moved from one display to other displays, if the resolutions of two adjacent display desktops are different, the mouse can be moved from one display to the other display only by moving to a specific position on a wide or long desktop to a narrow or short desktop, and therefore a great obstacle is caused to the use operation, and a lot of unnecessary time is wasted.
However, in practical application, a mouse is often used for moving among a plurality of screens, the frequency is quite high, and due to the fact that a special position is formed when two screens are moved, the mouse can be moved to another screen, serious discomfort is brought to workers who are quite painfully at all, and the workers are easy to be irritated and worried in mind.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a multi-display mouse seamless moving method, a multi-display mouse seamless moving device, a multi-display mouse seamless moving computer equipment and a multi-display mouse seamless moving medium.
In order to achieve the purpose, the invention adopts the following technical scheme:
in a first aspect, a method for seamless movement of a multi-display mouse, the method comprising:
establishing a virtual desktop according to the actual desktops of all the displays;
monitoring mouse movement information in the virtual desktop;
judging whether the newly arrived position of the mouse is in the current virtual desktop or not according to the movement information of the mouse;
if the newly arrived position of the mouse is judged not to be in the current virtual desktop according to the mouse movement information, calculating the coordinate of the newly arrived position of the mouse on the actual desktop;
and switching the mouse to a corresponding position according to the coordinates of the newly arrived position of the mouse on the actual desktop.
The further technical scheme is as follows: the step of establishing a virtual desktop according to the actual desktops of all the displays specifically includes:
reading the layout of the actual desktop of all the displays;
acquiring the resolution of all actual desktops according to the layout of all actual desktops;
judging whether all the actual desktops are horizontally distributed or not;
if all the actual desktops are distributed horizontally, selecting the height of the highest desktop in all the actual desktops as the height of each desktop, and establishing an affine relation and an inverse affine relation by combining the width of each desktop and the actual height and width of each desktop;
and if all the actual desktops are not in horizontal distribution, selecting the width of the widest desktop in all the actual desktops as the width of each desktop, and establishing an affine relation and an inverse affine relation by combining the height of each desktop and the actual height and width of each desktop.
The further technical scheme is as follows: the step of judging whether the newly arrived position of the mouse is in the current virtual desktop according to the mouse movement information specifically comprises the following steps:
acquiring the current coordinate and the offset coordinate of the mouse;
combining the current coordinate with the offset coordinate to determine a new coordinate of the mouse;
calling an affine relation;
and calculating the corresponding slave coordinates of the new coordinates of the mouse in the virtual desktop through an affine relational expression.
The further technical scheme is as follows: the step of calculating the coordinates of the newly arrived position of the mouse on the actual desktop specifically includes:
calling an inverse affine relation;
and calculating the coordinates of the slave coordinates of the mouse on the actual desktop through an inverse affine relation.
In a second aspect, a multi-display mouse seamless moving device comprises an establishing unit, a monitoring unit, a judging unit, a calculating unit and a switching unit;
the establishing unit is used for establishing a virtual desktop according to the actual desktops of all the displays;
the monitoring unit is used for monitoring mouse movement information in the virtual desktop;
the judging unit is used for judging whether the newly arrived position of the mouse is positioned in the current virtual desktop or not according to the mouse movement information;
the computing unit is used for computing the coordinates of the newly arrived position of the mouse on the actual desktop;
and the switching unit is used for switching the mouse to a corresponding position according to the coordinate of the newly arrived position of the mouse on the actual desktop.
The further technical scheme is as follows: the establishing unit comprises a reading module, a first obtaining module, a judging module, a first selecting module and a second selecting module;
the reading module is used for reading the layout of the actual desktop of all the displays;
the first acquisition module is used for acquiring the resolutions of all the actual desktops according to the layouts of all the actual desktops;
the judging module is used for judging whether all the actual desktops are horizontally distributed or not;
the first selecting module is used for selecting the height of the highest desktop in all the actual desktops as the height of each desktop, and establishing an affine relation and an inverse affine relation by combining the width of each desktop and the actual height and width of each desktop;
and the second selection module is used for selecting the width of the widest desktop in all the actual desktops as the width of each desktop, and establishing an affine relation and an inverse affine relation by combining the height of each desktop and the actual height and width of each desktop.
The further technical scheme is as follows: the judging unit comprises a second obtaining module, a first calculating module, a first calling module and a second calculating module;
the second acquisition module is used for acquiring the current coordinate and the offset coordinate of the mouse;
the first calculation module is used for combining the current coordinate and the offset coordinate to determine a new coordinate of the mouse;
the first calling module is used for calling an affine relational expression;
and the second calculation module is used for calculating a corresponding slave coordinate of the new coordinate of the mouse in the virtual desktop through an affine relational expression.
The further technical scheme is as follows: the computing unit comprises the second calling module and a third computing module;
the second calling module is used for calling an inverse affine relation;
and the third calculation module is used for calculating the coordinates of the slave coordinates of the mouse on the actual desktop through an inverse affine relational expression.
In a third aspect, a computer device comprises a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the multi-display mouse seamless movement method steps as described above when executing the computer program.
In a fourth aspect, a storage medium stores a computer program comprising program instructions that, when executed by a processor, cause the processor to perform the multi-display mouse seamless movement method steps as described above.
Compared with the prior art, the invention has the beneficial effects that: the invention utilizes the actual resolution and distribution conditions of multiple desktops, establishes a virtualized desktop with equal length in horizontal distribution or equal width in vertical distribution by an affine mode, monitors the current position of the mouse and the position to be moved in real time, determines the position of the mouse to be moved on the virtualized desktop and the relation between the position of the mouse and each virtual desktop by a judgment system, and adjusts the mouse into the actual desktop according to the affine relation between the virtual desktop and the actual desktop, thereby achieving the seamless rapid movement of the mouse between the multiple desktops. The problem of the operating personnel under the multi-screen environment, the mouse freely move inconveniently is solved, the smoothness and the rapidity of the mouse moving in the multi-screen mode are improved, and the use experience of a user is improved.
The foregoing description is only an overview of the technical solutions of the present invention, and in order to make the technical means of the present invention more clearly understood, the present invention may be implemented according to the content of the description, and in order to make the above and other objects, features, and advantages of the present invention more apparent, the following detailed description will be given of preferred embodiments.
Drawings
FIG. 1 is a first flowchart of a seamless moving method for a multi-display mouse according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a second embodiment of a method for seamless mouse movement with multiple displays according to the present invention;
FIG. 3 is a flowchart III illustrating a seamless moving method of a multi-display mouse according to an embodiment of the present invention;
FIG. 4 is a fourth flowchart illustrating a method for seamlessly moving a multi-display mouse according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a virtual desktop created in a horizontal distribution in an embodiment of the invention;
FIG. 6 is a first schematic block diagram of a multi-display mouse seamless mobility device according to an embodiment of the present invention;
FIG. 7 is a block diagram illustrating a second exemplary embodiment of a multi-display mouse seamless mobility device according to the present invention;
FIG. 8 is a block diagram illustrating a third exemplary embodiment of a multi-display mouse seamless mobility device according to the present invention;
FIG. 9 is a fourth schematic block diagram of a multi-display mouse seamless mobility device according to an embodiment of the present invention;
FIG. 10 is a schematic block diagram of a computer device of the present invention.
Detailed Description
In order to more fully understand the technical content of the present invention, the technical solution of the present invention will be further described and illustrated with reference to the following specific embodiments, but not limited thereto.
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 some, not all, embodiments of the present invention. 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.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
The method is suitable for the mobile equipment and scenes of the mouse in any multi-display field, and comprises two or more seamless moving technologies between adjacent desktops in the multi-screen application of the extended desktops. Particularly for use in medical diagnostic scenarios, the present invention will be described in the following with specific examples.
Referring to fig. 1, the method for seamlessly moving a multi-display mouse includes the following steps:
s10, establishing a virtual desktop according to the actual desktops of all the displays, and executing the step S20.
The virtual desktop is established on the premise of realizing seamless movement of the mouse. Referring to fig. 2, in some embodiments, such as the present embodiment, step S10 specifically includes the following steps:
s101, reading the layout of the actual desktop of all the displays, and executing a step S102;
s102, acquiring the resolutions of all the actual desktops according to the layouts of all the actual desktops, and executing a step S103;
s103, judging whether all the actual desktops are horizontally distributed, if so, executing a step S104, and if not, executing a step S105;
s104, selecting the height of the highest desktop in all the actual desktops as the height of each desktop, and establishing an affine relation and an inverse affine relation by combining the width of each desktop and the actual height and width of each desktop;
s105, selecting the width of the widest desktop of all the actual desktops as the width of each desktop, and establishing an affine relation and an inverse affine relation by combining the height of each desktop and the actual height and width of each desktop.
For steps S101 to S105, in this embodiment, taking the case that the desktop of the two displays performs mouse seamless movement as an example, first reading the layout of the two desktops, then reading the respective resolutions of the two desktops according to the layout of the two desktops, and determining the relative positions of the two desktops according to the actual situation, in this embodiment, please refer to fig. 5, fig. 5 shows a case that the desktops of the two displays (named as a first desktop and a second desktop respectively) are horizontally distributed, where the resolution of the first desktop is 1024x726 and the resolution of the second desktop is 1920x1080, therefore, the height of the highest desktop of the two desktops is selected to be the height of the two desktops, and the widths of the two desktops keep consistent with the original width and establish an affine relation and an inverse affine relation with the actual height and the actual width of each desktop, thereby constructing a virtual desktop. As can be seen from fig. 5, the height of the second desktop is regarded as the height of the first desktop, and thus the resolution of the first desktop in the virtual desktop layout becomes 1024x 1080. In addition, the established affine relation and inverse affine relation are as follows:
affine relation:
Figure BDA0002839680700000081
inverse affine relation:
Figure BDA0002839680700000082
wherein, (u, v) is the coordinate of the virtual desktop, (x, y) is the coordinate of the actual desktop, and the coefficients a, b can be solved by four corners of the virtual desktop and four corners of the original desktop.
S20, monitoring the mouse moving information in the virtual desktop, and executing the step S30.
For step S20, the monitoring of the mouse movement information is to determine the position premise of the mouse.
S30, judging whether the newly arrived position of the mouse is in the current virtual desktop according to the mouse movement information, if so, executing a step S20, otherwise, executing a step S40;
referring to fig. 3, step S30 specifically includes the following steps:
s301, acquiring the current coordinate and the offset coordinate of the mouse, and executing the step S302;
s302, combining the current coordinate and the offset coordinate to determine a new coordinate of the mouse, and executing the step S303;
s303, calling an affine relational expression, and executing the step S304;
and S304, calculating a corresponding slave coordinate of the new coordinate of the mouse in the virtual desktop through an affine relational expression.
For steps S301 to S304, the mouse offset coordinates (Δ x, Δ y) may be obtained by first installing a mouse hook in the system of the display, the current coordinates (x0, y0) of the mouse may be known by the system of the display, the new coordinates of the mouse may be obtained by adding the two coordinates, the slave coordinates (u, v) of the virtual desktop may be calculated according to the new coordinates by using the affine relation of the same desktop as the current coordinates (x0, y0), and it may be determined from the slave coordinates which virtual desktop is located on which virtual desktop, if the virtual desktop corresponding to (x0, y0) is located, no modification may be made to the offset value, and if the virtual desktop corresponding to (x0, y0) is not located within the same virtual desktop, the corresponding to (x',v) may be obtained by using the inverse affine relation of the same virtual desktop as the slave coordinates (u, v) in the actual desktop, y').
S40, calculating the coordinates of the newly arrived position of the mouse on the actual desktop, and executing the step S50;
referring to fig. 4, step S40 specifically includes the following steps:
s401, calling an inverse affine relation;
and S402, calculating the coordinates of the slave coordinates of the mouse on the actual desktop through an inverse affine relational expression.
For steps S401-S402, the corresponding coordinates (x ', y') in the real desktop are obtained by using the inverse affine relation of the virtual desktop that is the same as the slave coordinates (u, v).
And S50, switching the mouse to the corresponding position according to the coordinates of the newly arrived position of the mouse on the actual desktop.
Comparing with step S50, the seamless fast mouse switching between desktops is completed by modifying the mouse to move to the current (x ', y') position.
The invention utilizes the actual resolution and distribution conditions of multiple desktops, establishes a virtualized desktop with equal length in horizontal distribution or equal width in vertical distribution by an affine mode, monitors the current position of the mouse and the position to be moved in real time, determines the position of the mouse to be moved on the virtualized desktop and the relation between the position of the mouse and each virtual desktop by a judgment system, and adjusts the mouse into the actual desktop according to the affine relation between the virtual desktop and the actual desktop, thereby achieving the seamless rapid movement of the mouse between the multiple desktops. The problem of the operating personnel under the multi-screen environment, the mouse freely move inconveniently is solved, the smoothness and the rapidity of the mouse moving in the multi-screen mode are improved, and the use experience of a user is improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Corresponding to the foregoing method for seamlessly moving a multi-display mouse, an embodiment of the present invention further provides a device for seamlessly moving a multi-display mouse, referring to fig. 6, where the device includes an establishing unit 1, a monitoring unit 2, a determining unit 3, a calculating unit 4, and a switching unit 5;
the system comprises an establishing unit 1, a display unit and a display unit, wherein the establishing unit is used for establishing a virtual desktop according to actual desktops of all displays;
the monitoring unit 2 is used for monitoring mouse movement information in the virtual desktop;
the judging unit 3 is used for judging whether the newly arrived position of the mouse is in the current virtual desktop according to the mouse movement information;
the calculating unit 4 is used for calculating the coordinates of the newly arrived position of the mouse on the actual desktop;
and the switching unit 5 is used for switching the mouse to a corresponding position according to the coordinates of the newly arrived position of the mouse on the actual desktop.
Further, referring to fig. 7, the establishing unit 1 includes a reading module 11, a first obtaining module 12, a judging module 13, a first selecting module 14, and a second selecting module 15;
a reading module 11, configured to read layouts of actual desktops of all displays;
the first obtaining module 12 is configured to obtain resolutions of all actual desktops according to layouts of all actual desktops;
the judging module 13 is used for judging whether all the actual desktops are horizontally distributed;
the first selection module 14 is configured to select the height of the highest desktop from all the actual desktops as the height of each desktop, and establish an affine relationship and an inverse affine relationship by combining the width of each desktop and the actual height and width of each desktop;
and the second selecting module 15 is configured to select a width of the widest desktop of all the actual desktops as a width of each desktop, and establish an affine relation and an inverse affine relation by combining the height of each desktop and the actual height and width of each desktop.
Further, referring to fig. 8, the determining unit 3 includes a second obtaining module 31, a first calculating module 32, a first retrieving module 33 and a second calculating module 34;
a second obtaining module 31, configured to obtain a current coordinate and an offset coordinate of the mouse;
the first calculation module 32 is used for combining the current coordinate and the offset coordinate to determine a new coordinate of the mouse;
a first retrieving module 33, configured to retrieve an affine relation;
and the second calculating module 34 is used for calculating corresponding slave coordinates of the new coordinates of the mouse in the virtual desktop through an affine relation.
Further, referring to fig. 9, the calculating unit 4 includes a second retrieving module 41 and a third calculating module 42;
a second retrieving module 41, configured to retrieve an inverse affine relation;
and the third calculating module 42 is used for calculating the coordinates of the slave coordinates of the mouse on the actual desktop through an inverse affine relation.
As shown in fig. 10, the embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements the steps of the multi-display mouse seamless moving method when executing the computer program.
The computer device 700 may be a terminal or a server. The computer device 700 includes a processor 720, memory, and a network interface 750, which are connected by a system bus 710, where the memory may include non-volatile storage media 730 and internal memory 740.
The non-volatile storage medium 730 may store an operating system 731 and computer programs 732. The computer program 732, when executed, causes the processor 720 to perform any of a variety of methods for seamless movement of a multi-display mouse.
The processor 720 is used to provide computing and control capabilities, supporting the operation of the overall computer device 700.
The internal memory 740 provides an environment for the execution of the computer program 732 in the non-volatile storage medium 730, and when the computer program 732 is executed by the processor 720, the processor 720 can be enabled to perform any one of the methods for seamless movement of a multi-display mouse.
The network interface 750 is used for network communication such as sending assigned tasks and the like. Those skilled in the art will appreciate that the configuration shown in fig. 10 is a block diagram of only a portion of the configuration relevant to the present teachings and is not intended to limit the computing device 700 to which the present teachings may be applied, and that a particular computing device 700 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components. Wherein the processor 720 is configured to execute the program code stored in the memory to perform the following steps:
establishing a virtual desktop according to the actual desktops of all the displays;
monitoring mouse movement information in the virtual desktop;
judging whether the newly arrived position of the mouse is in the current virtual desktop or not according to the movement information of the mouse;
if the newly arrived position of the mouse is judged not to be in the current virtual desktop according to the mouse movement information, calculating the coordinate of the newly arrived position of the mouse on the actual desktop;
and switching the mouse to a corresponding position according to the coordinates of the newly arrived position of the mouse on the actual desktop.
The further technical scheme is as follows: the step of establishing a virtual desktop according to the actual desktops of all the displays specifically includes:
reading the layout of the actual desktop of all the displays;
acquiring the resolution of all actual desktops according to the layout of all actual desktops;
judging whether all the actual desktops are horizontally distributed or not;
if all the actual desktops are distributed horizontally, selecting the height of the highest desktop in all the actual desktops as the height of each desktop, and establishing an affine relation and an inverse affine relation by combining the width of each desktop and the actual height and width of each desktop;
and if all the actual desktops are not in horizontal distribution, selecting the width of the widest desktop in all the actual desktops as the width of each desktop, and establishing an affine relation and an inverse affine relation by combining the height of each desktop and the actual height and width of each desktop.
The further technical scheme is as follows: the step of judging whether the newly arrived position of the mouse is in the current virtual desktop according to the mouse movement information specifically comprises the following steps:
acquiring the current coordinate and the offset coordinate of the mouse;
combining the current coordinate with the offset coordinate to determine a new coordinate of the mouse;
calling an affine relation;
and calculating the corresponding slave coordinates of the new coordinates of the mouse in the virtual desktop through an affine relational expression.
The further technical scheme is as follows: the step of calculating the coordinates of the newly arrived position of the mouse on the actual desktop specifically includes:
calling an inverse affine relation;
and calculating the coordinates of the slave coordinates of the mouse on the actual desktop through an inverse affine relation.
It should be understood that, in the embodiment of the present Application, the Processor 720 may be a Central Processing Unit (CPU), and the Processor 720 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Those skilled in the art will appreciate that the configuration of computer device 700 depicted in FIG. 10 is not intended to be limiting of computer device 700 and may include more or less components than those shown, or some components in combination, or a different arrangement of components.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present invention may be implemented in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the above-mentioned apparatus may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical functional division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another device, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The technical contents of the present invention are further illustrated by the examples only for the convenience of the reader, but the embodiments of the present invention are not limited thereto, and any technical extension or re-creation based on the present invention is protected by the present invention. The protection scope of the invention is subject to the claims.

Claims (10)

1. A method for seamless movement of a multi-display mouse, the method comprising:
establishing a virtual desktop according to the actual desktops of all the displays;
monitoring mouse movement information in the virtual desktop;
judging whether the newly arrived position of the mouse is in the current virtual desktop or not according to the movement information of the mouse;
if the newly arrived position of the mouse is judged not to be in the current virtual desktop according to the mouse movement information, calculating the coordinate of the newly arrived position of the mouse on the actual desktop;
and switching the mouse to a corresponding position according to the coordinates of the newly arrived position of the mouse on the actual desktop.
2. The method for seamlessly moving a multi-display mouse according to claim 1, wherein the step of establishing a virtual desktop according to the actual desktops of all the displays specifically comprises:
reading the layout of the actual desktop of all the displays;
acquiring the resolution of all actual desktops according to the layout of all actual desktops;
judging whether all the actual desktops are horizontally distributed or not;
if all the actual desktops are distributed horizontally, selecting the height of the highest desktop in all the actual desktops as the height of each desktop, and establishing an affine relation and an inverse affine relation by combining the width of each desktop and the actual height and width of each desktop;
and if all the actual desktops are not in horizontal distribution, selecting the width of the widest desktop in all the actual desktops as the width of each desktop, and establishing an affine relation and an inverse affine relation by combining the height of each desktop and the actual height and width of each desktop.
3. The method for seamlessly moving a multi-display mouse according to claim 2, wherein the step of determining whether the newly arrived position of the mouse is located in the current virtual desktop according to the mouse movement information specifically comprises:
acquiring the current coordinate and the offset coordinate of the mouse;
combining the current coordinate with the offset coordinate to determine a new coordinate of the mouse;
calling an affine relation;
and calculating the corresponding slave coordinates of the new coordinates of the mouse in the virtual desktop through an affine relational expression.
4. The method for seamlessly moving a multi-display mouse according to claim 3, wherein the step of calculating the coordinates of the newly arrived position of the mouse on the actual desktop specifically comprises:
calling an inverse affine relation;
and calculating the coordinates of the slave coordinates of the mouse on the actual desktop through an inverse affine relation.
5. The multi-display mouse seamless moving device is characterized by comprising an establishing unit, a monitoring unit, a judging unit, a calculating unit and a switching unit;
the establishing unit is used for establishing a virtual desktop according to the actual desktops of all the displays;
the monitoring unit is used for monitoring mouse movement information in the virtual desktop;
the judging unit is used for judging whether the newly arrived position of the mouse is positioned in the current virtual desktop or not according to the mouse movement information;
the computing unit is used for computing the coordinates of the newly arrived position of the mouse on the actual desktop;
and the switching unit is used for switching the mouse to a corresponding position according to the coordinate of the newly arrived position of the mouse on the actual desktop.
6. The seamless moving device for a multi-display mouse according to claim 5, wherein the establishing unit comprises a reading module, a first obtaining module, a judging module, a first selecting module and a second selecting module;
the reading module is used for reading the layout of the actual desktop of all the displays;
the first acquisition module is used for acquiring the resolutions of all the actual desktops according to the layouts of all the actual desktops;
the judging module is used for judging whether all the actual desktops are horizontally distributed or not;
the first selecting module is used for selecting the height of the highest desktop in all the actual desktops as the height of each desktop, and establishing an affine relation and an inverse affine relation by combining the width of each desktop and the actual height and width of each desktop;
and the second selection module is used for selecting the width of the widest desktop in all the actual desktops as the width of each desktop, and establishing an affine relation and an inverse affine relation by combining the height of each desktop and the actual height and width of each desktop.
7. The seamless moving device for a multi-display mouse according to claim 6, wherein the determining unit comprises a second obtaining module, a first calculating module, a first retrieving module and a second calculating module;
the second acquisition module is used for acquiring the current coordinate and the offset coordinate of the mouse;
the first calculation module is used for combining the current coordinate and the offset coordinate to determine a new coordinate of the mouse;
the first calling module is used for calling an affine relational expression;
and the second calculation module is used for calculating a corresponding slave coordinate of the new coordinate of the mouse in the virtual desktop through an affine relational expression.
8. The multi-display mouse seamless mobility device of claim 7, wherein the computing unit comprises the second recall module and a third computing module;
the second calling module is used for calling an inverse affine relation;
and the third calculation module is used for calculating the coordinates of the slave coordinates of the mouse on the actual desktop through an inverse affine relational expression.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method steps of the multi-display mouse seamless movement of any of claims 1-4 when executing the computer program.
10. A storage medium storing a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the method steps of the seamless movement of a multi-display mouse according to any one of claims 1 to 4.
CN202011487247.2A 2020-12-16 2020-12-16 Multi-display mouse seamless moving method and device, computer equipment and medium Active CN112558850B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011487247.2A CN112558850B (en) 2020-12-16 2020-12-16 Multi-display mouse seamless moving method and device, computer equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011487247.2A CN112558850B (en) 2020-12-16 2020-12-16 Multi-display mouse seamless moving method and device, computer equipment and medium

Publications (2)

Publication Number Publication Date
CN112558850A true CN112558850A (en) 2021-03-26
CN112558850B CN112558850B (en) 2022-04-26

Family

ID=75064093

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011487247.2A Active CN112558850B (en) 2020-12-16 2020-12-16 Multi-display mouse seamless moving method and device, computer equipment and medium

Country Status (1)

Country Link
CN (1) CN112558850B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130055126A1 (en) * 2011-08-22 2013-02-28 Google Inc. Multi-function affine tool for computer-aided design
US20130057540A1 (en) * 2011-09-01 2013-03-07 Holger Winnemoeller Methods and apparatus for digital stereo drawing
CN104503673A (en) * 2014-12-08 2015-04-08 昆山国显光电有限公司 Adjustable touch control method of display screen
CN106293160A (en) * 2016-09-08 2017-01-04 青岛海信电器股份有限公司 The method and device of mouse pointer switching between a kind of multi-display
CN107193384A (en) * 2017-06-29 2017-09-22 云南大学 Based on Kinect coloured images in mouse and the switching method of keyboard emulation behavior
CN108037854A (en) * 2017-12-19 2018-05-15 迈巨(深圳)科技有限公司 A kind of precision of infrared touch screen calibration method, electronic equipment and storage medium
CN110496388A (en) * 2019-08-22 2019-11-26 上海达龙信息科技有限公司 Remote desktop mouse emulation method, simulation system, medium and electronic equipment
CN110851224A (en) * 2019-11-11 2020-02-28 西安雷风电子科技有限公司 Intelligent switching system and method of IDV cloud desktop based on container
CN110989898A (en) * 2019-11-26 2020-04-10 国核自仪系统工程有限公司 Monitoring method, system, medium and equipment for display used for nuclear power plant simulation
CN111176524A (en) * 2019-12-25 2020-05-19 歌尔股份有限公司 Multi-screen display system and mouse switching control method thereof
CN111696213A (en) * 2013-11-11 2020-09-22 索尼互动娱乐股份有限公司 Image generation device, image generation method, and computer-readable medium
CN111913677A (en) * 2020-07-31 2020-11-10 北京仁光科技有限公司 Method and system for controlling spliced screen

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130055126A1 (en) * 2011-08-22 2013-02-28 Google Inc. Multi-function affine tool for computer-aided design
US20130057540A1 (en) * 2011-09-01 2013-03-07 Holger Winnemoeller Methods and apparatus for digital stereo drawing
CN111696213A (en) * 2013-11-11 2020-09-22 索尼互动娱乐股份有限公司 Image generation device, image generation method, and computer-readable medium
CN104503673A (en) * 2014-12-08 2015-04-08 昆山国显光电有限公司 Adjustable touch control method of display screen
CN106293160A (en) * 2016-09-08 2017-01-04 青岛海信电器股份有限公司 The method and device of mouse pointer switching between a kind of multi-display
CN107193384A (en) * 2017-06-29 2017-09-22 云南大学 Based on Kinect coloured images in mouse and the switching method of keyboard emulation behavior
CN108037854A (en) * 2017-12-19 2018-05-15 迈巨(深圳)科技有限公司 A kind of precision of infrared touch screen calibration method, electronic equipment and storage medium
CN110496388A (en) * 2019-08-22 2019-11-26 上海达龙信息科技有限公司 Remote desktop mouse emulation method, simulation system, medium and electronic equipment
CN110851224A (en) * 2019-11-11 2020-02-28 西安雷风电子科技有限公司 Intelligent switching system and method of IDV cloud desktop based on container
CN110989898A (en) * 2019-11-26 2020-04-10 国核自仪系统工程有限公司 Monitoring method, system, medium and equipment for display used for nuclear power plant simulation
CN111176524A (en) * 2019-12-25 2020-05-19 歌尔股份有限公司 Multi-screen display system and mouse switching control method thereof
CN111913677A (en) * 2020-07-31 2020-11-10 北京仁光科技有限公司 Method and system for controlling spliced screen

Also Published As

Publication number Publication date
CN112558850B (en) 2022-04-26

Similar Documents

Publication Publication Date Title
CN107168712B (en) Interface drawing method, mobile terminal and computer readable storage medium
CN109298909B (en) Window adjusting method, mobile terminal and computer readable storage medium
CN110347317B (en) Window switching method and device, storage medium and interactive intelligent panel
CN106293160B (en) Method and device for switching mouse pointers among multiple displays
AU2017259235A1 (en) Display control method and device for side sliding interface, terminal and storage medium
WO2015139408A1 (en) Method for managing application program icons, and terminal
CN110928614B (en) Interface display method, device, equipment and storage medium
WO2018000372A1 (en) Picture display method and terminal
JP4166767B2 (en) Information processing apparatus, pointer movement display method, program, and recording medium
EP3073363A1 (en) Electronic device, control method and control program
WO2014117365A1 (en) Making a computer display more expressive
CN107122104B (en) Data display method and device
CN104571904A (en) Information processing method and electronic equipment
WO2021259249A1 (en) Data display processing method and apparatus, computer device and storage medium
CN112558850B (en) Multi-display mouse seamless moving method and device, computer equipment and medium
US20150293679A1 (en) Method and Device for Controlling Switching of Virtual Navigation Bar
JP6161290B2 (en) Display control apparatus, display control method and program thereof
CN110737417A (en) demonstration equipment and display control method and device of marking line thereof
CN105760177A (en) Control text arrangement and display method and device applicable to Mac system
CN104571791A (en) Information processing method and electronic equipment
CN114995706A (en) Element display method, device, equipment and storage medium
CN110244895B (en) Method and device for controlling banner position of input method, mobile terminal and storage medium
CN106937100A (en) A kind of video image projecting method and system based on Miracast
CN113064567A (en) Multi-screen-based control method and device
CN108363525B (en) Method and device for responding to user gesture operation in webpage and terminal equipment

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
CB02 Change of applicant information

Address after: 518000 floor 15, building 6, Hengda fashion Huigu building (East District), Fulong Road, Henglang community, Dalang street, Longhua District, Shenzhen, Guangdong

Applicant after: SHENZHEN BEACON DISPLAY TECHNOLOGY Co.,Ltd.

Address before: 518055 12th floor, building B1, Nanshan wisdom Park, 1001 Xueyuan Avenue, Nanshan District, Shenzhen City, Guangdong Province

Applicant before: SHENZHEN BEACON DISPLAY TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant