WO2022252733A1 - 一种多设备间共享鼠标方法、装置、终端设备及存储介质 - Google Patents
一种多设备间共享鼠标方法、装置、终端设备及存储介质 Download PDFInfo
- Publication number
- WO2022252733A1 WO2022252733A1 PCT/CN2022/080039 CN2022080039W WO2022252733A1 WO 2022252733 A1 WO2022252733 A1 WO 2022252733A1 CN 2022080039 W CN2022080039 W CN 2022080039W WO 2022252733 A1 WO2022252733 A1 WO 2022252733A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- mouse
- terminal device
- sharing
- screen
- information table
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 47
- 238000001514 detection method Methods 0.000 claims description 4
- 241000699666 Mus <mouse, genus> Species 0.000 description 283
- 238000004590 computer program Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 230000006872 improvement Effects 0.000 description 3
- 241000699670 Mus sp. Species 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000009466 transformation Effects 0.000 description 2
- 238000000844 transformation Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000008094 contradictory effect Effects 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/033—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
- G06F3/0354—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
- G06F3/03543—Mice or pucks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/033—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
- G06F3/038—Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry
Definitions
- the present application relates to the field of terminal equipment, in particular to a method and device for sharing a mouse among multiple equipment, a terminal equipment and a storage medium.
- the technical problem to be solved by this application is to provide a method, device, terminal device and storage medium for sharing a mouse between multiple devices in view of the above-mentioned defects of the prior art.
- a method for sharing a mouse between multiple devices includes:
- the control sends a switching mount command to the target terminal device, so that the mouse switches the mounted terminal device.
- the step of controlling the sending of the switch mount command to the target terminal device, and making the mouse switch the mounted terminal device further includes:
- the method for sharing a mouse between multiple devices wherein the steps of interconnecting multiple terminal devices sharing a mouse in advance, and pre-establishing a mouse gesture information table for multiple terminal devices sharing mouse movement rules include:
- a mouse gesture information table for sharing the use of the mouse is established according to the information of the terminal device.
- the method for sharing a mouse between multiple devices wherein, when the mouse is detected to move out of the edge of the screen, the step of judging whether to switch the mounted terminal device according to the mouse gesture information table includes:
- the method for sharing a mouse among multiple devices wherein the step of detecting whether the mouse is moved out of the edge of the screen, and judging whether to switch the mounted terminal device according to the mouse gesture information table includes:
- the number of terminal devices is greater than 2, it is further judged whether it conforms to the gesture of switching the mounted terminal devices in the mouse gesture information table.
- the method for sharing a mouse among multiple devices wherein, when it is judged that the mounted terminal device needs to be switched, the step of confirming the target terminal device to be switched and mounted according to the mouse gesture information table includes:
- the target terminal device to be switched and mounted is confirmed according to the mouse gesture information table.
- the control sends a switch mount instruction to the target terminal device
- the step of making the mouse switch the mounted terminal device includes:
- a device for sharing a mouse between multiple devices wherein the device comprises:
- the preset module acquires information of multiple terminal devices in advance, and establishes a mouse gesture information table in combination with mouse gestures to determine the corresponding relationship between the direction of mouse movement and the terminal device to be switched and mounted;
- connection module is used to connect with the mouse when the mouse needs to be mounted, and to disconnect the mouse when the mouse is not mounted;
- the detection module is used to detect whether the mouse moves out of the edge of the screen
- a judging module configured to judge, according to the mouse gesture information table, whether it is necessary to switch the mounted terminal device and confirm that the mounted target terminal device is about to be switched when the mouse is detected to move out of the edge of the screen;
- the command sending and receiving module is used to receive the switch mount command to connect the terminal device to the mouse, and issue the switch mount command and disconnect the mouse.
- a terminal device wherein the terminal device includes a memory, a processor, and a shared mouse program among multiple devices that is stored on the memory and can run on the processor, and when executing the shared mouse program between multiple devices , realizing the steps of any one of the methods for sharing a mouse among multiple devices.
- a computer-readable storage medium wherein a mouse sharing program among multiple devices is stored thereon, and when the above-mentioned mouse sharing program between multiple devices is executed by a processor, the mouse sharing method between any one of the multiple devices is realized step.
- the present application provides a method for sharing a mouse between multiple devices.
- the method adopts: interconnecting multiple terminal devices that share the mouse in advance, and establishing a mouse movement rule for multiple terminal devices in advance.
- the mouse gesture information table detect whether the mouse moves out of the screen edge; when it is detected that the mouse moves out of the screen edge, judge whether to switch the mounted terminal device according to the mouse gesture information table; when judging that the mounted terminal device needs to be switched, according to the mouse gesture
- the information table confirms that the target terminal device to be switched and mounted is about to be switched; the control sends a switch mounting command to the target terminal device, so that the mouse switches the mounted terminal device.
- FIG. 1 is a flow chart of a specific implementation of a method for sharing a mouse between multiple devices provided in an embodiment of the present application.
- FIG. 2 is a schematic flowchart of interconnecting multiple terminal devices in advance and establishing a mouse gesture information table provided by an embodiment of the present application.
- FIG. 3 is a schematic flowchart of judging whether to switch the mounted terminal device when the mouse moves out of the edge of the screen provided by the embodiment of the present application.
- FIG. 4 is a schematic flowchart of confirming a target terminal device when it is necessary to switch the hung terminal device according to the embodiment of the present application.
- FIG. 5 is a schematic flow chart of controlling sending a switching mount command to a target terminal device and disconnecting a mouse connection provided by an embodiment of the present application.
- FIG. 6 is a functional block diagram of a device for sharing a mouse among multiple devices provided by an embodiment of the present application.
- FIG. 7 is a schematic diagram of an internal structure of a terminal device provided by an embodiment of the present application.
- an embodiment of the present application provides a method for sharing a mouse between multiple devices.
- one mouse can be used to operate multiple devices, and multiple terminal devices that need to share the mouse Connect to the same network, and set the relationship between mouse gesture information and each device, then detect the mouse gesture and execute the operation of switching the terminal device corresponding to the mouse gesture, so that the mouse can move between multiple terminal devices.
- it is not possible to drag files on different display devices back and forth like an ordinary external display device, it can make the mouse move flexibly between each terminal device, which greatly reduces the frequent switching operations caused by too many terminal devices
- the device causes complex operation problems, effectively improving the user's work efficiency and user experience.
- an embodiment of the present application provides a method for sharing a mouse among multiple devices, and the method for sharing a mouse among multiple devices can be used in various devices such as mobile phones, tablet computers, notebook computers, and desktop computers.
- the method described in the embodiment of the present application includes the following steps:
- Step S100 pre-interconnecting multiple terminal devices that share the use of the mouse, and pre-establishing a mouse gesture information table that multiple terminal devices share mouse movement rules;
- the mouse gesture information table is obtained.
- the method of interconnecting a plurality of terminal devices includes: connecting a plurality of terminals in the same local area network; connecting a plurality of terminals in the Internet, and using information such as ip addresses to enable each terminal to establish a group for interconnection, or It is to interconnect each device through the application software of the terminal device and use a shared mouse.
- the mouse gesture includes the operation gesture that the mouse moves out of the screen through the upper edge of the screen, the lower edge of the screen, the left edge of the screen, and the right edge of the screen;
- the mouse gesture information table includes mouse gestures, terminal devices, mouse gestures and rules for switching terminal devices , for example, when there are three terminal devices connected to the LAN, set the terminal device connected by the mouse as the first terminal device by default, and the other two terminal devices are the second terminal device and the third terminal device respectively.
- mouse gestures and switching terminal devices The rule is that when the mouse makes an operation gesture of moving to the right and moving out of the right edge of the screen, switch and mount the next terminal device, for example, the mouse moves right from the first terminal device to the right and out of the right edge of the screen, then switch and mount the second terminal device; when the mouse is moved from the third terminal device to the right and out of the right edge of the screen, since there is no device behind the third terminal device, the first terminal device is switched and mounted; when the mouse is moved from the second terminal device to the left and out of the left edge of the screen , switch and mount the first terminal device; when the mouse moves from the first terminal device to the left and out of the left edge of the screen, since there is no device in front of the first terminal device, switch and mount the last terminal device, that is, the third terminal device.
- the mouse gesture and the rules for switching between terminal devices can be set by the user.
- the step S100 includes:
- Step S101 interconnecting multiple terminal devices sharing a mouse in advance
- Step S102 acquiring information of multiple terminal devices through the network
- Step S103 establishing a mouse gesture information table for shared use of the mouse according to the information of the terminal device.
- a user currently wants to use a tablet computer, a desktop computer, and a notebook computer for work at the same time.
- the tablet computer is placed on the leftmost side of the desktop, the desktop computer is placed in the center of the desktop, and the notebook computer is placed on the far right side of the desktop.
- the current terminal device where the mouse is located is a desktop computer
- the desktop computer is the current terminal device connected to the mouse
- the desktop computer obtains the information of other terminal devices such as tablet computers and notebook computers through the network, including: device name, network address etc.
- the desktop computer builds a mouse gesture information table based on the obtained terminal device information and mouse gestures.
- the terminal device where the mouse is currently located is defaulted as the first device, and the tablet computer is randomly used as the second device, and the notebook computer is used as the third device. , and set the switching terminal device corresponding to the mouse gesture.
- the mouse is located in the center of the screen of the first device at this time.
- the mouse switch is mounted to the third device, and when the mouse moves to the left in the center of the screen of the first device and moves out of the left edge of the screen, the mouse switch is mounted to the third device, Regardless of whether the mouse is in the first device, the second device or the third device, the mouse gestures of moving up from the upper edge of the screen and moving down from the lower edge of the screen do not correspond to switching any terminal device.
- the second device and the third device also update the mouse gesture information table synchronously.
- step S200 detecting whether the mouse moves out of the edge of the screen
- the current terminal device where the mouse is located detects whether the mouse moves out of the screen, that is, detects whether the mouse gesture includes a mouse gesture.
- the current terminal device After the current terminal device obtains the information of each terminal device and establishes the mouse gesture information table, it continuously detects whether the mouse has a mouse gesture in the currently connected terminal device, that is, whether there is a tendency to move the mouse out of the display area. For example, when the mouse does not touch the edge in the center of the tablet computer, the mouse gesture cannot be detected, and when the mouse moves upwards, it is judged that the mouse has a mouse gesture that moves upwards and moves out of the upper edge of the screen.
- step S300 when it is detected that the mouse moves out of the edge of the screen, judge whether to switch the mounted terminal device according to the mouse gesture information table;
- the step S300 includes:
- Step S301 when it is detected that the mouse is moving in an area within the range of the edge of the screen, the mouse works normally on the currently mounted terminal device;
- Step S302 detecting that the mouse moves out of the edge of the screen, and judging whether to switch the mounted terminal device according to the mouse gesture information table.
- the step of detecting whether the mouse moves out of the edge of the screen and judging whether to switch the mounted terminal device according to the mouse gesture information table includes:
- the number of terminal devices is greater than 2, it is further judged whether it conforms to the gesture of switching the mounted terminal devices in the mouse gesture information table.
- the mouse gesture cannot be detected, and it continues to be mounted on the laptop and keeps running normally.
- the edge, bottom edge, left edge, and right edge move out of the display screen, it is judged that the mouse is detected to move out of the screen edge, and it is further judged according to the mouse gesture whether to switch the mounted terminal device. Judging whether to switch the mounted terminal device according to the mouse gesture information table. Right mouse gesture switches to the first device, but up and down mouse gestures fail to switch devices.
- the number of terminal devices in the mouse gesture information table is less than 2, it is directly determined that there is no need to switch the mounted terminal device, and the mouse cannot move out of the screen through the upper edge, lower edge, left edge, and right edge of the third device Arrive on the screen of another terminal device; when the number of terminal devices in the mouse gesture information table is equal to 2, it is directly judged to switch the mounted terminal device, and the mouse can pass the upper edge, lower edge, and left edge of the third device , the right edge moves out of the screen and arrives on the screen of another terminal device; when the number of terminal devices in the mouse gesture information is greater than 2, it is further judged by the corresponding relationship between the mounted terminal devices in the mouse gesture information table when the mouse moves out of the upper edge Whether the mounted terminal device can be switched when the mouse moves out of the lower edge, whether the mounted terminal device can be switched when the mouse is moved out of the left edge, whether the mounted terminal can be switched when the mouse is moved out of the right edge equipment.
- step S400 when it is judged that the mounted terminal device needs to be switched, confirm the target terminal device to be switched and mounted according to the mouse gesture information table;
- the step S400 includes:
- Step S401 when it is judged that there is no need to switch the mounted terminal device, the mouse cannot be moved out of the screen;
- Step S402 when it is determined that the mounted terminal device needs to be switched, confirm the target terminal device to be switched and mounted according to the mouse gesture information table.
- the mouse when the mouse makes an upward or downward mouse gesture in the notebook computer, it does not conform to the mouse gesture in the mouse gesture information table that needs to switch the terminal device, then the mouse cannot exceed the upper and lower edges of the screen display area,
- the notebook computer when the mouse makes a mouse gesture to move left out of the left edge of the screen or move right out of the right edge of the screen in the notebook computer, according to the mouse gesture information table established by the mouse, the notebook computer, as a third device, makes a leftward move out of the screen
- the target terminal device is the tablet computer of the second device, and when the mouse gesture that moves to the right out of the right edge of the screen is made, the target terminal device switched is the desktop computer of the first device;
- the switching target terminal device is the desktop computer of the first device, and if you make a mouse gesture that moves to the right and out of the right edge of the right edge of the right edge of the right edge of the screen
- step S500 control to send a switch mounting instruction to the target terminal device, so that the mouse switches the mounted terminal device.
- the current terminal device when the target terminal device to be switched is determined, the current terminal device sends a switching mount instruction to the target terminal device through a local area network or the Internet, so that the target terminal device is ready to connect to the mouse, and cuts off the connection between the current terminal device and the mouse .
- the switch mount instruction is sent to the target terminal device by the current terminal device through a local area network or the Internet, so as to make the target terminal device wirelessly control and connect the shared mouse; Shared use of the mouse can only be connected to one terminal device.
- the switch mount command is sent by the current terminal device to the target terminal device through the LAN or the Internet for making the target terminal device Connect to the shared mouse of the current terminal device through the LAN or the Internet, and obtain the operation instructions of the shared mouse in real time, so that the user can control other terminal devices connected to the shared mouse through the shared mouse that can only be linked to one terminal device .
- step S500 includes:
- Step S501 controlling to send a switching and mounting instruction to the target terminal device
- Step S502 control to disconnect the mouse.
- the desktop computer sends a switching mount command to the tablet computer through WIFI, and cuts off the wireless connection between itself and the mouse.
- the tablet computer of the second device receives the switch mount command and controls the connection of the mouse, then the tablet computer of the second device becomes the current terminal device; when the desktop computer of the first device is used as the current terminal device and the mouse moves out of the left edge of the screen At this time, the desktop computer sends a switch mount command to the notebook computer through WIFI, and cuts off the wireless connection between itself and the mouse.
- the notebook computer of the third device receives the switch mount command and controls the connection of the mouse.
- the laptop of the third device becomes the current terminal device.
- the step of controlling sending a switching mount instruction to the target terminal device and disconnecting the wireless connection with the mouse it also includes:
- a switch mount command is sent to the last terminal device wirelessly connected to the mouse.
- the target terminal device such as a third device
- receives a switch mount command, and controls the third device to wirelessly connect to the mouse the user can use the mouse to double-click on the third device to open a file, right-click to open a menu bar, etc. basic functions.
- the third device When it is detected that the current terminal device that is wirelessly connected to the mouse is disconnected from the network, for example, when the third device is powered off, the third device sends a switching mount instruction to the last terminal device wirelessly connected to the mouse before the shutdown.
- the user can customize whether the terminal device connected in the mouse gesture information table is enabled, and when the user does not want the mobile phone connected to WIFI to also have a mouse to enter, the application of the mobile phone in the mouse gesture information table can be disabled. .
- Users can also set the relationship between mouse gestures and switched terminal devices according to their preferences. For example, when a user puts a desktop computer on a table and a tablet computer is placed on a shelf above the desktop, the user wants to move out of the upper edge of the desktop computer and out of the table. To switch the terminal device mounted on the mouse by means of the lower edge of the tablet computer, the user can select the connection relationship between the upper edge of the desktop computer and the lower edge of the tablet computer to set it. Similarly, the four edges of each terminal device can be connected to any The four edges of the terminal equipment carry out the setting of switching terminal equipment.
- a keyboard matching the mouse can be set, and when the mouse is switched and mounted to another terminal device, the keyboard is mounted on another terminal device synchronously, that is, through the mouse Switching and mounting triggers other operating devices to migrate synchronously to another terminal device, truly realizing the purpose of controlling all terminal devices through a set of operating devices and improving user efficiency.
- all terminal operating devices such as touchpads and gamepads can be mounted on multiple terminal devices through the mouse.
- the embodiment of the present application provides a mouse sharing device among multiple devices, which includes: a preset module 610 , a connection module 620 , a detection module 630 , a judgment module 640 , and a command sending and receiving module 650 .
- the preset module 610 obtains information of multiple terminal devices in advance, and establishes a mouse gesture information table in combination with mouse gestures, and determines the corresponding relationship between the direction of mouse movement and the terminal device to be switched and mounted; the connection module 620, It is used to wirelessly connect with the mouse when the mouse needs to be mounted, and disconnect the wireless connection with the mouse when the mouse is not mounted; the detection module 630 is used to detect whether the mouse is moved out of the edge of the screen; the judgment module 640 is used to Judging according to the mouse gesture information table when it is detected that the mouse is moved out of the edge of the screen, whether it is necessary to switch the mounted terminal device and confirm that the target terminal device to be switched is about to be switched; The terminal device wirelessly connects to the mouse, and issues a switching mount instruction and disconnects the wireless connection of the mouse.
- the present application further provides a terminal device, the functional block diagram of which may be shown in FIG. 7 .
- the terminal equipment includes a processor, a memory, a network interface, and a display screen connected through a system bus.
- the processor of the terminal device is used to provide calculation and control capabilities.
- the memory of the terminal device includes a non-volatile storage medium and an internal memory.
- the non-volatile storage medium stores an operating system and computer programs.
- the internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium.
- the network interface of the terminal device is used to communicate with external terminals through a network connection. When the computer program is executed by the processor, a shared mouse among multiple devices is realized.
- the display screen of the terminal device may be a liquid crystal display screen or an electronic ink display screen.
- a terminal device in one embodiment, includes a memory, a processor, and a terminal data processing program stored on the processor and operable on the processor.
- the processor performs the following steps:
- the control sends a switching mount command to the target terminal device, so that the mouse switches the mounted terminal device.
- the step of making the mouse switch the mounted terminal device further includes:
- the steps of interconnecting multiple terminal devices sharing the mouse in advance, and pre-establishing the mouse gesture information table of the mouse movement rules shared by multiple terminal devices include:
- a mouse gesture information table for sharing the use of the mouse is established according to the information of the terminal device.
- the step of judging whether to switch the mounted terminal device according to the mouse gesture information table includes:
- the step of detecting whether the mouse moves out of the edge of the screen and judging whether to switch the mounted terminal device according to the mouse gesture information table includes:
- the number of terminal devices is greater than 2, it is further judged whether it conforms to the gesture of switching the mounted terminal devices in the mouse gesture information table.
- the step of confirming the target terminal device to be switched and mounted according to the mouse gesture information table includes:
- the target terminal device to be switched and mounted is confirmed according to the mouse gesture information table.
- the step of controlling and sending a switch mounting instruction to the target terminal device, so that the mouse switches the mounted terminal device includes:
- Nonvolatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
- Volatile memory can include random access memory (RAM) or external cache memory.
- RAM is available in many forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Chain Synchlink DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
- SRAM Static RAM
- DRAM Dynamic RAM
- SDRAM Synchronous DRAM
- DDRSDRAM Double Data Rate SDRAM
- ESDRAM Enhanced SDRAM
- SLDRAM Synchronous Chain Synchlink DRAM
- Rambus direct RAM
- DRAM direct memory bus dynamic RAM
- RDRAM memory bus dynamic RAM
- the present application discloses a method, device, terminal device and storage medium for sharing a mouse between multiple devices.
- the method includes: interconnecting multiple terminal devices that share a mouse in advance, and establishing multiple terminal Share the use of mouse movement rules; detect whether the mouse has moved out of the edge of the screen, when it is detected that the mouse has moved out of the edge of the screen, determine whether to perform the operation of switching and mounting the terminal device when the mouse is moved out of the edge, and determine the target terminal device to which the mouse is mounted, and the current terminal device sends a switch Send the mount command to the target terminal device and disconnect the mouse, and the target terminal device will connect the mouse after receiving the switching mount command, so as to complete the shared use of the mouse among multiple devices, aiming to solve the problem when the user uses multiple terminal devices at the same time Due to the problem of low work efficiency caused by frequent switching of operating devices, the work efficiency and user experience of users when using multiple terminal devices at the same time are improved.
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Position Input By Displaying (AREA)
Abstract
本申请公开一种多设备间共享鼠标方法、装置、终端设备及存储介质,该方法包括:预先将共享使用鼠标的多个终端设备互联;当检测到鼠标移出屏幕边缘时,判断是否切换挂载终端设备及确定目标终端设备,当前终端设备发送切换挂载指令给目标终端设备,目标终端设备连接鼠标,提高同时使用多个终端设备时的工作效率以及使用体验。
Description
本申请涉及终端设备领域,尤其涉及的是一种多设备间共享鼠标方法、装置、终端设备及存储介质。
随着科技的发展,越来越多的人拥有多个终端设备,例如台式机、笔记本电脑、平板电脑等,当用户在将它们用于工作时,多个终端设备会使工作台变得凌乱,而且用户的操作也不方便,例如使用平板电脑时需要使用触摸屏触控,使用笔记本电脑时需要使用触摸板触控,使用电脑时则共享使用鼠标进行操作。
虽然平板电脑和笔记本电脑都可以挂载鼠标,但分别给三个设备购买三个鼠标,并且在三个设备同时使用时需要搭配三个鼠标来完成任务,大大的降低了工作效率。因此,现有技术还有待改进和发展。
本申请要解决的技术问题在于,针对现有技术的上述缺陷,提供一种多设备间共享鼠标方法、装置、终端设备及存储介质,本申请解决了现有技术中当用户同时使用多个终端设备时需频繁切换操作设备带来的工作效率低下的问题。
为了解决上述技术问题,本申请采用的技术方案如下:
一种多设备间共享鼠标方法,其中,所述方法包括:
预先将共享使用鼠标的多个终端设备进行互联,以及预先建立多个终端设备共享使用鼠标移动规则的鼠标手势信息表;
检测鼠标是否移出屏幕边缘;
当检测到鼠标移出屏幕边缘时,根据鼠标手势信息表判断是否切换挂载的终端设备;
当判断需要切换挂载的终端设备时,根据鼠标手势信息表确认即将切换挂载的目标终端设备;
控制发送切换挂载指令给目标终端设备,使鼠标切换挂载的终端设备。
所述的多设备间共享鼠标方法,其中,所述控制发送切换挂载指令给目标终端设备,使鼠标切换挂载的终端设备的步骤之后还包括:
当检测接收到切换挂载指令时,控制连接鼠标;
当检测到断开网络连接,发送切换挂载指令给上一个与鼠标连接的终端设备。
所述的多设备间共享鼠标方法,其中,所述预先将共享使用鼠标的多个终端设备进行互联,以及预先建立多个终端设备共享使用鼠标移动规则的鼠标手势信息表的步骤包括:
预先将共享使用鼠标的多个终端设备进行互联;
通过网络获取多个终端设备的信息;
根据终端设备的信息建立共享使用鼠标的鼠标手势信息表。
所述的多设备间共享鼠标方法,其中,所述当检测到鼠标移出屏幕边缘时,根据鼠标手势信息表判断是否切换挂载的终端设备的步骤包括:
检测到鼠标在屏幕边缘范围以内的区域运动时,鼠标在当前挂载的终端设备上正常工作;
检测到鼠标移出屏幕边缘,根据鼠标手势信息表判断是否切换挂载的终端设备。
所述的多设备间共享鼠标方法,其中,所述检测到鼠标移出屏幕边缘,根据鼠标手势信息表判断是否切换挂载的终端设备的步骤包括:
判断当前鼠标手势信息表中连接的终端设备的个数;
若终端设备个数小于2个,则直接判断不需要切换挂载的设备终端;
若终端设备个数等于2个,则直接判断需要切换挂载的终端设备;
若终端设备个数大于2个,则进一步判断是否符合鼠标手势信息表中切换挂载的终端设备的手势。
所述的多设备间共享鼠标方法,其中,所述当判断需要切换挂载的终端设备时,根据鼠标手势信息表确认即将切换挂载的目标终端设备的步骤包括:
当判断不需要切换挂载的终端设备时,鼠标无法移出屏幕;
当判断需要切换挂载的终端设备时,根据鼠标手势信息表确认即将切换挂载的目标终端设备。
所述的多设备间共享鼠标方法,其中,所述控制发送切换挂载指令给目标终端设备,使鼠标切换挂载的终端设备的步骤包括:
控制发送切换挂载指令给目标终端设备;
控制断开与鼠标的连接。
一种多设备间鼠标共享装置,其中,所述装置包括:
预设模块,预先获取多个终端设备的信息,并结合鼠标手势建立鼠标手势信息表,确定鼠标移出方向与切换挂载的终端设备的对应关系;
连接模块,用于在需要鼠标挂载时与鼠标连接,不需要鼠标挂载时断开与鼠标的连接;
检测模块,用于检测鼠标是否移出屏幕边缘;
判断模块,用于根据鼠标手势信息表判断当检测到鼠标移出屏幕边缘时,是否需要切换挂载的终端设备以及确认即将切换挂载的目标终端设备;
指令发送接收模块,用于接收切换挂载指令使终端设备连接鼠标,以及发出切换挂载指令并断开鼠标的连接。
一种终端设备,其中,所述终端设备包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的多设备间共享鼠标程序,所述执行多设备间共享鼠标程序时,实现任一项所述的多设备间共享鼠标方法的步骤。
一种计算机可读存储介质,其中,其上存储有多设备间共享鼠标程序,上所述多设备间鼠标共享程序被处理器执行时,实现任一项所述的多设备间鼠标共享方法的步骤。
与现有技术相比,本申请提供了一种多设备间共享鼠标方法,所述方法采用:预先将共享使用鼠标的多个终端设备进行互联,以及预先建立多个终端设备共享使用鼠标移动规则的鼠标手势信息表;检测鼠标是否移出屏幕边缘;当检测到鼠标移出屏幕边缘时,根据鼠标手势信息表判断是否切换挂载的终端设备;当判断需要切换挂载的终端设备时,根据鼠标手势信息表确认即将切换挂载的目标终端设备;控制发送切换挂载指令给目标终端设备,使鼠标切换挂载的终端设备。通过该方法可使用户在同时使用多个终端设备时仅通过用一个鼠标即可对所有终端设备进行操控,大大提高了多终端设备时的工作效率,使工作台更加干净整洁。
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1 是本申请实施例提供的多设备间共享鼠标方法的具体实施方式的流程图。
图2是本申请实施例提供的预先使多个终端设备进行互联并建立鼠标手势信息表的流程示意图。
图3是本申请实施例提供的当鼠标移出屏幕边缘判断是否切换挂载终端设备的流程示意图。
图4是本申请实施例提供的当需要切换挂在终端设备时确认目标终端设备的流程示意图。
图5是本申请实施例提供的控制发送切换挂载指令给目标终端设备并断开鼠标连接的流程示意图。
图6是本申请实施例提供的多设备间共享鼠标装置的原理框图。
图7是本申请实施例提供的终端设备的内部结构原理图。
为使本申请的目的、技术方案及优点更加清楚、明确,以下参照附图并举实施例对本申请进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
需要说明,若本申请实施例中有涉及方向性指示(诸如上、下、左、右、前、后……),则该方向性指示仅用于解释在某一特定姿态(如附图所示)下各部件之间的相对位置关系、运动情况等,如果该特定姿态发生改变时,则该方向性指示也相应地随之改变。
另外,若本申请实施例中有涉及“第一”、“第二”等的描述,则该“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本申请要求的保护范围之内。
随着科技的发展和人们生活水平的不断提高,电子设备例如手机、笔记本电脑、平板电脑的性能逐渐提高,且价格逐渐变低,例如苹果手机中iPhone4在2010年6月发布的上市价格为4999元,而2020年的今日苹果最便宜的一款手机iPhone 12 mini的售价也仅仅比十年前增加了500元,所以越来越多的年轻人除了常用的手机之外还会为自己购置台式电脑,笔记本电脑,平板电脑等多种电子设备。
但很多人购买平板或笔记本的初衷是为了便于携带,随时随地可以进行学习、娱乐、工作,且在有需要时可以利用多个设备进行工作,但实际使用起来发现当使用两台设备例如台式机和平板电脑进行工作就已经有不小的难度,因为台式机需要用到键盘和鼠标,而平板电脑在不外接键盘的情况下需要使用触摸屏进行操作,来回的切换操作模式和操作设备不仅不会提高工作效率,反而会降低工作效率并且带来不适的操作体验,而使用三个及以上的设备进行工作时基本上只能给工作带来负面效果,可以看出,更多的设备确实可以打开更多的内容进行浏览,而且可以同时使用windows、ios、linux、mac等多种操作系统,因此唯一的缺点就在于使用的终端设备越多,需要切换使用的操作设备也就更多。
为了解决上述问题,本申请实施例提供一种多设备间共享鼠标方法,根据本实施例的多设备间共享鼠标方法可以用一个鼠标操作多个设备,预先使多个需要共享使用鼠标的终端设备连接同一个网络,并设定鼠标手势信息与各设备间的联系,再检测鼠标手势并对鼠标手势对应的切换终端设备的操作进行执行,使鼠标能够在多个终端设备间移动。虽然做不到像普通的外接显示设备一样能够将不同显示设备上的文件来回拖动,但是可以使鼠标在各终端设备间灵活的移动,大大减少了因为终端设备太多带来的频繁切换操作设备导致操作复杂的问题,有效提高用户的工作效率以及用户体验。
示例性方法
第一实施例
如图1中所示,本申请实施例提供一种多设备间共享鼠标方法,所述多设备间共享鼠标方法可用于手机、平板电脑、笔记本电脑以及台式电脑等多种设备中。本申请实施例中所述方法包括如下步骤:
步骤S100、预先将共享使用鼠标的多个终端设备进行互联,以及预先建立多个终端设备共享使用鼠标移动规则的鼠标手势信息表;
在本实施例中,在共享使用鼠标控制多终端设备之前,将需要共享使用鼠标控制的多个终端设备进行互联,使鼠标能够通过当前正在连接的终端设备获得其他终端设备的信息,并在获得设备终端的信息后将其与鼠标手势建立对应关系,得到鼠标手势信息表。所述将多个终端设备进行互联的方式包括:将多个终端连接于同一局域网中;将多个终端连接于互联网中,并且可以通过ip地址等信息使各终端建立群组进行互联,也可以是通过终端设备的应用软件将各设备进行互联并使用共享使用鼠标。
所述鼠标手势包括鼠标通过屏幕上边缘、屏幕下边缘、屏幕左边缘、屏幕右边缘移出屏幕的操作手势;所述鼠标手势信息表包括鼠标手势、终端设备以及鼠标手势和切换终端设备间的规则,例如当有三台终端设备连接局域网时,设置鼠标默认接入的终端设备为第一终端设备,另外两台终端设备分别为第二终端设备、第三终端设备,此时鼠标手势和切换终端设备间的规则为当鼠标做出向右移动并移出屏幕右边缘的操作手势时,切换挂载后一个终端设备,例如鼠标从第一终端设备向右移出屏幕右边缘,则切换挂载第二终端设备;鼠标从第三终端设备向右移出屏幕右边缘时,由于所述第三终端设备后无设备,则切换挂载第一终端设备;当鼠标从第二终端设备向左移移出屏幕左边缘时,切换挂载第一终端设备;当鼠标从第一终端设备向左移出屏幕左边缘时,由于所述第一终端设备前无设备,则切换挂载最后一个终端设备即第三终端设备。所述鼠标手势和切换终端设备间的规则可由用户设定。
具体地,如图2所示,所述步骤S100包括:
步骤S101、预先将共享使用鼠标的多个终端设备进行互联;
步骤S102、通过网络获取多个终端设备的信息;
步骤S103、根据终端设备的信息建立共享使用鼠标的鼠标手势信息表。
举例说明,例如某用户当前希望同时使用平板电脑、台式电脑以及笔记本电脑进行工作,平板电脑摆放在桌面的最左侧,台式电脑摆放在桌面中央,笔记本电脑摆放在桌面最右侧,例如当前鼠标所在的终端设备为台式电脑,则台式电脑即为鼠标所连接的当前终端设备,台式电脑通过网络获取其余终端设备例如平板电脑以及笔记本电脑的终端设备的信息,其中包括:设备名称、网络地址等。台式电脑根据获得的终端设备的信息与鼠标手势建立鼠标手势信息表,例如将鼠标当前所在的终端设备默认为作为第一设备,并随机将平板电脑作为第二设备,将笔记本电脑作为第三设备,并设置鼠标手势对应的切换的终端设备,例如鼠标此时位于第一设备屏幕中央,当鼠标向右移动并移出第一设备的屏幕右边缘时,鼠标切换挂载到第二设备,当鼠标继续右移并移出第二设备的屏幕右边缘时,鼠标切换挂载到第三设备,而当鼠标在第一设备屏幕中央向左移移出屏幕左边缘时,鼠标切换挂载到第三设备,而不论鼠标在第一设备、第二设备还是第三设备中时,向上移出屏幕上边缘和向下移出屏幕下边缘的鼠标手势不对应切换任何终端设备。同时第二设备与第三设备也同步更新该鼠标手势信息表。
进一步地,步骤S200、检测鼠标是否移出屏幕边缘;
在本实施例中,鼠标所在的当前终端设备检测鼠标是否移出屏幕即检测鼠标动作中是否含有鼠标手势。
举例说明,当当前终端设备获取各终端设备的信息以及建立鼠标手势信息表后,持续检测鼠标在当前连接的终端设备中有无鼠标手势,即有无将鼠标移出显示区域的趋势。例如当鼠标在平板电脑中央不触及边缘时,检测不到鼠标手势,当鼠标往上移动有贴近并移出屏幕上边缘的趋势时判断鼠标有向上移动并移出屏幕上边缘的鼠标手势。
进一步地,步骤S300、当检测到鼠标移出屏幕边缘时,根据鼠标手势信息表判断是否切换挂载的终端设备;
在本实施例中,当检测到鼠标即将移出屏幕时,根据鼠标手势信息表判断该鼠标手势是否存在对应的终端设备切换操作。
具体地,如图3所示所述步骤S300包括:
步骤S301、检测到鼠标在屏幕边缘范围以内的区域运动时,鼠标在当前挂载的终端设备上正常工作;
步骤S302、检测到鼠标移出屏幕边缘,根据鼠标手势信息表判断是否切换挂载的终端设备。
其中,所述检测到鼠标移出屏幕边缘,根据鼠标手势信息表判断是否切换挂载的终端设备的步骤包括:
判断当前鼠标手势信息表中连接的终端设备的个数;
若终端设备个数小于2个,则直接判断不需要切换挂载的设备终端;
若终端设备个数等于2个,则直接判断需要切换挂载的终端设备;
若终端设备个数大于2个,则进一步判断是否符合鼠标手势信息表中切换挂载的终端设备的手势。
举例说明,当鼠标此时在笔记本电脑上正常使用并且没有碰到显示区域边缘时,检测不到鼠标手势,继续挂载在笔记本电脑上且保持正常运行,当检测到鼠标有即将通过显示屏上边缘、下边缘、左边缘、右边缘移出显示屏的动作时,判断检测到鼠标移出屏幕边缘,进一步根据鼠标手势判断是否需要切换挂载的终端设备。根据鼠标手势信息表判断是否需要切换挂载的终端设备,例如当前所述笔记本电脑在鼠标建立的鼠标手势信息表中为第三设备,可以通过向左的鼠标手势切换到第二设备,也可以通过向右的鼠标手势切换到第一设备,但若是向上和向下的鼠标手势则无法切换设备。且当鼠标手势信息表中终端设备的个数小于2个时,直接判断不需要切换挂载的终端设备,鼠标无法通过所述第三设备的上边缘、下边缘、左边缘、右边缘移出屏幕到达另一终端设备屏幕上;当鼠标手势信息表中终端设备的个数等于2个时,直接判断切换挂载的终端设备,鼠标可以通过所述第三设备的上边缘、下边缘、左边缘、右边缘移出屏幕到达另一终端设备屏幕上;当鼠标手势信息中终端设备的个数大于2个时,进一步通过鼠标手势信息表中切换挂载的终端设备的对应关系判断当鼠标移出上边缘时能否切换挂载的终端设备,鼠标移出下边缘时能否切换挂载的终端设备,鼠标移出左边缘是能否切换挂载的终端设备,鼠标移出右边缘时能否切换挂载的终端设备。
进一步地,步骤S400、当判断需要切换挂载的终端设备时,根据鼠标手势信息表确认即将切换挂载的目标终端设备;
在本实施例中,当判断所述鼠标手势需要执行切换鼠标挂载的终端设备时,根据鼠标手势信息表确认鼠标即将切换到哪一个终端设备。
具体地,如图4所示,所述步骤S400包括:
步骤S401、当判断不需要切换挂载的终端设备时,鼠标无法移出屏幕;
步骤S402、当判断需要切换挂载的终端设备时,根据鼠标手势信息表确认即将切换挂载的目标终端设备。
举例说明,当所述鼠标在笔记本电脑中做出向上或向下的鼠标手势时不符合鼠标手势信息表中需要切换终端设备的鼠标手势,则鼠标不能超过屏幕显示区域的上边缘和下边缘,当所述鼠标在笔记本电脑中做出向左移出屏幕左边缘或向右移出屏幕右边缘的鼠标手势时,根据鼠标建立的鼠标手势信息表,笔记本电脑作为第三设备,做出向左移出屏幕左边缘的鼠标手势时切换的目标终端设备为第二设备的平板电脑,做出向右移出屏幕右边缘的鼠标手势时切换的目标终端设备为第一设备的台式电脑;同样的当所述鼠标挂载在平板电脑时,做出向左移出屏幕左边缘的鼠标手势则判断切换的目标终端设备为第一设备的台式电脑,做出向右移出屏幕右边缘的鼠标手势则判断切换的目标终端设备为第三设备的笔记本电脑上。
进一步地,步骤S500、控制发送切换挂载指令给目标终端设备,使鼠标切换挂载的终端设备。
在本实施例中,当确定即将切换的目标终端设备时,当前终端设备通过局域网或互联网发送切换挂载指令给目标终端设备,使目标终端设备准备连接鼠标,并切断当前终端设备与鼠标的连接。
当使用的共享使用鼠标为蓝牙鼠标等无线鼠标时,所述切换挂载指令由当前终端设备通过局域网或互联网发送给目标终端设备,用于使目标终端设备无线控制连接共享使用鼠标;当使用的共享使用鼠标仅能连接一台终端设备例如鼠标为有线连接或只有一个2.4G接收器时,所述切换挂载指令由当前终端设备通过局域网或互联网发送给目标终端设备,用于使目标终端设备通过局域网或互联网连接到当前终端设备的共享使用鼠标上,实时获取共享使用鼠标的操作指令,使用户通过仅能链接一台终端设备的共享使用鼠标也能控制其他互联使用共享使用鼠标的终端设备。
具体地,如图5所示,步骤S500包括:
步骤S501、控制发送切换挂载指令给目标终端设备;
步骤S502、控制断开与鼠标的连接。
举例说明,当当前终端设备为第一设备的台式电脑,且鼠标移出屏幕右边缘时,所述台式电脑通过WIFI向平板电脑发送切换挂载指令,并切断自身与鼠标的无线连接,此时所述第二设备的平板电脑接收到切换挂载指令,控制连接鼠标,则所述第二设备的平板电脑变为当前终端设备;当第一设备的台式电脑作为当前终端设备且鼠标移出屏幕左边缘时,所述台式机通过WIFI向笔记本电脑发送切换挂载指令,并切断自身与鼠标的无线连接,此时所述第三设备的笔记本电脑接收到切换挂载指令,控制连接鼠标,则所述第三设备的笔记本电脑变为当前终端设备。
在所述控制发送切换挂载指令给目标终端设备,并断开与鼠标的无线连接的步骤之后还包括:
当检测接收到切换挂载指令时,控制连接鼠标;
当检测到断开网络连接,发送切换挂载指令给上一个与鼠标无线连接的终端设备。
举例说明,当目标终端设备例如第三设备接收到切换挂载指令时,控制第三设备无线连接鼠标,则用户可以通过鼠标在所述第三设备上进行双击打开文件,右键打开菜单栏等鼠标的基本功能。
当检测到正在无线连接鼠标的当前终端设备断开网络连接,例如第三设备关机时,则所述第三设备在关机前发送切换挂载指令给上一个无线连接鼠标的终端设备。
在第二实施例中,用户可以自定义鼠标手势信息表中连接的终端设备是否启用,当用户不希望连接WIFI的手机也有鼠标进入时,可设置禁用所述手机在鼠标手势信息表中的应用。用户还可根据自己的喜好设置鼠标手势与切换的终端设备间的联系,例如用户将台式电脑放于桌上而平板电脑置于桌面上方的架子上时,用户希望通过移出台式电脑上边缘与移出平板电脑下边缘的方式切换鼠标挂载的终端设备,则用户可选择台式电脑上边缘-平板电脑下边缘的连接关系将其进行设置,同理,每一个终端设备的四个边缘都可连接任意终端设备的四个边缘进行切换终端设备的设置。
在第三实施例中,为进一步提升用户的使用体验,可以设置与鼠标配套的键盘,当鼠标切换挂载到另一终端设备时,同步将键盘挂载到另一终端设备上,即通过鼠标切换挂载触发其他操作设备进行同步迁移到另一终端设备上,真正实现通过一套操作设备即可控制所有终端设备,提高用户使用效率的目的。除此之外,触摸板、游戏手柄等所有终端的操作设备都可通过鼠标将其在多个终端设备上进行挂载。
如图6中所示,本申请实施例提供一种多设备间共享鼠标装置,该装置包括:预设模块610、连接模块620、检测模块630、判断模块640、指令发送接收模块650。具体地,所述预设模块610,预先获取多个终端设备的信息,并结合鼠标手势建立鼠标手势信息表,确定鼠标移出方向与切换挂载的终端设备的对应关系;所述连接模块620,用于在需要鼠标挂载时与鼠标无线连接,不需要鼠标挂载时断开与鼠标的无线连接;所述检测模块630,用于检测鼠标是否移出屏幕边缘;所述判断模块640,用于根据鼠标手势信息表判断当检测到鼠标移出屏幕边缘时,是否需要切换挂载的终端设备以及确认即将切换挂载的目标终端设备;所述指令发送接收模块650,用于接收切换挂载指令使终端设备无线连接鼠标,以及发出切换挂载指令并断开鼠标的无线连接。
基于上述实施例,本申请还提供了一种终端设备,其原理框图可以如图7所示。该终端设备包括通过系统总线连接的处理器、存储器、网络接口、显示屏。其中,该终端设备的处理器用于提供计算和控制能力。该终端设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该终端设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种多设备间共享鼠标。该终端设备的显示屏可以是液晶显示屏或者电子墨水显示屏。
本领域技术人员可以理解,图7中示出的原理框图,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的终端设备的限定,具体的终端设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
在一个实施例中,提供了一种终端设备,终端设备包括存储器、处理器及存储在处理器上并可在处理器上运行的终端数据处理程序,处理器执行如下步骤:
预先将共享使用鼠标的多个终端设备进行互联,以及预先建立多个终端设备共享使用鼠标移动规则的鼠标手势信息表;
检测鼠标是否移出屏幕边缘;
当检测到鼠标移出屏幕边缘时,根据鼠标手势信息表判断是否切换挂载的终端设备;
当判断需要切换挂载的终端设备时,根据鼠标手势信息表确认即将切换挂载的目标终端设备;
控制发送切换挂载指令给目标终端设备,使鼠标切换挂载的终端设备。
其中,所述控制发送切换挂载指令给目标终端设备,使鼠标切换挂载的终端设备的步骤之后还包括:
当检测接收到切换挂载指令时,控制连接鼠标;
当检测到断开网络连接,发送切换挂载指令给上一个与鼠标连接的终端设备。
其中,所述预先将共享使用鼠标的多个终端设备进行互联,以及预先建立多个终端设备共享使用鼠标移动规则的鼠标手势信息表的步骤包括:
预先将共享使用鼠标的多个终端设备进行互联;
通过网络获取多个终端设备的信息;
根据终端设备的信息建立共享使用鼠标的鼠标手势信息表。
其中,所述当检测到鼠标移出屏幕边缘时,根据鼠标手势信息表判断是否切换挂载的终端设备的步骤包括:
检测到鼠标在屏幕边缘范围以内的区域运动时,鼠标在当前挂载的终端设备上正常工作;
检测到鼠标移出屏幕边缘,根据鼠标手势信息表判断是否切换挂载的终端设备。
其中,所述检测到鼠标移出屏幕边缘,根据鼠标手势信息表判断是否切换挂载的终端设备的步骤包括:
判断当前鼠标手势信息表中连接的终端设备的个数;
若终端设备个数小于2个,则直接判断不需要切换挂载的设备终端;
若终端设备个数等于2个,则直接判断需要切换挂载的终端设备;
若终端设备个数大于2个,则进一步判断是否符合鼠标手势信息表中切换挂载的终端设备的手势。
其中,所述当判断需要切换挂载的终端设备时,根据鼠标手势信息表确认即将切换挂载的目标终端设备的步骤包括:
当判断不需要切换挂载的终端设备时,鼠标无法移出屏幕;
当判断需要切换挂载的终端设备时,根据鼠标手势信息表确认即将切换挂载的目标终端设备。
其中,所述控制发送切换挂载指令给目标终端设备,使鼠标切换挂载的终端设备的步骤包括:
控制发送切换挂载指令给目标终端设备;
控制断开与鼠标的连接。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink) DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。
综上所述,本申请公开了一种多设备间共享鼠标方法、装置、终端设备及存储介质,所述方法包括:预先将共享使用鼠标的多个终端设备进行互联,以及建立多个终端设备共享使用鼠标移动规则;检测鼠标是否移出屏幕边缘,当检测到鼠标移出屏幕边缘时,判断移出该边缘是否执行切换挂载终端设备的操作以及确定鼠标挂载的目标终端设备,当前终端设备发送切换挂载指令给目标终端设备并断开鼠标连接,目标终端设备接收到切换挂载指令后连接鼠标,以此完成鼠标在多个设备间的共享使用,旨在解决当用户同时使用多个终端设备时因频繁切换操作设备带来的工作效率低下的问题,提高了用户在同时使用多个终端设备时的工作效率以及使用体验。
应当理解的是,本申请公开的应用不限于上述的举例,对本领域普通技术人员来说,可以根据上述说明加以改进或变换,所有这些改进和变换都应属于本申请所附权利要求的保护范围。
Claims (20)
- 一种多设备间共享鼠标方法,其中,所述方法包括:预先将共享使用鼠标的多个终端设备进行互联,以及预先建立多个终端设备共享使用鼠标移动规则的鼠标手势信息表;检测鼠标是否移出屏幕边缘;当检测到鼠标移出屏幕边缘时,根据鼠标手势信息表判断是否切换挂载的终端设备;当判断需要切换挂载的终端设备时,根据鼠标手势信息表确认即将切换挂载的目标终端设备;控制发送切换挂载指令给目标终端设备,使鼠标切换挂载的终端设备。
- 根据权利要求1所述的多设备间共享鼠标方法,其中,所述控制发送切换挂载指令给目标终端设备,使鼠标切换挂载的终端设备的步骤之后还包括:当检测接收到切换挂载指令时,控制连接鼠标;当检测到断开网络连接,发送切换挂载指令给上一个与鼠标连接的终端设备。
- 根据权利要求1所述的多设备间共享鼠标方法,其中,所述预先将共享使用鼠标的多个终端设备进行互联,以及预先建立多个终端设备共享使用鼠标移动规则的鼠标手势信息表的步骤包括:预先将共享使用鼠标的多个终端设备进行互联;通过网络获取多个终端设备的信息;根据终端设备的信息建立共享使用鼠标的鼠标手势信息表。
- 根据权利要求1所述的多设备间共享鼠标方法,其中,所述当检测到鼠标移出屏幕边缘时,根据鼠标手势信息表判断是否切换挂载的终端设备的步骤包括:检测到鼠标在屏幕边缘范围以内的区域运动时,鼠标在当前挂载的终端设备上正常工作;检测到鼠标移出屏幕边缘,根据鼠标手势信息表判断是否切换挂载的终端设备。
- 根据权利要求4所述的多设备间共享鼠标方法,其中,所述检测到鼠标移出屏幕边缘,根据鼠标手势信息表判断是否切换挂载的终端设备的步骤包括:判断当前鼠标手势信息表中连接的终端设备的个数;若终端设备个数小于2个,则直接判断不需要切换挂载的设备终端;若终端设备个数等于2个,则直接判断需要切换挂载的终端设备;若终端设备个数大于2个,则进一步判断是否符合鼠标手势信息表中切换挂载的终端设备的手势。
- 根据权利要求1所述的多设备间共享鼠标方法,其中,所述当判断需要切换挂载的终端设备时,根据鼠标手势信息表确认即将切换挂载的目标终端设备的步骤包括:当判断不需要切换挂载的终端设备时,鼠标无法移出屏幕;当判断需要切换挂载的终端设备时,根据鼠标手势信息表确认即将切换挂载的目标终端设备。
- 根据权利要求1所述的多设备间共享鼠标方法,其中,所述控制发送切换挂载指令给目标终端设备,使鼠标切换挂载的终端设备的步骤包括:控制发送切换挂载指令给目标终端设备;控制断开与鼠标的连接。
- 根据权利要求1所述的多设备间共享鼠标方法,其中,所述鼠标手势信息表中包括每个所述终端设备的信息与对应的鼠标手势的对应关系。
- 根据权利要求8所述的多设备间共享鼠标方法,其中,所述鼠标手势包括鼠标通过屏幕上边缘、屏幕下边缘、屏幕左边缘、屏幕右边缘移出屏幕的操作手势。
- 根据权利要求1所述的多设备间共享鼠标方法,其中,所述检测鼠标是否移出屏幕边缘的步骤包括:检测鼠标动作中是否含有鼠标手势。
- 根据权利要求10所述的多设备间共享鼠标方法,其中,所述检测鼠标动作中是否含有鼠标手势的步骤包括:当检测到鼠标有即将通过显示屏上边缘、下边缘、左边缘、右边缘移出显示屏的动作时,判断检测到鼠标移出屏幕边缘。
- 一种多设备间鼠标共享装置,其中,所述装置包括:预设模块,用于预先获取多个终端设备的信息,并结合鼠标手势建立鼠标手势信息表,确定鼠标移出方向与切换挂载的终端设备的对应关系;连接模块,用于在需要鼠标挂载时与鼠标连接,不需要鼠标挂载时断开与鼠标的连接;检测模块,用于检测鼠标是否移出屏幕边缘;判断模块,用于根据鼠标手势信息表判断当检测到鼠标移出屏幕边缘时,是否需要切换挂载的终端设备以及确认即将切换挂载的目标终端设备;指令发送接收模块,用于接收切换挂载指令使终端设备连接鼠标,以及发出切换挂载指令并断开鼠标的连接。
- 根据权利要求12所述的多设备间共享鼠标装置,其中,所述装置还包括指令发送接收模块,用于:当检测接收到切换挂载指令时,控制连接鼠标;当检测到断开网络连接,发送切换挂载指令给上一个与鼠标连接的终端设备。
- 根据权利要求12所述的多设备间共享鼠标装置,其中,所述预设模块,用于:预先将共享使用鼠标的多个终端设备进行互联;通过网络获取多个终端设备的信息;根据终端设备的信息建立共享使用鼠标的鼠标手势信息表。
- 根据权利要求1所述的多设备间共享鼠标装置,其中,所述判断模块,用于:检测到鼠标在屏幕边缘范围以内的区域运动时,鼠标在当前挂载的终端设备上正常工作;检测到鼠标移出屏幕边缘,根据鼠标手势信息表判断是否切换挂载的终端设备。
- 根据权利要求15所述的多设备间共享鼠标装置,其中,所述判断模块,还用于:判断当前鼠标手势信息表中连接的终端设备的个数;若终端设备个数小于2个,则直接判断不需要切换挂载的设备终端;若终端设备个数等于2个,则直接判断需要切换挂载的终端设备;若终端设备个数大于2个,则进一步判断是否符合鼠标手势信息表中切换挂载的终端设备的手势。
- 根据权利要求12所述的多设备间共享鼠标装置,其中,所述判断模块,还用于:当判断不需要切换挂载的终端设备时,鼠标无法移出屏幕;当判断需要切换挂载的终端设备时,根据鼠标手势信息表确认即将切换挂载的目标终端设备。
- 根据权利要求12所述的多设备间共享鼠标装置,其中,所述指令发送接收模块,用于:控制发送切换挂载指令给目标终端设备;控制断开与鼠标的连接。
- 一种终端设备,其中,所述终端设备包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的多设备间共享鼠标程序,所述执行多设备间共享鼠标程序时,实现如权利要求1-11任一项所述的多设备间共享鼠标方法的步骤。
- 一种计算机可读存储介质,其中,其上存储有多设备间共享鼠标程序,上所述多设备间鼠标共享程序被处理器执行时,实现如权利要求1-11任一项所述的多设备间鼠标共享方法的步骤。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110614983.8 | 2021-06-02 | ||
CN202110614983.8A CN113377272A (zh) | 2021-06-02 | 2021-06-02 | 一种多设备间共享鼠标方法、装置、终端设备及存储介质 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022252733A1 true WO2022252733A1 (zh) | 2022-12-08 |
Family
ID=77575536
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/080039 WO2022252733A1 (zh) | 2021-06-02 | 2022-03-09 | 一种多设备间共享鼠标方法、装置、终端设备及存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN113377272A (zh) |
WO (1) | WO2022252733A1 (zh) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113377272A (zh) * | 2021-06-02 | 2021-09-10 | Tcl通讯(宁波)有限公司 | 一种多设备间共享鼠标方法、装置、终端设备及存储介质 |
CN115884140A (zh) * | 2021-09-29 | 2023-03-31 | 华为技术有限公司 | 跨设备连接方法、电子设备及存储介质 |
CN113835769B (zh) * | 2021-11-29 | 2022-02-22 | 深圳雷柏科技股份有限公司 | Hid设备跨计算机控制和文件共享方法、装置及相关组件 |
CN114885442A (zh) * | 2022-03-25 | 2022-08-09 | 华为技术有限公司 | 一种输入设备的连接方法、设备及系统 |
TWI820661B (zh) * | 2022-04-01 | 2023-11-01 | 群光電子股份有限公司 | 切換目標裝置的滑鼠裝置及方法 |
CN118363466A (zh) * | 2023-01-19 | 2024-07-19 | 华为终端有限公司 | 多设备之间共享键盘和鼠标的方法及电子设备 |
CN117234347B (zh) * | 2023-10-10 | 2024-08-13 | 深圳市江元科技(集团)有限公司 | 一种鼠标的工作模式切换方法、系统和可读存储介质 |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH1131064A (ja) * | 1997-07-11 | 1999-02-02 | Mitsubishi Electric Corp | マウス・キーボード切替装置及びマウス・キーボード切替方法 |
CN104598055A (zh) * | 2015-02-09 | 2015-05-06 | 联想(北京)有限公司 | 一种状态处理方法、无线鼠标器及多设备无线控制系统 |
CN105512086A (zh) * | 2016-02-16 | 2016-04-20 | 联想(北京)有限公司 | 信息处理设备以及信息处理方法 |
US20190384481A1 (en) * | 2018-06-14 | 2019-12-19 | International Business Machines Corporation | Multiple monitor mouse movement assistant |
CN110989952A (zh) * | 2019-11-27 | 2020-04-10 | 广州朗国电子科技有限公司 | 一种基于多屏幕的鼠标共享实现方法、装置及系统 |
CN111708446A (zh) * | 2020-06-22 | 2020-09-25 | 重庆紫光华山智安科技有限公司 | 鼠标漫游方法、系统、电子设备和存储介质 |
CN113377272A (zh) * | 2021-06-02 | 2021-09-10 | Tcl通讯(宁波)有限公司 | 一种多设备间共享鼠标方法、装置、终端设备及存储介质 |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103701908A (zh) * | 2013-12-28 | 2014-04-02 | 华为技术有限公司 | 远程交互方法、装置及系统 |
CN107360543A (zh) * | 2017-06-13 | 2017-11-17 | 青岛海信电器股份有限公司 | 一种基于多个设备间共享外设操作的方法及装置 |
CN107704116A (zh) * | 2017-10-18 | 2018-02-16 | 冯迎安 | 一种鼠标多屏手势识别方法 |
-
2021
- 2021-06-02 CN CN202110614983.8A patent/CN113377272A/zh active Pending
-
2022
- 2022-03-09 WO PCT/CN2022/080039 patent/WO2022252733A1/zh active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH1131064A (ja) * | 1997-07-11 | 1999-02-02 | Mitsubishi Electric Corp | マウス・キーボード切替装置及びマウス・キーボード切替方法 |
CN104598055A (zh) * | 2015-02-09 | 2015-05-06 | 联想(北京)有限公司 | 一种状态处理方法、无线鼠标器及多设备无线控制系统 |
CN105512086A (zh) * | 2016-02-16 | 2016-04-20 | 联想(北京)有限公司 | 信息处理设备以及信息处理方法 |
US20190384481A1 (en) * | 2018-06-14 | 2019-12-19 | International Business Machines Corporation | Multiple monitor mouse movement assistant |
CN110989952A (zh) * | 2019-11-27 | 2020-04-10 | 广州朗国电子科技有限公司 | 一种基于多屏幕的鼠标共享实现方法、装置及系统 |
CN111708446A (zh) * | 2020-06-22 | 2020-09-25 | 重庆紫光华山智安科技有限公司 | 鼠标漫游方法、系统、电子设备和存储介质 |
CN113377272A (zh) * | 2021-06-02 | 2021-09-10 | Tcl通讯(宁波)有限公司 | 一种多设备间共享鼠标方法、装置、终端设备及存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN113377272A (zh) | 2021-09-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2022252733A1 (zh) | 一种多设备间共享鼠标方法、装置、终端设备及存储介质 | |
US20220164091A1 (en) | Method for connecting mobile terminal and external display and apparatus implementing the same | |
US11307760B2 (en) | Terminal interface display method and terminal | |
TWI446219B (zh) | 於一計算裝置上處理多重接觸輸入的方法與系統 | |
US20220222029A1 (en) | Remote gesture control, input monitor, systems including the same, and associated methods | |
WO2017097097A1 (zh) | 触摸控制方法、用户设备、输入处理方法、移动终端及智能终端 | |
WO2018090575A1 (zh) | 双屏终端、屏幕显示方法及装置 | |
EP2871841B1 (en) | Intelligent mini projector multi-source control method and device | |
CN113874828B (zh) | 用于通过外部电子装置提供屏幕共享服务的电子装置、方法和计算机可读介质 | |
JP6184053B2 (ja) | 情報端末、表示制御方法、およびプログラム | |
KR20160092310A (ko) | 전자 장치들 간 양방향 데이터 통신 방법 및 장치 | |
US10917792B2 (en) | Method for establishing wireless local area network connection, apparatus, and terminal | |
WO2017032080A1 (zh) | 一种通讯录控制方法、装置及移动终端 | |
WO2020007116A1 (zh) | 分屏窗口调节方法、装置、存储介质和电子设备 | |
TW201740286A (zh) | 一種資料共用系統及方法 | |
US20110314409A1 (en) | Information terminal, computer program product and method thereof | |
WO2024037415A1 (zh) | 投屏内容显示方法、装置、设备及存储介质 | |
CN113110906A (zh) | 一种显示控制方法以及电子设备 | |
US9326306B2 (en) | Interactive remote windows between applications operating within heterogeneous operating systems on mobile and stationary devices | |
TWI501145B (zh) | 電子裝置與多面板介面顯示方法 | |
US20150011212A1 (en) | Managing bandwidth and connection costs for mobile devices | |
KR20110020395A (ko) | 컴퓨터시스템 및 그 제어방법 | |
CN104636068A (zh) | 应用图标的操作方法和触控终端 | |
US11954272B2 (en) | Information processing device, information processing system and controlling method | |
TWI630490B (zh) | 校準資料傳輸技術 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22814781 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 22814781 Country of ref document: EP Kind code of ref document: A1 |