US12032752B2ActiveUtilityA1
Method and apparatus for controlling input function, and storage medium
Assignee: BEIJING XIAOMI MOBILE SOFTWARE CO LTDPriority: Aug 10, 2021Filed: Mar 3, 2022Granted: Jul 9, 2024
Est. expiryAug 10, 2041(~15 yrs left)· nominal 20-yr term from priority
G06F 3/023G06F 2203/0383G06F 2203/0384G06F 2203/0382G06F 3/0484G06F 3/038G06F 3/04897
49
PatentIndex Score
0
Cited by
12
References
16
Claims
Abstract
A method for controlling an input function, an apparatus for controlling an input function and a storage medium thereof are provided. The an input function control method is applied to a first device connected to a input device and includes: in response to detecting that an input device sharing function is enabled and an input event sent by the input device is monitored, intercepting the input event; and forwarding the intercepted input event to a second device connected with the first device.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1. A method for controlling an input function, performed by a first device connected to an input device, and comprising: in response to detecting that an input device sharing function is disabled and an input event sent by the input device is monitored, obtaining the input event to operate the first device, and displaying the input event in the first device; in response to detecting that the input device sharing function is enabled and the input event sent by the input device is monitored, intercepting the input event; and forwarding the intercepted input event to a second device connected with the first device, so as to display the input event sent by the input device in the second device without manual switch of the connection between the input device and the first device as well as the second device, wherein the input event is not displayed in the first device, the second device is not directedly connected to the input device, and the first device is one of multiple terminal devices, and the second device is another one of the multiple terminal devices; wherein the input device comprises a plurality of input devices, and the method further comprises: generating an input device list; displaying the input device list to a user in response to detecting that the input device sharing function is enabled; determining an input device to be shared according to selection of the user in the input device list, wherein the input device to be shared is used to control the second device; further comprising: in response to monitoring that a switching function is triggered, switching and inputting the input event of the input device to the first device or the second device; and wherein monitoring that the switching function is triggered comprises: in response to that a function option of a switching control on a display interface of the first device or the second device is triggered, determining that the switching function is monitored to be triggered.
2. The method according to claim 1 , wherein determining the input device to be shared according to selection of the user in the input device list comprises:
determining one or more input devices to be shared for sharing to the second device an input function to be shared, saving respective device information of the one or more input devices to be shared, and registering a listening interface in an input subsystem of the first device;
wherein that the input event sent by the input device is monitored comprises:
in response to determining that the input event is listened through the listening interface and determining, based on the saved device information, the device to be shared that sends the input event is one of the one or more input devices to be shared, determining that the input event sent by the input device is monitored.
3. The method according to claim 2 , wherein the intercepting the input event comprises:
in response to determining that the input event comprises a key event, forwarding a key value corresponding to the key event to the listening interface.
4. The method according to claim 2 , wherein intercepting the input event comprises:
in response to determining that the input event comprises a wheel event of a mouse, shielding a display icon of a mouse pointer on a display interface of the first device, setting a coordinate position of the mouse pointer, and forwarding a relative position change data of the mouse pointer to the listening interface.
5. The method according to claim 1 , wherein forwarding the intercepted input event to the second device connected with the first device comprises:
based on device descriptor information of the second device, encapsulating the input data sent by the input event and forwarding the encapsulated input data to the second device connected with the first device.
6. The method according to claim 1 , wherein monitoring that the switching function is triggered comprises: in response to monitoring that a key or a key combination on the input device is triggered, determining that the switching function is monitored to be triggered and displayed.
7. The method according to claim 1 , wherein detecting that the input device sharing function is enabled comprises:
detecting that an input device sharing function control is enabled; or receiving a control instruction used to enable the input device sharing function.
8. The method according to claim 2 , further comprising:
in response to detecting that the first device is disconnected from the input device and monitoring that the input device establishes a connection with the first device again, determining the input device for which a connection relationship is re-established as the input device to be shared.
9. A device for controlling an input function, comprising: a processor; memory for storing instructions executable by the processor; wherein, the processor is configured to: in response to detecting that an input device sharing function is disabled and an input event sent by an input device is monitored, obtain the input event to operate the first device connected to the input device, and display the input event in the first device; in response to detecting that the input device sharing function is enabled and the input event sent by the input device is monitored, intercept the input event; and forward the intercepted input event to a second device connected with the first device; so as to display the input event sent by the input device in the second device without manual switch of the connection between the input device and the first device as well as the second device, wherein the input event is not displayed in the first device, the second device is not directedly connected to the input device, and the first device is one of multiple terminal devices, and the second device is another one of the multiple terminal devices; wherein the input device comprises a plurality of input devices, and the processor is further configured to: generate an input device list; display the input device list to a user in response to detecting that the input device sharing function is enabled; determine an input device to be shared according to selection of the user in the input device list, wherein the input device to be shared is used to control the second device; wherein the processor is further configured to: in response to monitoring that a switching function is triggered, switch and input the input event of the input device to the first device or the second device; and wherein the processor is configured to: in response to that a function option of a switching control on a display interface of the first device or the second device is triggered, determine that the switching function is monitored to be triggered.
10. The device according to claim 9 , wherein the processor is further configured to:
determine one or more input devices to be shared for sharing to the second device an input function to be shared, save respective device information of the one or more input devices to be shared, and register a listening interface in an input subsystem of the first device;
in response to determining that the input event is listened through the listening interface and determining, based on the saved device information, the device to be shared that sends the input event is one of the one or more input devices to be shared, then determine that the input event sent by the input device is monitored.
11. The device according to claim 10 , wherein the processor is configured to:
in response to determining that the input event comprises a key event, forward a key value corresponding to the key event to the listening interface.
12. The device according to claim 10 , wherein the processor is configured to:
in response to determining that the input event comprises a wheel event of a mouse, shield a display icon of a mouse pointer on a display interface of the first device, set a coordinate position of the mouse pointer, and forward a relative position change data of the mouse pointer to the listening interface.
13. The device according to claim 9 , wherein the processor is configured to:
based on device descriptor information of the second device, encapsulate the input data sent by the input event and forward the encapsulated input data to the second device connected with the first device.
14. The device according to claim 9 , wherein the processor is configured to: in response to monitoring that a key or a key combination used to control the switching control on the input device is triggered, determine that the switching function is monitored to be triggered and displayed.
15. The device according to claim 9 , wherein the processor is configured to:
detect that an input device sharing function control is enabled; or receive a control instruction used to enable the input device sharing function.
16. A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a mobile terminal, the mobile terminal is enabled to implement a method for controlling an input function, the method for controlling the input function being performed by a first device connected to an input device and comprising: in response to detecting that an input device sharing function is disabled and an input event sent by the input device is monitored, obtaining the input event to operate the first device, and displaying the input event in the first device; in response to detecting that the input device sharing function is enabled and an the input event sent by the input device is monitored, intercepting the input event; and forwarding the intercepted input event to a second device connected with the first device, so as to display the input event sent by the input device in the second device without manual switch of the connection between the input device and the first device as well as the second device, wherein the input event is not displayed in the first device, the second device is not directedly connected to the input device, and the first device is one of multiple terminal devices, and the second device is another one of the multiple terminal devices; wherein the input device comprises a plurality of input devices, and the method further comprises: generating an input device list; displaying the input device list to a user in response to detecting that the input device sharing function is enabled; and determining an input device to be shared according to selection of the user in the input device list, wherein the input device to be shared is used to control the second device; further comprising: in response to monitoring that a switching function is triggered, switching and inputting the input event of the input device to the first device or the second device; and wherein monitoring that the switching function is triggered comprises: in response to that a function option of a switching control on a display interface of the first device or the second device is triggered, determining that the switching function is monitored to be triggered.Join the waitlist — get patent alerts
Track US12032752B2 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.