CN111708446B - Mouse roaming method, system, electronic equipment and storage medium - Google Patents

Mouse roaming method, system, electronic equipment and storage medium Download PDF

Info

Publication number
CN111708446B
CN111708446B CN202010577118.6A CN202010577118A CN111708446B CN 111708446 B CN111708446 B CN 111708446B CN 202010577118 A CN202010577118 A CN 202010577118A CN 111708446 B CN111708446 B CN 111708446B
Authority
CN
China
Prior art keywords
display
position information
processor
mouse
current
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.)
Active
Application number
CN202010577118.6A
Other languages
Chinese (zh)
Other versions
CN111708446A (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.)
Chongqing Unisinsight Technology Co Ltd
Original Assignee
Chongqing Unisinsight 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 Chongqing Unisinsight Technology Co Ltd filed Critical Chongqing Unisinsight Technology Co Ltd
Priority to CN202010577118.6A priority Critical patent/CN111708446B/en
Publication of CN111708446A publication Critical patent/CN111708446A/en
Application granted granted Critical
Publication of CN111708446B publication Critical patent/CN111708446B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/038Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry
    • 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1423Digital 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

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)
  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The embodiment of the invention provides a mouse roaming method, a system, electronic equipment and a storage medium, and relates to the technical field of computers. The mouse roaming method comprises the following steps: the target processor acquires mouse data and judges whether the mouse moves out of the display area of the current display according to the current position information of the mouse data; if the mouse moves out of the display area of the current display, the target processor obtains the moving direction of the mouse according to the current position information and the historical position information of the mouse data, and determines whether the display to be moved exists or not according to the moving direction and a preset sequencing number; if the current position information exists, the target processor transmits the current position information to a processor electrically connected with the display to be moved; the target processor is a processor electrically connected with the mouse; and the processor electrically connected with the display to be moved determines the position of the mouse to be displayed on the display to be moved according to the current position information. Seamless switching between multiple processors and multiple displays can be achieved by one mouse and without adding peripherals.

Description

Mouse roaming method, system, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of computers, in particular to a mouse roaming method, a system, electronic equipment and a storage medium.
Background
With the development of computer technology, a single chip is no longer used in one electronic device, and a plurality of chips are present. Each chip has one or more HDMI (High Definition Multimedia Interface )/VGA (Video Graphics Array) outputs to the outside, which can be accessed to one or more displays. The pain point in the prior art is that each chip is required to be connected with a mouse independently, and the man-machine interaction interfaces of the chips are controlled respectively; or through a set of KVM (Keyboard Video Mouse) devices. The above-mentioned mode of realizing the switching of the mouse between the multichip and the display needs to connect a plurality of mice or add extra equipment, has the disadvantage of too high hardware cost.
Disclosure of Invention
Accordingly, an object of the present invention is to provide a method, system, electronic device, and storage medium for mouse roaming, which can realize seamless switching between multiple processors and multiple displays by one mouse without adding additional devices.
In order to achieve the above object, the technical scheme adopted by the embodiment of the invention is as follows:
In a first aspect, an embodiment of the present invention provides a method for roaming a mouse, which is applied to an electronic device, where the electronic device includes a plurality of processors, the processors are electrically connected to each other, and the processors are electrically connected to a plurality of displays in a one-to-one correspondence, and the method includes:
the target processor acquires mouse data; the target processor is a processor which is electrically connected with a mouse among the plurality of processors, and the mouse data comprises current position information and historical position information;
the target processor judges whether the mouse moves out of the display area of the current display according to the current position information;
if the mouse moves out of the display area of the current display, the target processor obtains the moving direction of the mouse according to the current position information and the historical position information;
the target processor determines whether a display to be moved exists or not according to the moving direction and a preset sequencing number;
if the current position information exists, the target processor transmits the current position information to a processor electrically connected with the display to be moved;
and the processor electrically connected with the display to be moved determines the position to be displayed of the mouse on the display to be moved according to the current position information.
In an alternative embodiment, the step of determining, by the target processor, whether the mouse moves out of the display area of the current display according to the current position information includes:
the target processor matches the current position information with a preset position range;
and if the position corresponding to the current position information is not in the position range, the target processor judges that the mouse moves out of the display area of the current display.
In an optional embodiment, after the step of determining whether the display to be moved exists according to the moving direction and the preset ranking number, the target processor further includes:
and if the mouse does not exist, the target processor controls the mouse to display at the edge of the display area of the current display.
In an alternative embodiment, the current location information includes longitudinal location information, and the step of transmitting the current location information to a processor electrically connected to the display to be moved by the target processor includes:
the target processor converts the longitudinal position information and preset screen height information of the current display to obtain converted position information;
The target processor transmits the converted position information to a processor electrically connected with the display to be moved;
the step of determining the position to be displayed of the mouse on the display to be moved according to the current position information by the processor electrically connected with the display to be moved comprises the following steps:
the processor electrically connected with the display to be moved converts the converted position information with preset screen height information of the display to be moved to obtain the position information to be displayed;
and the processor electrically connected with the display to be moved determines the position to be displayed according to the position information to be displayed.
In an alternative embodiment, the method further comprises:
the target processor transmits the mouse data to other processors;
the processor acquires the connection state information of the matched display in real time; wherein the matching display is a display of the plurality of displays corresponding to the processor;
when the connection state information characterizes that the processor is disconnected from the matched display, the processor judges whether the mouse is displayed on the matched display according to the mouse data;
If yes, the processor determines whether a movable display exists according to the sequencing number of the matched display;
and if the mouse exists, the processor electrically connected with the movable display obtains the display position information of the mouse on the movable display according to the display area of the movable display.
In an alternative embodiment, the step of determining, by the processor, whether a movable display exists according to the ranking number of the matched display includes:
the processor obtains the sequencing number of each display;
the processor determines that the display with the ranking number similar to the ranking number of the matched display is the movable display.
In a second aspect, an embodiment of the present invention provides an electronic device, including a plurality of processors, where the processors are electrically connected to each other, and the processors are electrically connected to a plurality of displays in a one-to-one correspondence manner;
the target processor is used for acquiring mouse data; the target processor is a processor which is electrically connected with a mouse among the plurality of processors, and the mouse data comprises current position information and historical position information;
the target processor is also used for judging whether the mouse moves out of the display area of the current display according to the current position information;
If the mouse moves out of the display area of the current display, the target processor is further used for obtaining the moving direction of the mouse according to the current position information and the historical position information;
the target processor is further used for determining whether a display to be moved exists or not according to the moving direction and a preset sequencing number;
if the current position information exists, the target processor is further used for transmitting the current position information to a processor electrically connected with the display to be moved;
and the processor is electrically connected with the display to be moved and is used for determining the position to be displayed of the mouse on the display to be moved according to the current position information.
In an alternative embodiment, the current location information comprises longitudinal location information;
the target processor is further used for converting the longitudinal position information with preset screen height information of the current display to obtain converted position information;
the target processor is further used for transmitting the converted position information to a processor electrically connected with the display to be moved;
the processor is electrically connected with the display to be moved and is also used for converting the converted position information with preset screen height information of the display to be moved to obtain the position information to be displayed;
The processor is further configured to determine the position to be displayed according to the position information to be displayed.
In an alternative embodiment, the target processor is further configured to transmit the mouse data to other processors;
the processor is used for acquiring the connection state information of the matched display in real time; wherein the matching display is a display of the plurality of displays corresponding to the processor;
when the connection state information characterizes that the processor is disconnected from the matched display, the processor is used for judging whether the mouse is displayed on the matched display according to the mouse data;
if yes, the processor is further used for determining whether a movable display exists according to the sorting number of the matched display;
and if the display position information exists, the processor electrically connected with the movable display is used for acquiring the display position information of the mouse on the movable display according to the display area of the movable display.
In a third aspect, an embodiment of the present invention provides a storage medium having stored thereon a computer program which, when executed by a processor, implements a mouse roaming method as in any of the previous embodiments.
In a fourth aspect, an embodiment of the present invention provides a mouse roaming system, including a plurality of electronic devices, where each electronic device includes a plurality of processors, where the plurality of processors are connected to each other in a communication manner, and the plurality of processors are electrically connected to a plurality of displays in a one-to-one correspondence manner;
the target processor is used for acquiring mouse data; the target processor is a processor which is electrically connected with a mouse among the plurality of processors, and the mouse data comprises current position information and historical position information;
the target processor is also used for judging whether the mouse moves out of the display area of the current display according to the current position information;
if the mouse moves out of the display area of the current display, the target processor is further used for obtaining the moving direction of the mouse according to the current position information and the historical position information;
the target processor is further used for determining whether a display to be moved exists or not according to the moving direction and a preset sequencing number;
if the current position information exists, the target processor is further used for transmitting the current position information to a processor electrically connected with the display to be moved;
and the processor is electrically connected with the display to be moved and is used for determining the position to be displayed of the mouse on the display to be moved according to the current position information.
The embodiment of the invention provides a mouse roaming method, a system, electronic equipment and a storage medium. The mouse roaming method comprises the following steps: the target processor acquires mouse data; the target processor is a processor which is electrically connected with a mouse among a plurality of processors, and the mouse data comprises current position information and historical position information; the target processor judges whether the mouse moves out of the display area of the current display according to the current position information; if the mouse moves out of the display area of the current display, the target processor obtains the moving direction of the mouse according to the current position information and the historical position information; the target processor determines whether a display to be moved exists or not according to the moving direction and a preset sequencing number; if the current position information exists, the target processor transmits the current position information to a processor electrically connected with the display to be moved; and the processor electrically connected with the display to be moved determines the position of the mouse to be displayed on the display to be moved according to the current position information. Therefore, the mouse roaming method can realize the operation of all human-computer interfaces on the electronic equipment with multiple processors by only one mouse, is simple and convenient to use, and has no difference from single-processor electronic equipment in experience. And seamless switching between the multiprocessor and the multi-display can be achieved through the mouse without adding any external equipment, so that the hardware cost is saved.
In order to make the above objects, features and advantages of the present invention more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 shows a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a mouse roaming method according to an embodiment of the present invention;
fig. 3 is a schematic view of an application environment of an electronic device according to an embodiment of the present invention;
fig. 4 is a schematic view of an application environment of another electronic device according to an embodiment of the present invention;
fig. 5 is a schematic flow chart of another method for roaming a mouse according to an embodiment of the present invention;
fig. 6 shows a schematic view of an application environment of another electronic device according to an embodiment of the present invention;
Fig. 7 is a schematic flow chart of another method for roaming a mouse according to an embodiment of the present invention;
fig. 8 shows a schematic view of an application environment of another electronic device according to an embodiment of the present invention.
Icon: 100-an electronic device; 110-a processor; 120-memory; 130-a communication module; 140-display.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. The components of the embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the invention, as presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be made by a person skilled in the art without making any inventive effort, are intended to be within the scope of the present invention.
It is noted that relational terms such as "first" and "second", and the like, are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Referring to fig. 1, a schematic diagram of an implementation structure of an electronic device 100 according to an embodiment of the present application is provided. The electronic device 100 includes a plurality of processors 110, a memory 120, a communication module 130, a plurality of displays 140, and the like, wherein the processors 110 are electrically connected to each other, the processors 110 are electrically connected to the displays 140 in a one-to-one correspondence, and the processors 110 are also electrically connected to the memory 120 and the communication module 130.
Wherein the memory 120 is used for storing programs or data. The Memory 120 may be, but is not limited to, random access Memory (Random Access Memory, RAM), read Only Memory (ROM), programmable Read Only Memory (Programmable Read-Only Memory, PROM), erasable Read Only Memory (Erasable Programmable Read-Only Memory, EPROM), electrically erasable Read Only Memory (Electric Erasable Programmable Read-Only Memory, EEPROM), etc.
The processor 110 is used to read/write data or programs stored in the memory 120 and perform corresponding functions. For example, the mouse roaming method disclosed in the embodiment of the present invention can be implemented when a computer program stored in the memory 120 is executed by the processor 110. The processor 110 may be an integrated circuit chip with signal processing capabilities. The processor 110 may be a general-purpose processor including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processing, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
The communication module 130 is configured to establish a communication connection between the electronic device 100 and other communication interruptions through the network, and is configured to transmit and receive data through the network.
Display 140 provides both an output and input interface between electronic device 100 and a user. In this embodiment, the display 140 is capable of sensing mouse click operations and communicating the sensed mouse click operations to the processor 110 for processing.
The electronic device 100 may implement any of the mouse roaming methods provided herein. The electronic device 100 may be, but is not limited to, a security device, desktop computer, notebook computer, server, or other electronic device 100 having processing capabilities.
It should be understood that the structure shown in fig. 1 is merely a schematic diagram of the structure of the electronic device 100, and that the electronic device 100 may further include more or fewer components than those shown in fig. 1, or have a different configuration than that shown in fig. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
The present embodiments provide a storage medium having stored thereon a computer program which, when executed by the processor 110, implements a mouse roaming method as in any of the previous embodiments. The storage medium may be, but is not limited to, a usb disk, a removable hard disk, ROM, RAM, PROM, EPROM, EEPROM, a magnetic disk, or an optical disk, etc. various media capable of storing program codes.
Fig. 2 is a schematic flow chart of a mouse roaming method according to an embodiment of the invention. It should be noted that, the mouse roaming method provided in the embodiment of the present invention is not limited by fig. 2 and the specific sequence below, and it should be understood that, in other embodiments, the sequence of part of the steps in the mouse roaming method provided in the embodiment of the present invention may be interchanged according to actual needs, or part of the steps may be omitted or deleted. The mouse roaming method can be applied to the electronic device 100 shown in fig. 1, and a detailed description will be given below of a specific flow shown in fig. 2.
Step S101, a target processor acquires mouse data; the target processor is a processor which is electrically connected with a mouse among a plurality of processors, and the mouse data comprises current position information and historical position information.
In this embodiment, the mouse data may further include click operation information generated by the mouse in response to the user click operation and a sorting number of the display 140 where the mouse is currently located, where the mouse data is real-time data. The current position information indicates the current resting position of the mouse on the display 140, and the historical position information indicates the previous resting position of the mouse on the display 140.
In step S102, the target processor determines whether the mouse moves out of the display area of the current display according to the current position information.
In this embodiment, the specific principle that the target processor determines whether the mouse moves out of the display area of the current display according to the current position information may be: the target processor matches the current position information with a preset position range; and if the position corresponding to the current position information is not in the position range, the target processor judges that the mouse moves out of the display area of the current display.
It is understood that the current position information includes lateral position information, and the preset position range is a lateral position information range of the display area of the current display. If the position range (i.e., the range of the lateral position information of the display area of the current display) is 0-w1, the target processor determines that the mouse moves out of the display area of the current display when the lateral position information of the current position information is greater than w1 and less than 0.
Step S103, if the mouse moves out of the display area of the current display, the target processor obtains the moving direction of the mouse according to the current position information and the historical position information.
In this embodiment, the target processor obtains the position information of the one stop position on the mouse from the historical position information, and the target processor may be based on the time to obtain the position information of the one stop position on the mouse. The target processor compares the lateral position information in the current position information with the lateral position information in the position information of the last stop position, and if the lateral position information in the current position information is larger than the lateral position information in the position information of the last stop position, the moving direction of the mouse can be judged to be the left side of the current display. If the lateral position information in the current position information is smaller than the lateral position information in the position information of the last stop position, the moving direction of the mouse can be judged to be the right side of the current display.
Step S104, the target processor determines whether the display to be moved exists according to the moving direction and the preset sorting number.
In this embodiment, the display to be moved is the next display 140 to which the mouse moves from the current display, and the plurality of displays 140 includes the display to be moved. Each display 140 is provided with a sort number in advance in order of the respective mounting positions. For example, the first display, the second display, the third display, and the fourth display are sequentially disposed from left to right, and then the sorting number of the first display may be set to 1, the sorting number of the second display may be set to 2, the sorting number of the third display may be set to 3, and the sorting number of the fourth display may be set to 4.
In this embodiment, the target processor determines whether the display to be moved exists according to the size of each sorting number, the size of the sorting number of the current display, and the moving direction of the mouse.
It will be understood that if the sorting numbers of the plurality of displays 140 are sequentially increasing, and the moving direction of the mouse is moving to the left of the current display, it should be determined whether there is a display 140 with a sorting number smaller than the sorting number of the current display, if there is a display 140 with a sorting number smaller than the sorting number of the current display, it indicates that there is a display to be moved, and the target processor selects a display 140 corresponding to a sorting number close to the sorting number of the current display from among the sorting numbers smaller than the sorting number of the current display as the display to be moved. If there is no display 140 with a ranking number less than the ranking number of the current display, it indicates that there is no display to be moved.
If the sequence numbers of the plurality of displays 140 are sequentially increased, and the movement direction of the mouse is to move to the right of the current display, it should be determined whether there is a display 140 with a sequence number greater than the sequence number of the current display, if there is a display 140 with a sequence number greater than the sequence number of the current display, it indicates that there is a display to be moved, and the target processor selects a display 140 corresponding to a sequence number close to the sequence number of the current display from the sequence numbers greater than the sequence number of the current display as the display to be moved. If there is no display 140 with a ranking number greater than the ranking number of the current display, it indicates that there is no display to be moved.
If the sequence numbers of the plurality of displays 140 are in a decreasing manner, and the movement direction of the mouse is to move to the left of the current display, it should be determined whether there is a display 140 with a sequence number greater than the sequence number of the current display, if there is a display 140 with a sequence number greater than the sequence number of the current display, it indicates that there is a display to be moved, and the target processor selects a display 140 corresponding to a sequence number close to the sequence number of the current display from the sequence numbers greater than the sequence number of the current display as the display to be moved. If there is no display 140 with a ranking number greater than the ranking number of the current display, it indicates that there is no display to be moved.
If the sequence numbers of the plurality of displays 140 are in a decreasing manner, and the movement direction of the mouse is to move to the right of the current display, it should be determined whether there is a display 140 with a sequence number smaller than the sequence number of the current display, if there is a display 140 with a sequence number smaller than the sequence number of the current display, it indicates that there is a display to be moved, and the target processor selects a display 140 corresponding to a sequence number close to the sequence number of the current display from among the sequence numbers smaller than the sequence number of the current display as the display to be moved. If there is no display 140 with a ranking number less than the ranking number of the current display, it indicates that there is no display to be moved.
As shown in fig. 3, if the plurality of displays 140 includes a first display and a second display, the order numbers of the first display and the second display are sequentially increased. If the current display is the first display, that is, the mouse is displayed on the first display, and the moving direction of the mouse is to the right of the current display. When the mouse moves right out of the display area of the first display, the target processor determines the second display as the display to be moved because the ordering number of the second display is larger than that of the first display, and the mouse roams from the first display to the second display.
In step S105, the target processor transmits the current position information to a processor electrically connected to the display to be moved, if any.
Step S106, the processor electrically connected with the display to be moved determines the position of the mouse to be displayed on the display to be moved according to the current position information.
In this embodiment, the current position information further includes longitudinal position information, and the specific principle of determining the position of the mouse to be displayed on the display to be moved is as follows: the target processor converts the longitudinal position information and preset screen height information of the current display to obtain converted position information; the target processor transmits the scaled position information to the processor 110 electrically connected to the display to be moved; the processor 110 electrically connected with the display to be moved converts the converted position information with preset screen height information of the display to be moved to obtain the position information to be displayed; the processor 110 electrically connected to the display to be moved determines the position to be displayed according to the position information to be displayed.
In this embodiment, the target processor performs division operation on the longitudinal position information of the current position and the screen height of the current display to obtain converted position information; the processor 110 electrically connected to the display to be moved multiplies the converted position information with the screen height information of the display to be moved to obtain the position information to be displayed. After conversion processing, even if the screen height of the current display is different from that of the display to be moved, the resolution of the position where the mouse is located after roaming can be ensured to be the same.
It will be appreciated that the longitudinal position information of the position to be displayed can be calculated by the formula y2=y1/h1×h2. Wherein y2 represents longitudinal position information of a position to be displayed, y1 represents longitudinal position information in the current position information, h1 represents screen height information of the current display, and h2 represents screen height information of the display to be moved.
As shown in fig. 4, if the plurality of displays 140 includes a first display and a second display, the order numbers of the first display and the second display are sequentially increased. If the current display is the first display, and the moving direction of the mouse moves to the right of the current display. If the position range of the current display is 0-w1, and 0 represents the lateral position information of the left edge of the display area of the current display, and w1 represents the longitudinal position information of the right edge of the display area of the current display. If the position range of the display to be moved is 0-w2, and 0 represents the lateral position information of the left edge of the display area of the display to be moved, and w2 represents the longitudinal position information of the right edge of the display area of the display to be moved. So the mouse, after moving to the current display (w 1, y 1), disappears from the current display (i.e. the first display) and is then displayed at (0, y 2) of the display to be moved (i.e. the second display).
As shown in fig. 5, after the step of determining whether the display to be moved exists according to the moving direction and the preset sorting number, the target processor further includes the following steps:
in step S107, if not, the target processor controls the mouse to display at the edge of the display area of the current display.
As shown in fig. 6, if the plurality of displays 140 includes a first display and a second display, the order numbers of the first display and the second display are sequentially increased. If the current display is the first display, and the moving direction of the mouse moves to the left of the current display. If the position range of the current display is 0-w1, and 0 represents the lateral position information of the left edge of the display area of the current display, and w1 represents the longitudinal position information of the right edge of the display area of the current display. After the mouse moves to the current display (0, y 1), the target processor controls the mouse to display on the left edge of the display area of the first display because there is no display 140 with a ranking number smaller than that of the first display, i.e. no display 140 is disposed on the left of the first display.
In this embodiment, in addition to performing the mouse roaming operation in response to the mouse operation of the user, the mouse roaming operation is automatically performed according to the connection state of the display 140. As shown in fig. 7, performing the mouse roaming operation according to the connection state of the display 140 includes the steps of:
In step S201, the target processor transmits the mouse data to other processors.
In this embodiment, the target processor transmits the mouse data to the other processors 110 in real time, and the other processes refer to the processors 110, among the multiple processors 110, to which the mouse is not connected.
Step S202, a processor acquires connection state information of a matched display in real time; the matched display is a display corresponding to the processor in the plurality of displays.
In this embodiment, each processor 110 is correspondingly connected to one display 140, so each processor 110 can acquire the connection status information of the display 140 connected thereto in real time. After each processor 110 obtains the connection status information of the display 140 connected thereto, the connection status information of the display 140 connected thereto is synchronized with all the processors 110.
In step S203, when the connection state information indicates that the processor is disconnected from the matching display, the processor determines whether the mouse is displayed on the matching display according to the mouse data.
In this embodiment, the processor 110 determines whether the mouse is displayed on the matching display according to the mouse data, which means the processor 110 disconnected from the matching display. The serial number of the display 140 of the mouse is included in the mouse data received by the processor 110 disconnected from the matched display, the processor 110 disconnected from the matched display also obtains the serial number of the matched display, the processor 110 disconnected from the matched display matches the serial number of the display 140 of the mouse with the serial number of the matched display, if the serial number of the display 140 of the mouse is the same as the serial number of the matched display, the mouse is judged to be displayed on the display 140 disconnected from the processor 110, that is, the current display is disconnected from the corresponding processor 110. If the ranking number of the display 140 where the mouse is located is different from the ranking number of the matching display, it is determined that the mouse is not displayed on the display 140 disconnected from the processor 110.
In step S204, if yes, the processor determines whether there is a movable display according to the ranking number of the matched display.
In this embodiment, the processor 110 obtains a ranking number for each display 140; the processor 110 determines that the display 140 having a rank number that is similar to the rank number of the matching display is a removable display.
It is understood that the processors 110 in step S204 each refer to a processor 110 disconnected from the matching display. The processor 110 disconnected from the matching display may obtain the ranking number of each display 140 in advance, and the processor 110 disconnected from the matching display determines that the display 140 with the ranking number similar to the ranking number of the matching display is a movable display.
In this embodiment, the processor 110 disconnected from the matching display may determine that the ranking number is similar to the ranking number of the matching display, and the display 140 with the ranking number smaller than the ranking number of the matching display is a movable display. If there is no display 140 with a ranking number less than the ranking number of the matching display, the processor 110 disconnected from the matching display may determine that the ranking number is similar to the ranking number of the matching display and that the display 140 with a ranking number greater than the ranking number of the matching display is a removable display.
Of course, the processor 110 disconnected from the matching display may also determine that the ranking number is close to the ranking number of the matching display, and the display 140 with the ranking number greater than the ranking number of the matching display is a movable display. If there is no display 140 with a ranking number greater than the ranking number of the matching display, the processor 110 disconnected from the matching display re-determines that the ranking number is similar to the ranking number of the matching display and that the display 140 with a ranking number less than the ranking number of the matching display is a movable display.
For ease of understanding, reference may be made to FIG. 8, which is a schematic illustration of the movement of a mouse to a movable display for display with the current display disconnected from its corresponding processor 110.
In step S205, if any, the processor electrically connected to the movable display obtains the display position information of the mouse on the movable display according to the display area of the movable display.
In this embodiment, after the movable display is determined, the processor 110 electrically connected to the movable display determines the display position information of the mouse on the movable display from the display area of the movable display.
The embodiment of the application provides a mouse roaming system, which comprises a plurality of electronic devices 100, each electronic device 100 comprises a plurality of processors 110, the processors 110 are in communication connection with each other, and the processors 110 are electrically connected with a plurality of displays 140 in a one-to-one correspondence.
In this embodiment, the mouse roaming method may be implemented not only on a single electronic device 100, but also between a plurality of electronic devices 100 using the same method as described above. That is, the plurality of processors 110 in each electronic device are connected in communication with each other, so that the sharing of the connection state information of the display 140 and the mouse data can be performed, and further, the seamless switching of the mouse between the multiprocessor and the multi-display can be realized, and the mouse roaming operation can be automatically performed according to the connection state of the display 140. The mouse roaming method between the plurality of electronic devices 100 is the same as the specific implementation principle of the mouse roaming method of the single electronic device 100, and reference may be made to the mouse roaming method of the single electronic device 100, which is not described here.
In summary, the embodiments of the present invention provide a method, a system, an electronic device, and a storage medium for roaming a mouse, where the electronic device includes a plurality of processors, the plurality of processors are electrically connected to each other, and the plurality of processors are electrically connected to a plurality of displays in a one-to-one correspondence. The mouse roaming method comprises the following steps: the target processor acquires mouse data; the target processor is a processor which is electrically connected with a mouse among a plurality of processors, and the mouse data comprises current position information and historical position information; the target processor judges whether the mouse moves out of the display area of the current display according to the current position information; if the mouse moves out of the display area of the current display, the target processor obtains the moving direction of the mouse according to the current position information and the historical position information; the target processor determines whether a display to be moved exists or not according to the moving direction and a preset sequencing number; if the current position information exists, the target processor transmits the current position information to a processor electrically connected with the display to be moved; and the processor electrically connected with the display to be moved determines the position of the mouse to be displayed on the display to be moved according to the current position information. Therefore, the mouse roaming method can realize the operation of all human-computer interfaces on the electronic equipment with multiple processors by only one mouse, is simple and convenient to use, and has no difference from single-processor electronic equipment in experience. And seamless switching between the multiprocessor and the multi-display can be achieved through the mouse without adding any external equipment, so that the hardware cost is saved.
In the several embodiments provided in this application, it should be understood that the disclosed method may be implemented in other ways. The apparatus embodiments described above are merely illustrative, for example, of the flowcharts and block diagrams in the figures that illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present invention may be integrated together to form a single part, or each module may exist alone, or two or more modules may be integrated to form a single part.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (7)

1. The mouse roaming method is characterized by being applied to electronic equipment, wherein the electronic equipment comprises a plurality of processors, the processors are electrically connected with each other, the processors are electrically connected with a plurality of displays in a one-to-one correspondence manner, and the method comprises the following steps:
the target processor acquires mouse data; the target processor is a processor which is electrically connected with a mouse in the plurality of processors, the mouse data comprises current position information and historical position information, and the current position information comprises longitudinal position information;
the target processor judges whether the mouse moves out of the display area of the current display according to the current position information;
If the mouse moves out of the display area of the current display, the target processor obtains the moving direction of the mouse according to the current position information and the historical position information;
the target processor determines whether a display to be moved exists or not according to the moving direction and a preset sequencing number;
if the current display screen height information exists, the target processor carries out division operation on the longitudinal position information and the preset current display screen height information to obtain converted position information; the target processor transmits the converted position information to a processor electrically connected with the display to be moved;
the processor electrically connected with the display to be moved performs multiplication operation on the converted position information and preset screen height information of the display to be moved to obtain position information to be displayed; the processor is electrically connected with the display to be moved and determines the position to be displayed according to the position information to be displayed;
the target processor transmits the mouse data to other processors; the processor acquires the connection state information of the matched display in real time; wherein the matching display is a display of the plurality of displays corresponding to the processor; when the connection state information characterizes that the processor is disconnected from the matched display, the processor judges whether the mouse is displayed on the matched display according to the mouse data; if yes, the processor determines whether a movable display exists according to the sequencing number of the matched display; and if the mouse exists, the processor electrically connected with the movable display obtains the display position information of the mouse on the movable display according to the display area of the movable display.
2. The method of claim 1, wherein the step of determining, by the target processor, whether the mouse moves out of the display area of the current display according to the current position information comprises:
the target processor matches the current position information with a preset position range;
and if the position corresponding to the current position information is not in the position range, the target processor judges that the mouse moves out of the display area of the current display.
3. The method of claim 1, wherein after the step of determining whether the display to be moved exists by the target processor according to the moving direction and the preset ranking number, the method further comprises:
and if the mouse does not exist, the target processor controls the mouse to display at the edge of the display area of the current display.
4. The method of claim 1, wherein the step of determining whether a movable display exists by the processor according to the ranking number of the matched display comprises:
the processor obtains the sequencing number of each display;
the processor determines that the display with the ranking number similar to the ranking number of the matched display is the movable display.
5. The electronic equipment is characterized by comprising a plurality of processors, wherein the processors are electrically connected with each other, and the processors are electrically connected with a plurality of displays in a one-to-one correspondence manner;
the target processor is used for acquiring mouse data; the target processor is a processor which is electrically connected with a mouse in the plurality of processors, the mouse data comprises current position information and historical position information, and the current position information comprises longitudinal position information;
the target processor is also used for judging whether the mouse moves out of the display area of the current display according to the current position information;
if the mouse moves out of the display area of the current display, the target processor is further used for obtaining the moving direction of the mouse according to the current position information and the historical position information;
the target processor is further used for determining whether a display to be moved exists or not according to the moving direction and a preset sequencing number;
if the current display screen height information exists, the target processor carries out division operation on the longitudinal position information and the preset current display screen height information to obtain converted position information; the target processor transmits the converted position information to a processor electrically connected with the display to be moved;
The processor electrically connected with the display to be moved performs multiplication operation on the converted position information and preset screen height information of the display to be moved to obtain position information to be displayed; the processor is electrically connected with the display to be moved and determines the position to be displayed according to the position information to be displayed;
the target processor is also used for transmitting the mouse data to other processors; the processor is used for acquiring the connection state information of the matched display in real time; wherein the matching display is a display of the plurality of displays corresponding to the processor; when the connection state information characterizes that the processor is disconnected from the matched display, the processor is used for judging whether the mouse is displayed on the matched display according to the mouse data; if yes, the processor is further used for determining whether a movable display exists according to the sorting number of the matched display; and if the display position information exists, the processor electrically connected with the movable display is used for acquiring the display position information of the mouse on the movable display according to the display area of the movable display.
6. A storage medium having stored thereon a computer program which, when executed by a processor, implements the mouse roaming method of any of claims 1-4.
7. The mouse roaming system is characterized by comprising a plurality of electronic devices, wherein each electronic device comprises a plurality of processors, the processors are in communication connection with each other, and the processors are in one-to-one corresponding electric connection with a plurality of displays;
the target processor is used for acquiring mouse data; the target processor is a processor which is electrically connected with a mouse in the plurality of processors, the mouse data comprises current position information and historical position information, and the current position information comprises longitudinal position information;
the target processor is also used for judging whether the mouse moves out of the display area of the current display according to the current position information;
if the mouse moves out of the display area of the current display, the target processor is further used for obtaining the moving direction of the mouse according to the current position information and the historical position information;
the target processor is further used for determining whether a display to be moved exists or not according to the moving direction and a preset sequencing number;
If the current display screen height information exists, the target processor is further used for dividing the longitudinal position information with the preset current display screen height information to obtain converted position information; transmitting the converted position information to a processor electrically connected with the display to be moved;
the processor is electrically connected with the display to be moved and is used for multiplying the converted position information with preset screen height information of the display to be moved to obtain the position information to be displayed; determining the position to be displayed according to the position information to be displayed;
the target processor is also used for transmitting the mouse data to other processors; the processor is used for acquiring the connection state information of the matched display in real time; wherein the matching display is a display of the plurality of displays corresponding to the processor; when the connection state information characterizes that the processor is disconnected from the matched display, the processor is used for judging whether the mouse is displayed on the matched display according to the mouse data; if yes, the processor is further used for determining whether a movable display exists according to the sorting number of the matched display; and if the display position information exists, the processor electrically connected with the movable display is used for acquiring the display position information of the mouse on the movable display according to the display area of the movable display.
CN202010577118.6A 2020-06-22 2020-06-22 Mouse roaming method, system, electronic equipment and storage medium Active CN111708446B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010577118.6A CN111708446B (en) 2020-06-22 2020-06-22 Mouse roaming method, system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010577118.6A CN111708446B (en) 2020-06-22 2020-06-22 Mouse roaming method, system, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111708446A CN111708446A (en) 2020-09-25
CN111708446B true CN111708446B (en) 2024-01-30

Family

ID=72541457

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010577118.6A Active CN111708446B (en) 2020-06-22 2020-06-22 Mouse roaming method, system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111708446B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113377272A (en) * 2021-06-02 2021-09-10 Tcl通讯(宁波)有限公司 Method and device for sharing mouse among multiple devices, terminal device and storage medium
CN113407043B (en) * 2021-06-29 2023-09-05 杭州海康威视数字技术股份有限公司 Data processing method, device, equipment and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1920757A (en) * 2005-08-25 2007-02-28 联想(北京)有限公司 Method for cursor switch in multi-display system and multi-display system
CN101276253A (en) * 2007-03-30 2008-10-01 联想(北京)有限公司 Multi-screen display system and multi-screen display and setting method
CN101430633A (en) * 2007-10-26 2009-05-13 米特尔网络公司 Method and apparatus for maintaining a visual appearance of at least one window when a resolution of the screen changes
CN106293160A (en) * 2016-09-08 2017-01-04 青岛海信电器股份有限公司 The method and device of mouse pointer switching between a kind of multi-display
CN107479845A (en) * 2017-09-08 2017-12-15 广州视源电子科技股份有限公司 Display device and its control method
CN110007772A (en) * 2017-12-29 2019-07-12 宏正自动科技股份有限公司 Resource sharing device and its control method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090288042A1 (en) * 2008-05-19 2009-11-19 Action Star Enterprise Co., Ltd. Method and system for controlling multiple computers
US20110022771A1 (en) * 2009-07-23 2011-01-27 Video Products, Inc. System and method for displaying alarm notifications on an on-screen display

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1920757A (en) * 2005-08-25 2007-02-28 联想(北京)有限公司 Method for cursor switch in multi-display system and multi-display system
CN101276253A (en) * 2007-03-30 2008-10-01 联想(北京)有限公司 Multi-screen display system and multi-screen display and setting method
CN101430633A (en) * 2007-10-26 2009-05-13 米特尔网络公司 Method and apparatus for maintaining a visual appearance of at least one window when a resolution of the screen changes
CN106293160A (en) * 2016-09-08 2017-01-04 青岛海信电器股份有限公司 The method and device of mouse pointer switching between a kind of multi-display
CN107479845A (en) * 2017-09-08 2017-12-15 广州视源电子科技股份有限公司 Display device and its control method
CN110007772A (en) * 2017-12-29 2019-07-12 宏正自动科技股份有限公司 Resource sharing device and its control method

Also Published As

Publication number Publication date
CN111708446A (en) 2020-09-25

Similar Documents

Publication Publication Date Title
US20160202887A1 (en) Method for managing application icon and terminal
CN102163096B (en) Signal conditioning package, information processing method
CN101673146B (en) Key-screen-mouse switch using touch screen
AU2017232150B2 (en) Calculating device, graph display method of calculating device, and storage medium retaining graph display program
US20090251422A1 (en) Method and system for enhancing interaction of a virtual keyboard provided through a small touch screen
CN112015314B (en) Information display method and device, electronic equipment and medium
CN111708446B (en) Mouse roaming method, system, electronic equipment and storage medium
CN104850660A (en) Picture displaying method, picture displaying device and mobile terminal
US20090295745A1 (en) Input Method for Touch Panel and Related Touch Panel and Electronic Device
CN107704157B (en) Multi-screen interface operation method and device and storage medium
JP6640893B2 (en) Method and apparatus for inputting characters
CN103605804A (en) Method and system for ranking desktop objects
CN103492981A (en) Touch screen selection
CN107678813B (en) Desktop icon theme switching method and mobile terminal
CN105371850A (en) Route navigation method and mobile terminal
CN105138170A (en) Theme determination method and terminal
CN103701927A (en) Terminal-to-terminal image sharing method, terminal device and communication system
CN112650433A (en) Interface screenshot method and device and electronic equipment
CN110825303A (en) Interaction method, device, terminal and computer readable medium
US9285915B2 (en) Method of touch command integration and touch system using the same
CN113312122A (en) Virtual keyboard calling method and device, computer storage medium and electronic equipment
CN110209294B (en) Mouse control method and system and KVM system
CN104571791A (en) Information processing method and electronic equipment
CN111324260B (en) Method and apparatus for moving views
CN107153502B (en) Interface sliding method and system

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