Interaction processing method and electronic equipment

By establishing connections between electronic devices and dynamically allocating input devices, the efficiency problem of users switching tasks between multiple devices is solved, enabling convenient multi-device collaborative operation.

CN121742707APending Publication Date: 2026-03-27LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-15
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

When users switch tasks between multiple electronic devices, they need to frequently switch input devices, which affects the efficiency of collaborative work between devices.

Method used

By establishing a target connection between the first electronic device and the second electronic device, an input allocation instruction is obtained, the first input device is determined, and the target input is sent to the second electronic device to make it respond to the target input, thereby realizing the dynamic allocation and collaborative operation of the input device.

Benefits of technology

It improves the efficiency of multi-device collaborative operation, allowing users to control multiple electronic devices without having to operate across different devices, thus enhancing ease of operation and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121742707A_ABST
    Figure CN121742707A_ABST
Patent Text Reader

Abstract

The invention provides an interactive processing method and electronic equipment. The method comprises the steps of establishing target connection based on first electronic equipment and second electronic equipment, and obtaining an input distribution instruction; based on the input distribution instruction, first input equipment is determined in multiple input equipment capable of being responded by the first electronic equipment, and the first electronic equipment responds to input of the multiple input equipment and is related to a first cursor position of the first electronic equipment; receiving a target input from a first input device; and sending the target input to the second electronic equipment based on the target connection, so that the second electronic equipment responds to the target input.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of electronic information technology, and in particular to an interactive processing method and an electronic device. Background Technology

[0002] With the widespread use of electronic devices such as smartphones, tablets, and laptops, users often need to switch between multiple devices to perform tasks. For example, when researching information on a mobile phone and then syncing it to a computer for editing, or using a tablet as an extended screen for a laptop, users need to frequently switch between the input devices of multiple electronic devices to operate on two separate devices, which affects the efficiency of collaborative work between multiple devices. Summary of the Invention

[0003] In view of this, the present disclosure provides an interactive processing method and an electronic device.

[0004] One aspect of this disclosure provides an interactive processing method, comprising: establishing a target connection between a first electronic device and a second electronic device to obtain an input allocation instruction; determining a first input device from among a plurality of input devices that the first electronic device can respond to, based on the input allocation instruction, wherein the first electronic device responds to input from the plurality of input devices in relation to a first cursor position of the first electronic device; receiving a target input from the first input device; and sending the target input to the second electronic device based on the target connection, thereby causing the second electronic device to respond to the target input.

[0005] According to embodiments of this disclosure, obtaining an input allocation instruction based on establishing a target connection between a first electronic device and a second electronic device includes: establishing a target connection channel between the first electronic device and the second electronic device; and, in response to input control of the second input device among a plurality of input devices, positioning a first cursor position of the first electronic device in a first display area enabled by the first electronic device, thereby obtaining the input allocation instruction.

[0006] According to embodiments of this disclosure, in response to input control of a second input device among a plurality of input devices, the first cursor position of the first electronic device is located in a display area enabled by the first electronic device, and an input allocation instruction is obtained. This includes: in response to input control of a second input device among a plurality of input devices, the first cursor position of the first electronic device enters the first display area via a first edge of the first display area, and an input allocation instruction is obtained; or in response to input control of a second input device among a plurality of input devices, the second cursor position of the second electronic device leaves the second display area via a second display area enabled by the second electronic device, and an input allocation instruction is obtained; wherein the first edge and the second edge are determined based on the relative positional relationship between the first electronic device and the second electronic device.

[0007] According to embodiments of this disclosure, obtaining an input allocation instruction based on establishing a target connection between a first electronic device and a second electronic device includes: establishing a target connection channel between the first electronic device and the second electronic device; responding to input control of the second input device among a plurality of input devices, the first cursor position of the first electronic device is located in a first area within the display area enabled by the first electronic device, and obtaining an input allocation instruction; wherein, the first area is an area outside the second area within the display area enabled by the first electronic device, and the second area is the display area for the display data transmitted by the second electronic device.

[0008] According to embodiments of this disclosure, in response to input control of a second input device among a plurality of input devices, the first cursor position of the first electronic device is located in a first area within a display area enabled by the first electronic device, and an input allocation instruction is obtained, including: in response to input control of a second input device among a plurality of input devices, the first cursor position of the first electronic device enters the first area via the edge of the second area, and an input allocation instruction is obtained; or in response to input control of a second input device among a plurality of input devices, the second cursor position of the second electronic device leaves the second area via the edge of the second area, and an input allocation instruction is obtained.

[0009] According to an embodiment of this disclosure, a first input device includes function keys; sending a target input to a second electronic device based on a target connection, causing the second electronic device to respond to the target input, includes: in response to the second electronic device activating a target mode, in response to the target input to the function keys, determining a target instruction based on a function mapping relationship; and sending the target instruction to the second electronic device, causing the second electronic device to respond to the target input based on the target instruction.

[0010] According to embodiments of this disclosure, a first input device includes a touchpad, and a second electronic device includes a touchscreen. Sending a target input to the second electronic device based on a target connection, causing the second electronic device to respond to the target input, includes: obtaining a touch mapping relationship between a first touch area of ​​the touchpad and a second touch area of ​​the touchscreen based on the target connection; determining a target instruction based on the touch mapping relationship in response to a target input to the first touch area; and sending the target instruction to the second electronic device, causing the second electronic device to respond to the target input based on the target instruction and a second cursor position.

[0011] According to embodiments of this disclosure, a touchpad includes a first touch area and an edge area, the first touch area and a second touch area having matching shapes, and the edge area being the area of ​​the touchpad other than the first touch area; based on a target connection, sending a target input to a second electronic device, causing the second electronic device to respond to the target input, includes: based on the target connection, obtaining a touch mapping relationship between the edge area of ​​the touchpad and the screen edge area of ​​the touchscreen; sending the target input of the touchpad to the second electronic device, causing the second electronic device to respond to the target input based on the touch mapping relationship and a second cursor position.

[0012] Another aspect of this disclosure provides an electronic device, including: a plurality of input devices and a processor; the processor is configured to establish a target connection between the electronic device and a target electronic device, and obtain an input allocation instruction; based on the input allocation instruction, determine a first input device among the plurality of input devices that the electronic device can respond to, wherein the electronic device responds to input from the plurality of input devices in relation to a first cursor position of the electronic device; receive a target input from the first input device; and based on the target connection, send the target input to the target electronic device, causing the target electronic device to respond to the target input.

[0013] According to an embodiment of this disclosure, a first input device includes a touchpad, and a target electronic device includes a touchscreen; a processor is configured to obtain a touch mapping relationship between a first touch area of ​​the touchpad and a second touch area of ​​the touchscreen based on a target connection; in response to a target input to the first touch area, a target instruction is determined based on the touch mapping relationship; and the target instruction is sent to the target electronic device, causing the target electronic device to respond to the target input based on the target instruction and a second cursor position.

[0014] Another aspect of this disclosure provides a computer-readable storage medium having a computer program or instructions stored thereon, which, when executed by a processor, implement the steps of the above-described method.

[0015] Another aspect of this disclosure provides a computer program product having a computer program or instructions stored thereon, which, when executed by a processor, implement the steps of the above-described method. Attached Figure Description

[0016] The above and other objects, features and advantages of this disclosure will become clearer from the following description of embodiments with reference to the accompanying drawings, in which:

[0017] Figure 1 This diagram illustrates an application scenario of the interaction method according to an embodiment of the present disclosure.

[0018] Figure 2 A flowchart illustrating an interaction processing method according to an embodiment of the present disclosure is shown schematically.

[0019] Figure 3 A schematic diagram illustrating the principle of determining input allocation instructions according to an embodiment of the present disclosure is shown.

[0020] Figure 4 A schematic diagram illustrating the determination of input allocation instructions according to another embodiment of the present disclosure is shown.

[0021] Figure 5 A schematic diagram of the area division of a touchpad according to an embodiment of the present disclosure is shown;

[0022] Figure 6 A schematic block diagram of an electronic device according to an embodiment of the present disclosure is shown.

[0023] Figure 7 A block diagram of an electronic device suitable for implementing the interaction method described above, according to an embodiment of the present disclosure, is illustrated schematically. Detailed Implementation

[0024] To make the objectives, technical solutions, and advantages of this disclosure clearer, the following detailed description is provided in conjunction with specific embodiments and the accompanying drawings.

[0025] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit this disclosure. The terms “comprising,” “including,” etc., as used herein indicate the presence of features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.

[0026] All terms used herein, including technical and scientific terms, have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein are to be interpreted in a manner consistent with the context of this specification, and not in an idealized or overly rigid way.

[0027] When using expressions such as "at least one of A, B, and C," the meaning should generally be interpreted according to the understanding of someone skilled in the art. For example, "a system having at least one of A, B, and C" should include, but is not limited to, systems having A alone, having B alone, having C alone, having A and B, having A and C, having B and C, and / or having A, B, and C. Similarly, when using expressions such as "at least one of A, B, or C," the meaning should generally be interpreted according to the understanding of someone skilled in the art. For example, "a system having at least one of A, B, or C" should include, but is not limited to, systems having A alone, having B alone, having C alone, having A and B, having A and C, having B and C, and / or having A, B, and C.

[0028] It should also be noted that the directional terms mentioned in the embodiments, such as "up," "down," "front," "back," "left," and "right," are only for reference to the directions in the accompanying drawings and are not intended to limit the scope of protection of this disclosure. Throughout the drawings, the same elements are represented by the same or similar reference numerals. Conventional structures or constructions will be omitted where they may cause confusion in understanding this disclosure.

[0029] In the embodiments disclosed herein, the collection, updating, analysis, processing, use, transmission, provision, disclosure, and storage of data (e.g., including but not limited to user personal information) comply with relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. In particular, necessary measures have been taken to prevent unauthorized access to user personal information data and to safeguard user personal information security, network security, and national security.

[0030] In the embodiments disclosed herein, user authorization or consent is obtained before acquiring or collecting user personal information.

[0031] Figure 1 The diagram illustrates an application scenario of the interaction method according to an embodiment of the present disclosure.

[0032] like Figure 1 As shown, the application scenario 100 of this interaction method includes a first electronic device 101 and a second electronic device 102. The first electronic device 101 can be a laptop computer, and the second electronic device 102 can be a mobile phone. The first electronic device 101 and the second electronic device 102 can establish a wired or wireless connection for data transmission. This disclosure is not limited to this; the first electronic device 101 can be a tablet computer, desktop computer, etc., and the second electronic device 102 can also be another tablet computer, desktop computer, etc.

[0033] The first electronic device 101 may include multiple input devices, such as a keyboard, an external mouse, a touchpad, etc. After the first electronic device 101 and the second electronic device 102 establish a target connection, an input allocation instruction can be obtained. According to the input allocation instruction, at least one input device in the first electronic device 101 can be allocated to the second electronic device. For example, the touchpad of the first electronic device 101 can be allocated to the second electronic device 102, so that the user can control the second electronic device 102 through the touchpad and control the first electronic device 101 through the mouse, keyboard, etc., thereby realizing that both devices can perform collaborative operation through the input devices of the first electronic device.

[0034] Figure 1 The application scenario shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments disclosed herein.

[0035] Figure 2A flowchart illustrating an interactive processing method according to an embodiment of the present disclosure is shown schematically.

[0036] like Figure 2 As shown, the method includes operations S210 to S240.

[0037] In operation S210, a target connection is established between the first electronic device and the second electronic device to obtain an input allocation instruction.

[0038] In operation S220, based on the input allocation instruction, a first input device is determined from among a plurality of input devices that the first electronic device can respond to, and the first electronic device responds to the input of the plurality of input devices in relation to the first cursor position of the first electronic device.

[0039] In operation S230, a target input is received from the first input device.

[0040] In operation S240, based on the target connection, the target input is sent to the second electronic device, causing the second electronic device to respond to the target input.

[0041] The interactive processing method in this example can be applied to scenarios involving collaborative operation of multiple electronic devices.

[0042] For example, the first electronic device can be a laptop, desktop computer, etc. The first electronic device can include multiple input devices, such as a mouse, keyboard, touchpad, etc. The second electronic device can be a mobile phone, tablet computer, or another tablet computer, desktop computer, etc. The first electronic device can act as a control device, and the second electronic device can act as a controlled device. After establishing a target connection with the second electronic device, the first electronic device can control the second electronic device through the first input device determined based on input allocation instructions.

[0043] A target connection refers to a communication connection established between a first electronic device and a second electronic device. The first and second electronic devices can establish a target connection via a data transmission cable, or via Bluetooth, screen mirroring protocols, etc.

[0044] An input assignment instruction is an instruction used to select at least one input device from a plurality of input devices of a first electronic device and assign it to a second electronic device.

[0045] The first cursor position refers to the real-time position of a movable visual indicator within the display area of ​​the first electronic device, such as the current position of a mouse cursor. The first electronic device's response to multiple input devices depends on the first cursor position. For example, mouse movement changes the cursor position, and subsequent click operations trigger interactions in the corresponding screen area based on that position, such as opening a file or selecting text.

[0046] For example, the first electronic device may have multiple input devices with similar functions, and based on the input allocation instruction, one of the redundant input devices may be allocated as the first input device to the second electronic device.

[0047] When a target input is executed via the first input device, the target input is sent to the second electronic device, causing the second electronic device to respond to the target input. Thus, the second electronic device can be controlled by operating the first input device of the first electronic device. Simultaneously, the second electronic device still has a usable second input device. This is beneficial in scenarios involving collaborative operation of multiple electronic devices, allowing users to simultaneously control both the first and second electronic devices through multiple input devices of the first electronic device without needing to operate across devices, thereby improving the efficiency of multi-device collaborative operation.

[0048] For example, if the first electronic device is a tablet computer and the second electronic device is a mobile phone, and a target connection is established between the tablet computer and the mobile phone through a screen mirroring protocol, the touchpad of the tablet computer can be assigned to the mobile phone based on the input assignment command. This allows the target input to the touchpad to directly affect the mobile phone instead of the tablet computer. The user can control the input of the mobile phone through the touchpad and control the tablet computer through the mouse.

[0049] According to embodiments of this disclosure, an input allocation instruction is obtained by establishing a target connection in response to a first electronic device and a second electronic device. Then, a first input device is determined from a plurality of input devices of the first electronic device according to the input allocation instruction, and the first input device is allocated to the second electronic device. This allows a user to control the first electronic device using the second input device while simultaneously controlling the second electronic device using the first input device, eliminating the need for the user to operate across the input devices of different electronic devices and improving the efficiency of multi-device operation.

[0050] According to embodiments of this disclosure, obtaining an input allocation instruction based on establishing a target connection between a first electronic device and a second electronic device may include: establishing a target connection channel between the first electronic device and the second electronic device; and, in response to input control of the second input device among a plurality of input devices, positioning the first cursor of the first electronic device in a first display area enabled by the first electronic device to obtain the input allocation instruction.

[0051] A target connection channel refers to a wired or wireless communication channel established between a first electronic device and two electronic devices.

[0052] For example, if the first cursor position is located in the first display area where the first electronic device is enabled by input control through the second input device, it means that the user is currently operating the first electronic device using the second input device. In this case, the first input device is in an idle state. Therefore, the obtained input allocation instruction can be to allocate the first input device to the second electronic device.

[0053] In some embodiments, if the first cursor position is located in a first display area enabled by the first electronic device via input control from the first input device, and the second input device is in an idle state, the received input allocation instruction may be to allocate the second input device to the second electronic device. In this case, a target input can be received from the second input device, and based on the target connection, the target input can be sent to the second electronic device, causing the second electronic device to respond to the target input. This ensures that at least one input device is always allocated to the second electronic device.

[0054] Continuing with the example of a tablet computer as the first electronic device and a mobile phone as the second electronic device, if the cursor position of the first electronic device controlled by the mouse is located in the first display area enabled by the first electronic device, then the idle touchpad can be assigned to the second electronic device.

[0055] According to embodiments of this disclosure, in response to input from a second input device among a plurality of input devices, controlling the first cursor position of the first electronic device to be located in a display area enabled by the first electronic device, obtaining an input allocation instruction may include: in response to input from the second input device among a plurality of input devices, controlling the first cursor position of the first electronic device to enter the first display area via a first edge of the first display area, thereby obtaining an input allocation instruction. Alternatively, in response to input from the second input device among a plurality of input devices, controlling the second cursor position of the second electronic device to leave the second display area via a second edge of the second display area enabled by the second electronic device, thereby obtaining an input allocation instruction. The first edge and the second edge are determined based on the relative positional relationship between the first electronic device and the second electronic device.

[0056] For example, the input assignment command can be dynamically triggered based on the change in the position of the first cursor.

[0057] For example, the first electronic device is a laptop computer, and the second input device is a mouse. When the user moves the mouse cursor from outside the laptop screen to the left edge (first edge) of the laptop's first display area and into the first display area, an input allocation command can be triggered. The input allocation command can allocate operations for the first input device to the second electronic device, and vice versa, thus enabling the second electronic device to also have an additional input device, thereby initiating a cross-device collaboration mode.

[0058] In some situations, the second input device can move the cursor from the first display area of ​​the first electronic device to the second display area of ​​the second electronic device by moving the mouse cursor across it, and then control the second electronic device through input from the second input device. If the cursor then leaves the second display area of ​​the second electronic device from its second edge using the second input device, it indicates that the user now needs to control the first electronic device using the second input device, and the first input device is idle. In this case, the triggered input assignment command could be to assign input to the second electronic device to the first input device, or vice versa.

[0059] The division between the first edge and the second edge can be based on the physical or logical arrangement of the first and second electronic devices. For example, if the screens of two electronic devices are side by side, the first edge might be the right edge of the first device's screen, and the second edge might be the left edge of the second device's screen.

[0060] Figure 3 A schematic diagram illustrating the determination of input allocation instructions according to an embodiment of the present disclosure is shown.

[0061] like Figure 3 As shown, in response to the second input device 304 controlling the cursor position to leave the second display area 302 from the second edge 305 of the second display area 302 enabled by the second electronic device, or to enter the first display area 301 from the first edge 306 of the first display area 301 of the first electronic device, an input allocation instruction is obtained. The obtained input allocation instruction may be to allocate the first input 303 to the second electronic device.

[0062] For example, the second input device 304 is a mouse, the first electronic device is a laptop computer, and the second electronic device is a mobile phone. When the mouse is located in the first display area 301, the mobile phone can be controlled using the mouse; when the mouse is located in the second display area 302, the laptop computer can be controlled using the mouse. When the mouse enters the first display area from the first edge of the first display area 301, an input allocation command is obtained. The obtained input allocation command is used to allocate the laptop computer's touchpad to the mobile phone.

[0063] It can also obtain input assignment instructions when the mouse is disconnected from the phone or reconnected to the laptop, and assign the first input device, such as the touchpad, to the phone using the obtained input assignment instructions.

[0064] In some instances, an input assignment instruction can be obtained in response to a first electronic device connecting a new input device. For example, a laptop originally includes a touchpad and a keyboard as input devices. In response to a user connecting a new input device, such as a mouse, to the laptop, an input assignment instruction is obtained, which can then be used to assign the touchpad or keyboard to a mobile phone.

[0065] By dynamically allocating input control through the cursor's movement across the edge of the display area between the first and second electronic devices, the flexibility of input device allocation can be improved.

[0066] According to embodiments of this disclosure, obtaining an input allocation instruction based on establishing a target connection between a first electronic device and a second electronic device may include: establishing a target connection channel between the first electronic device and the second electronic device; and, in response to input control from a second input device among a plurality of input devices, positioning a first cursor on the first electronic device in a first area within a display area enabled by the first electronic device, thereby obtaining the input allocation instruction. The first area is an area outside the second area within the display area enabled by the first electronic device, and the second area is the display area for the display data transmitted by the second electronic device.

[0067] For example, after establishing a target connection channel between the first electronic device and the second electronic device, the display data of the second electronic device can be projected onto a second area of ​​the first electronic device.

[0068] When the first cursor position is in the first area, it indicates that the user controls the first electronic device through the second input device. At this time, the first input device is in an idle state, and the input allocation instruction obtained may be to allocate the first input device to the second electronic device.

[0069] Therefore, users can control the first electronic device in the first area through the second input device, and control the second electronic device in the second area through the first input device, thereby improving the efficiency of collaborative work.

[0070] According to embodiments of this disclosure, in response to input from a second input device among a plurality of input devices, the first cursor position of the first electronic device is located in a first area within a display area enabled by the first electronic device. Obtaining an input allocation instruction may include: in response to input from a second input device among a plurality of input devices, the first cursor position of the first electronic device enters the first area via the edge of the second area to obtain an input allocation instruction; or in response to input from a second input device among a plurality of input devices, the second cursor position of the second electronic device leaves the second area via the edge of the second area to obtain an input allocation instruction.

[0071] For example, when the cursor position is moved from the edge of the first area to the second area via the second input device, the obtained input allocation instruction could be to allocate the second input device to the second electronic device and to allocate the first input device to the first electronic device. In other words, this achieves the allocation and exchange of the first and second input devices, ensuring that the first and second electronic devices always have their own independent input devices.

[0072] For example, the cursor position can be moved from the edge of the second area to the first area using the second input device, and an input allocation instruction can be obtained. The obtained input allocation instruction could be to allocate the second input device to the first electronic device, or to allocate the first input device to the second electronic device.

[0073] For example, after projecting the phone's display onto a second area of ​​a laptop, in response to the cursor being positioned in the first display area of ​​the laptop (excluding the second display area), the input allocation instruction can be to assign the touchpad to the phone and the mouse to the laptop, thus controlling the phone with the touchpad and the laptop with the mouse. When the cursor is moved from the edge of the first area to the second area using the mouse, the input allocation instruction can be to assign both the mouse and touchpad to the phone, or the mouse to the phone and the touchpad to the computer. When the cursor is moved from the edge of the second area to the first area using the mouse, the input allocation instruction can be to assign the mouse to the laptop and the touchpad to the phone. This allows for flexible switching of input devices.

[0074] For example, the first input device can also be a gamepad or a keyboard, and the input assignment instruction can also be to assign the gamepad or keyboard to the second electronic device. For example, when a mobile phone enters game mode, the input assignment instruction can be to assign the gamepad to the mobile phone; or, for example, when a mobile phone enters text input mode, the input assignment instruction can be to assign the keyboard to the mobile phone.

[0075] According to embodiments of this disclosure, obtaining an input allocation instruction based on establishing a target connection between a first electronic device and a second electronic device may include: displaying an input allocation control based on establishing a target connection between the first electronic device and the second electronic device; and obtaining an input allocation instruction in response to an operation on the input allocation control.

[0076] For example, after establishing a target connection, a pop-up window for allocation controls can be displayed in the display area of ​​the first electronic device. Multiple allocation logics for input allocation instructions can be predefined in the allocation controls. Once the user's operation satisfies the allocation logic, the corresponding input allocation instruction can be obtained.

[0077] Figure 4A schematic diagram illustrating the determination of input allocation instructions according to another embodiment of the present disclosure is shown.

[0078] like Figure 4 As shown, in response to the second input device 404 controlling the first cursor position of the first electronic device to enter the first region 401 via the edge of the second region 405, or to leave the second region 405 via the edge of the second region 405, an input allocation instruction is obtained; the obtained input allocation instruction can allocate the first input device 403 to the second electronic device 402.

[0079] For example, the first electronic device can be a computer, and the second electronic device can be a mobile phone. The mobile phone screen can be projected onto the computer. In this case, the second area 405 is the display area of ​​the mobile phone, and the first area 401 is the area of ​​the computer's display area excluding the mobile phone's display area. This disclosure is not limited to this; the first electronic device can be a mobile phone, the second electronic device can be a computer, and the computer screen can also be projected onto the mobile phone. In this case, the second area 405 is the display area of ​​the computer, and the first area 401 is the area of ​​the mobile phone's display area excluding the computer's display area. In some instances, the first electronic device and the second electronic device can be simultaneously projected onto a third electronic device. The first area 401 is the display area of ​​the first electronic device, and the second area 402 is the display area of ​​the second electronic device.

[0080] In some embodiments, an input allocation instruction may also be obtained in response to the display device of the first electronic device being disabled or in a sleep state. For example, after a target connection is established between a computer and a mobile phone, if the computer's display device is not displaying content or does not require input, at least one of the computer's touchpad, mouse, and keyboard may be allocated to the mobile phone based on the input allocation instruction.

[0081] According to embodiments of this disclosure, after establishing the target connection channel, the method may further include: obtaining configuration information of the local input of the second electronic device based on the target connection channel; and establishing an input mapping relationship between the local input of the second electronic device and the first input device based on the configuration information of the local input of the second electronic device.

[0082] For example, the configuration information for local input may be, for instance, the input mode information of the second electronic device and the attribute information of the input control.

[0083] For example, if the second electronic device is a mobile phone, the input configuration information can include the number and functions of the navigation keys on the phone, the size and coordinates of the phone's touchscreen, and other information. If the first input device includes function keys, an input mapping relationship can be established between the function keys of the first input device and the phone's navigation keys. If the first input device includes a touchpad, a mapping relationship between the spatial coordinates and functions of the touchpad and the phone's touchscreen can be established.

[0084] Thus, a target operation for a first input device can be converted into a target input for a second electronic device, so that the second electronic device can respond to the target input.

[0085] According to embodiments of this disclosure, the first input device includes function keys. Sending a target input to a second electronic device based on a target connection, causing the second electronic device to respond to the target input, may include: in response to the second electronic device activating a target mode, obtaining a function mapping relationship between the function keys of the first input device and the input controls of the target mode based on the target connection; in response to a target input to the function keys, determining a target instruction based on the function mapping relationship; and sending the target instruction to the second electronic device, causing the second electronic device to respond to the target input based on the target instruction.

[0086] For example, the target mode can refer to a mode in which the second electronic device can receive and respond to target input from the first electronic device. The input control can be a physical button on the second electronic device or a virtual button on the display screen.

[0087] For example, it can be first detected whether the function keys of the first input device can match the input controls of the second electronic device. If they match, a function mapping relationship between the two can be established.

[0088] For example, function keys could be the left and right click buttons on a touchpad used to control mouse clicks, while input controls could be virtual navigation keys on a mobile phone, such as the back and home buttons. A function mapping relationship can be established between the left click button and the back button, and between the right click button and the home button. Therefore, operating the left click button can perform the function of the back button on the mobile phone, and operating the right click button can perform the function of the home button.

[0089] Therefore, by using the function mapping relationship, the first input device can be used to quickly operate the second electronic device.

[0090] According to embodiments of this disclosure, the first input device includes a touchpad, and the first electronic device includes a touchscreen. Sending a target input to a second electronic device based on a target connection, causing the second electronic device to respond to the target input, may include: obtaining a touch mapping relationship between a first touch area of ​​the touchpad and a second touch area of ​​the touchscreen based on the target connection; determining a target instruction based on the touch mapping relationship in response to a target input to the first touch area; and sending the target instruction to the second electronic device, causing the second electronic device to respond to the target input based on the target instruction and a second cursor position.

[0091] For example, the first touch area may be the entire surface or a portion of the surface of the touchpad, and the second touch area may be the full screen or a specific area on the touchscreen that corresponds to the touchpad function.

[0092] Touch mapping relationships can include spatial coordinate mapping relationships and functional mapping relationships between the first touch area and the second touch area. Spatial coordinate mapping relationships can be, for example, the upper left and upper right corners of the touchpad corresponding to the upper left and upper right corners of the touchscreen, respectively. Functional mapping relationships can be, for example, scaling the touchpad's swipe distance to the touchscreen's swipe distance, and mapping touchpad clicks or long presses to touchscreen clicks or long presses, etc.

[0093] For example, a user can generate target input data, such as coordinates, pressure values, and gesture types, by performing operations such as sliding the cursor and clicking on the touchpad. This input data is then sent from the first electronic device to a second electronic device via a target connection. Upon receiving the input, the second device can convert the input coordinates from the touchpad into corresponding coordinates on the touchscreen and, in conjunction with the second cursor position on the second electronic device, perform operations such as moving the cursor, clicking, or scrolling the page.

[0094] By using the touch mapping relationship between the touchpad and the touchscreen, the touchpad can be used to control a second electronic device, which can simulate the input habits of the second electronic device itself and improve the user experience.

[0095] According to embodiments of this disclosure, the touchpad includes a first touch area and an edge area. The first touch area and a second touch area have matching shapes, and the edge area is the area of ​​the touchpad outside the first touch area. Sending a target input to a second electronic device based on a target connection, causing the second electronic device to respond to the target input, may include: obtaining a touch mapping relationship between the edge area of ​​the touchpad and the screen edge area of ​​the touchscreen based on the target connection; sending the target input from the touchpad to the second electronic device, causing the second electronic device to respond to the target input based on the touch mapping relationship and a second cursor position.

[0096] Figure 5 A schematic diagram of the area division of a touchpad according to an embodiment of the present disclosure is shown.

[0097] like Figure 5 As shown, the middle area of ​​the touchpad is the first touch area 502, and the area outside the boundary of the first touch area 502 is the edge area 501.

[0098] The touch mapping relationship between the edge area of ​​the touchpad and the edge area of ​​the touchscreen can include the mapping relationship of edge coordinates and the mapping relationship of edge functions.

[0099] For example, the mapping relationship of edge coordinates may include the upper edge area of ​​the touchpad corresponding to the upper edge area of ​​the touch screen, the lower edge area of ​​the touchpad corresponding to the lower edge area of ​​the touch screen, the left edge area of ​​the touchpad corresponding to the left edge area of ​​the touch screen, and the right edge area of ​​the touchpad corresponding to the right edge area of ​​the touch screen.

[0100] For example, the mapping relationship of edge functions may include: mapping a downward swipe action from the top edge of the touchpad to a downward page-turning action on the touchscreen; mapping a downward swipe action from the bottom edge of the touchpad to an upward page-turning action on the touchscreen; mapping a rightward swipe action from the left edge of the touchpad to a rightward page-turning action on the touchscreen; mapping a leftward swipe action from the right edge of the touchpad to a rightward page-turning action on the touchscreen, etc.

[0101] For example, zooming actions in the first touch area of ​​the touchpad can also be mapped to zooming actions in the second touch area of ​​the touchscreen.

[0102] Therefore, by increasing the touch mapping relationship between the edge area of ​​the touchpad and the edge area of ​​the touchscreen, the operation on the touchpad can be directly mapped to the swipe event of the touchscreen. Compared with the movement operation of the mouse, it is easier to perform the operation of flipping pages left and right or flipping pages up and down, making the operation more convenient.

[0103] Figure 6 A schematic block diagram of an electronic device according to an embodiment of the present disclosure is shown.

[0104] like Figure 6 As shown, the electronic device 600 includes multiple input devices 610 and a processor 620.

[0105] The processor 620 is used to establish a target connection between the electronic device and the target electronic device to obtain an input allocation instruction; based on the input allocation instruction, determine a first input device among multiple input devices that the electronic device can respond to, and the electronic device responds to the input of multiple input devices in relation to the first cursor position of the electronic device; receive the target input from the first input device; and based on the target connection, send the target input to the target electronic device so that the target electronic device responds to the target input.

[0106] According to embodiments of this disclosure, the first input device includes function keys; sending a target input to a second electronic device based on the target connection, so that the second electronic device responds to the target input, may further include: in response to the second electronic device activating a target mode, obtaining a function mapping relationship between the function keys of the first input device and the input controls of the target mode based on the target connection; in response to a target input to the function keys, determining a target instruction based on the function mapping relationship; and sending the target instruction to the second electronic device, so that the second electronic device responds to the target input based on the target instruction.

[0107] According to an embodiment of this disclosure, the first input device includes a touchpad, and the target electronic device includes a touchscreen; the processor is further configured to obtain a touch mapping relationship between a first touch area of ​​the touchpad and a second touch area of ​​the touchscreen based on a target connection; in response to a target input to the first touch area, determine a target instruction based on the touch mapping relationship; and send the target instruction to the target electronic device, causing the target electronic device to respond to the target input based on the target instruction and a second cursor position.

[0108] Figure 6 A block diagram of an electronic device suitable for implementing the interaction method described above, according to an embodiment of the present disclosure, is illustrated schematically.

[0109] Figure 6 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.

[0110] Electronic devices are intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0111] like Figure 7 As shown, device 700 includes a computing unit 701, which can perform various appropriate actions and processes based on a computer program stored in read-only memory (ROM) 702 or a computer program loaded from storage unit 708 into random access memory (RAM) 703. RAM 703 may also store various programs and data required for the operation of device 700. The computing unit 701, ROM 702, and RAM 703 are interconnected via bus 704. Input / output (I / O) interface 705 is also connected to bus 704.

[0112] Multiple components in electronic device 700 are connected to I / O interface 705, including: input unit 706, such as keyboard, mouse, etc.; output unit 707, such as various types of displays, speakers, etc.; storage unit 708, such as disk, optical disk, etc.; and communication unit 709, such as network card, modem, wireless transceiver, etc. Communication unit 709 allows device 700 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0113] The computing unit 701 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 701 performs the various methods and processes described above, such as image processing methods. For example, in some embodiments, the image processing method may be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on device 700 via ROM 702 and / or communication unit 709. When the computer program is loaded into RAM 703 and executed by the computing unit 701, one or more steps of the image processing method described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to perform image processing methods by any other suitable means (e.g., by means of firmware).

[0114] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0115] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable image processing apparatus, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0116] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0117] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0118] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.

[0119] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact via communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other. Servers can be cloud servers, distributed system servers, or servers incorporating blockchain technology.

[0120] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.

[0121] The specific embodiments described above do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.

[0122] The embodiments of this disclosure have been described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of this disclosure. Although various embodiments have been described above, this does not mean that the measures in the various embodiments cannot be used advantageously in combination. The scope of this disclosure is defined by the appended claims and their equivalents. Various substitutions and modifications can be made by those skilled in the art without departing from the scope of this disclosure, and all such substitutions and modifications should fall within the scope of this disclosure.

Claims

1. An interactive processing method, comprising: Based on the establishment of a target connection between the first electronic device and the second electronic device, input allocation instructions are obtained; Based on the input allocation instruction, a first input device is determined from a plurality of input devices that the first electronic device can respond to, and the first electronic device responds to the input of the plurality of input devices in relation to the first cursor position of the first electronic device; Receive target input from the first input device; Based on the target connection, the target input is sent to the second electronic device, causing the second electronic device to respond to the target input.

2. The method according to claim 1, wherein an input allocation instruction is obtained based on establishing a target connection between the first electronic device and the second electronic device, comprising: Establish a target connection channel between the first electronic device and the second electronic device; In response to input control from the second input device among the plurality of input devices, the first cursor position of the first electronic device is located in the first display area enabled by the first electronic device, and an input allocation instruction is obtained.

3. The method according to claim 2, wherein the step of responding to input control of the first cursor position of the first electronic device in response to the input of the second input device among the plurality of input devices, and obtaining an input allocation instruction, comprises: In response to input control from the second input device among the plurality of input devices, the first cursor position of the first electronic device enters the first display area via the first edge of the first display area, and an input assignment instruction is obtained; or In response to input control from the second input device among the plurality of input devices, the second cursor position of the second electronic device leaves the second display area via the second edge of the second display area enabled by the second electronic device, and an input assignment instruction is obtained; The first edge and the second edge are determined based on the relative positional relationship between the first electronic device and the second electronic device.

4. The method according to claim 1, wherein an input allocation instruction is obtained based on establishing a target connection between the first electronic device and the second electronic device, comprising: Establish a target connection channel between the first electronic device and the second electronic device; In response to input control from the second input device among the plurality of input devices, the first cursor position of the first electronic device is located in the first area of ​​the display area enabled by the first electronic device, and an input allocation instruction is obtained; The first region is the area outside the second region within the display area enabled by the first electronic device, and the second region is the display area for the display data transmitted by the second electronic device.

5. The method according to claim 4, wherein the step of obtaining an input allocation instruction by controlling the first cursor position of the first electronic device to be located in a first area within a display area enabled by the first electronic device in response to input from a second input device among the plurality of input devices, comprises: In response to input control from the second input device among the plurality of input devices, the first cursor position of the first electronic device enters the first region via the edge of the second region, thereby obtaining an input assignment instruction; or In response to input control from the second input device among the plurality of input devices, the second cursor position of the second electronic device leaves the second region via the edge of the second region, thereby obtaining an input assignment instruction.

6. The method according to claim 1, wherein, The first input device includes function keys; Based on the target connection, sending the target input to the second electronic device, causing the second electronic device to respond to the target input, further includes: In response to the second electronic device activating the target mode, the function mapping relationship between the function keys of the first input device and the input controls of the target mode is obtained based on the target connection; In response to a target input to the function key, a target instruction is determined based on the function mapping relationship; The target instruction is sent to the second electronic device, causing the second electronic device to respond to the target input based on the target instruction.

7. The method according to claim 1, wherein, The first input device includes a touchpad, and the second electronic device includes a touchscreen; Based on the target connection, sending the target input to the second electronic device, causing the second electronic device to respond to the target input, includes: Based on the target connection, the touch mapping relationship between the first touch area of ​​the touchpad and the second touch area of ​​the touch screen is obtained; In response to a target input to the first touch area, a target instruction is determined based on the touch mapping relationship; The target instruction is sent to the second electronic device, causing the second electronic device to respond to the target input based on the target instruction and the second cursor position.

8. The method according to claim 7, wherein the touch panel includes a first touch area and an edge area, the first touch area and the second touch area are shaped to match, and the edge area is the area of ​​the touch panel other than the first touch area; Based on the target connection, sending the target input to the second electronic device, causing the second electronic device to respond to the target input, includes: Based on the target connection, the touch mapping relationship between the edge area of ​​the touchpad and the screen edge area of ​​the touch screen is obtained; The target input from the touchpad is sent to the second electronic device, causing the second electronic device to respond to the target input based on the touch mapping relationship and the second cursor position.

9. An electronic device, comprising: Multiple input devices and processors; The processor is used to establish a target connection between the electronic device and the target electronic device to obtain input allocation instructions; Based on the input allocation instruction, a first input device is determined from among the plurality of input devices that the electronic device can respond to, and the electronic device responds to the input of the plurality of input devices in relation to the first cursor position of the electronic device; Receive target input from the first input device; Based on the target connection, the target input is sent to the target electronic device, causing the target electronic device to respond to the target input.

10. The electronic device according to claim 9, wherein the first input device includes a touchpad, and the target electronic device includes a touchscreen; The processor is also configured to obtain a touch mapping relationship between the first touch area of ​​the touchpad and the second touch area of ​​the touchscreen based on the target connection; In response to a target input to the first touch area, a target instruction is determined based on the touch mapping relationship; The target instruction is sent to the target electronic device, causing the target electronic device to respond to the target input based on the target instruction and the second cursor position.