Multi-input equipment adaptation method and device, electronic product and storage medium

By generating and modifying the key mapping table of the input device, the problem that existing electronic products do not support input device expansion is solved, and the adaptation and access of multiple input devices is realized, which improves the user's operating experience.

CN119828939APending Publication Date: 2025-04-15SHENZHEN HUIDU TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411900488.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-23
Publication Date
2025-04-15

AI Technical Summary

Technical Problem

Existing electronic products do not support the expansion of input devices, resulting in poor user operation experience, especially in game and entertainment products.

Method used

By reading the initial key mapping table of the input device, scanning the connected input devices, generating a list of configurable input devices, allowing users to select and modify the key mapping table of the target input device, thereby realizing the adaptation and access of electronic products to a variety of input devices.

Benefits of technology

It enriches the types of input devices for electronic products, improves user operation experience, and does not need to increase device hardware overhead. It realizes the adaptation of multiple input devices through key mapping.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119828939A_ABST
    Figure CN119828939A_ABST
Patent Text Reader

Abstract

The invention discloses a multi-input equipment adaptation method and device, an electronic product and a storage medium. The method comprises the following steps: reading an initial key mapping table of at least one input device; scanning input equipment connected with the electronic product to obtain at least one input equipment identifier connected with the electronic product; comparing an initial key mapping table of the input equipment with the identification of the input equipment connected with the electronic product, and generating a configurable input equipment list based on a comparison result; obtaining an initial key mapping table of a target input device in response to a selection operation of the user on the target input device; in response to a modification operation of a user on the initial key mapping table of the target input equipment, obtaining an adaptive key mapping table of the target input equipment; and executing the adaptive key mapping table of the target input equipment to enable the electronic product to support the input operation of the target input equipment. According to the technical scheme, the electronic product is adaptive to various input devices, and the user operation experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of device optimization, and in particular to a multi-input device adaptation method, device, electronic product and storage medium. Background Art

[0002] With the development of software and hardware technologies, users' demands for the operating experience of electronic products are getting higher and higher.

[0003] Existing electronic products generally come with some physical buttons, but the operating experience is poor, especially in products such as gaming and entertainment that focus on operating experience.

[0004] In the process of implementing the present invention, it is found that there are at least the following technical problems in the prior art: the existing electronic products do not support the expansion of input devices, resulting in a poor user operation experience. Summary of the invention

[0005] The present invention provides a multi-input device adaptation method, device, electronic product and storage medium to achieve the adaptation and access of electronic products to multiple input devices, enrich the types of input devices of electronic products, and thus improve the user operation experience.

[0006] According to one aspect of the present invention, a multi-input device adaptation method is provided, comprising:

[0007] Reading an initial key mapping table of at least one input device; scanning the input device connected to the electronic product to obtain at least one input device identification connected to the electronic product;

[0008] Comparing the initial key mapping table of the input device with the input device identifier connected to the electronic product, and generating a configurable input device list based on the comparison result;

[0009] In response to a user selecting a target input device from the list of configurable input devices, obtaining an initial key mapping table for the target input device;

[0010] In response to a user's modification operation on an initial key mapping table of a target input device, obtaining an adapted key mapping table of the target input device;

[0011] The adapted key mapping table of the target input device is executed so that the electronic product supports the input operation of the target input device.

[0012] According to another aspect of the present invention, there is provided a multi-input device adaptation apparatus, comprising:

[0013] An input device information acquisition module is used to read an initial key mapping table of at least one input device; scan the input device connected to the electronic product to obtain at least one input device identification connected to the electronic product;

[0014] A configurable input device list generating module, used for comparing the initial key mapping table of the input device with the input device identifier connected to the electronic product, and generating a configurable input device list based on the comparison result;

[0015] An initial key mapping table acquisition module for a target input device, configured to obtain an initial key mapping table for the target input device in response to a user selecting a target input device from a list of configurable input devices;

[0016] An adapted key mapping table acquisition module for a target input device, used to obtain an adapted key mapping table for the target input device in response to a user's modification operation on an initial key mapping table of the target input device;

[0017] The adaptation key mapping table execution module is used to execute the adaptation key mapping table of the target input device so that the electronic product supports the input operation of the target input device.

[0018] According to another aspect of the present invention, there is provided an electronic product, the electronic product comprising:

[0019] at least one processor;

[0020] and a memory communicatively coupled to the at least one processor;

[0021] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the multi-input device adaptation method described in any embodiment of the present invention.

[0022] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the multi-input device adaptation method described in any embodiment of the present invention when executed.

[0023] The technical solution of the embodiment of the present invention reads the initial key mapping table of at least one input device; scans the input device connected to the electronic product to obtain at least one input device identification connected to the electronic product; compares the initial key mapping table of the input device with the input device identification connected to the electronic product, and generates a list of configurable input devices based on the comparison result; in response to the user's selection operation of the target input device in the list of configurable input devices, obtains the initial key mapping table of the target input device; in response to the user's modification operation of the initial key mapping table of the target input device, obtains the adaptation key mapping table of the target input device; executes the adaptation key mapping table of the target input device, so that the electronic product supports the input operation of the target input device. Through the above technical solution, the adaptation and access of electronic products to multiple input devices are realized, the types of input devices of electronic products are enriched, and the user operation experience is improved.

[0024] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0026] Figure 1 is a flowchart of a multi-input device adaptation method provided according to Embodiment 1 of the present invention;

[0027] Figure 2 is a flowchart of a multi-input device adaptation method provided according to Embodiment 2 of the present invention;

[0028] Figure 3 is a flowchart of a multi-input device adaptation method provided according to Embodiment 3 of the present invention;

[0029] Figure 4 is a structural schematic diagram of a multi-input device adaptation device provided according to a fourth embodiment of the present invention;

[0030] Figure 5 It is a structural schematic diagram of an electronic product that implements the multi-input device adaptation method of an embodiment of the present invention. DETAILED DESCRIPTION

[0031] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0032] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices. The acquisition, storage, use, processing, etc. of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.

[0033] Embodiment 1

[0034] Figure 1 This is a flowchart of a multi-input device adaptation method provided in the first embodiment of the present invention. This embodiment is applicable to the case where multiple input devices are adapted through key mapping. The method can be executed by a multi-input device adaptation device. The multi-input device adaptation device can be implemented in the form of hardware and / or software. The multi-input device adaptation device can be configured in an electronic product, which can be an embedded device or a game console. Figure 1 As shown, the method includes:

[0035] S110, reading an initial key mapping table of at least one input device; scanning input devices connected to the electronic product to obtain at least one input device identification connected to the electronic product.

[0036] In the embodiment of the present invention, the input device can be wirelessly connected or wiredly connected to the electronic product. The input device can include one or more of a handle, a joystick console, and a mobile terminal. The mobile terminal can be a mobile phone or a tablet computer, etc., which is not specifically limited here.

[0037] The initial key mapping table refers to a key mapping table stored in a preset storage path of an electronic product, including one or more of an input device name, a product identifier (Product ID, PID), a vendor identifier (Vendor ID, VID), an actual key value, and an applied key value. The actual key value and the applied key value exist in the form of a key-value pair, for example, the actual key value may be "BTN_SOUTH" and the applied key value may be "QT_A".

[0038] In the embodiment of the present invention, the input device identifier refers to a symbol that can represent the input device and is unique, and may be an input device name, a product identifier, or a manufacturer identifier, etc.

[0039] Exemplarily, the electronic product can read the initial key mapping table of multiple input devices from the preset storage path. In addition, the electronic device can also scan and obtain the device identification of the input device connected to the electronic product through the scanConnectedDevices method of the QDeviceDiscovery class.

[0040] S120: Compare the initial key mapping table of the input device with the input device identifier connected to the electronic product, and generate a configurable input device list based on the comparison result.

[0041] In the embodiment of the present invention, the configurable input device list may include one or more available input devices for the user to view and select.

[0042] Optionally, generating a list of configurable input devices based on the comparison results includes: if the device identifier in the initial key mapping table of the input device is the same as the input device identifier connected to the electronic product, writing the input device identifier connected to the electronic product into the initial device list to obtain a list of configurable input devices.

[0043] It should be noted that, by comparing input device identifiers, input device screening is achieved, thereby providing users with configurable input devices.

[0044] S130: In response to a user selecting a target input device in the list of configurable input devices, an initial key mapping table of the target input device is obtained.

[0045] The target input device refers to a configurable input device selected by the user from the configurable input device list, that is, the target input device can be any output device in the configurable input device list.

[0046] S140: In response to the user's modification operation on the initial key mapping table of the target input device, obtain an adapted key mapping table of the target input device.

[0047] The modification operation may include but is not limited to adding, deleting and replacing, etc., which are not specifically limited here. The adapted key mapping table refers to the modified key mapping table of the target input device, so that the target input device can be adapted and used with the electronic product later.

[0048] S150: Execute the adaptation key mapping table of the target input device to enable the electronic product to support input operations of the target input device.

[0049] In this embodiment, by executing the adaptation key mapping table of the target input device, the adaptation and access of the sub-product to the target input device can be achieved, so that the electronic product supports the input operation of the target input device.

[0050] The technical solution of the embodiment of the present invention is to read the initial key mapping table of at least one input device; scan the input device connected to the electronic product to obtain at least one input device identification connected to the electronic product; compare the initial key mapping table of the input device with the input device identification connected to the electronic product, and generate a list of configurable input devices based on the comparison result; in response to the user's selection operation of the target input device in the list of configurable input devices, obtain the initial key mapping table of the target input device; in response to the user's modification operation of the initial key mapping table of the target input device, obtain the adaptation key mapping table of the target input device; execute the adaptation key mapping table of the target input device so that the electronic product supports the input operation of the target input device. Through the above technical solution, there is no need to increase the hardware overhead of the device, and the adaptation and access of the electronic product to multiple input devices is realized through key mapping, which enriches the types of input devices of the electronic product and improves the user's operation experience.

[0051] Embodiment 2

[0052] Figure 2 A flowchart of a multi-input device adaptation method provided in the second embodiment of the present invention, the method of this embodiment can be combined with the various optional schemes in the multi-input device adaptation method provided in the above embodiments. The multi-input device adaptation method provided in this embodiment is further optimized. Optionally, in response to the user's modification operation on the initial key mapping table of the target input device, an adapted key mapping table of the target input device is obtained, including: in response to the user's selection operation on the target key position in the initial key mapping table of the target input device, the initial key value of the target key position is obtained; in response to the user's key event on the target key position, the operation key value of the target key position is obtained; based on the operation key value of the target key position, the initial key value of the target key position is replaced to obtain the adapted key mapping table of the target input device.

[0053] like Figure 2 As shown, the method includes:

[0054] S210, reading an initial key mapping table of at least one input device; scanning input devices connected to the electronic product to obtain at least one input device identification connected to the electronic product.

[0055] S220: Compare the initial key mapping table of the input device with the input device identifier connected to the electronic product, and generate a configurable input device list based on the comparison result.

[0056] S230: In response to the user selecting a target input device in the list of configurable input devices, an initial key mapping table of the target input device is obtained.

[0057] S240: In response to the user's selection operation on the target key position in the initial key mapping table of the target input device, an initial key value of the target key position is obtained.

[0058] The target key position may be any key position, for example, the target key position may be one or more of "QT_A", "QT_B", "QT_HOME" and "QT_SELECT", etc. The initial key value is the initial key actual value of the key position.

[0059] Exemplarily, the target key position may be “QT_A”, and the initial key value corresponding to “QT_A” may be “BTN_SOUTH”.

[0060] S250: In response to a key event of a user pressing a key on a target key, obtain an operation key value of the target key.

[0061] The key event refers to a key input event detected by an electronic product, and the operation key value is the actual key value of the key input event detected.

[0062] Exemplarily, a key input event may be detected through QSocketNotifier, and the actual key value "BTN_EAST" of the key input event may be used as the operation key value.

[0063] S260: Replace the initial key value of the target key position based on the operation key value of the target key position to obtain an adaptation key mapping table of the target input device.

[0064] Exemplarily, the initial key value "BTN_SOUTH" is replaced with the operation key value "BTN_EAST". After the replacement operation is completed, the adaptation key mapping table of the target input device can be obtained, and then the adaptation key mapping table of the target input device can be saved.

[0065] S270: Execute the adaptation key mapping table of the target input device to enable the electronic product to support input operations of the target input device.

[0066] The technical solution of the embodiment of the present invention obtains the initial key value of the target key in response to the user's selection operation of the target key in the initial key mapping table of the target input device, and then obtains the operation key value of the target key in response to the user's key event on the target key, and then replaces the initial key value of the target key based on the operation key value of the target key to obtain the adapted key mapping table of the target input device. The above technical solution realizes the update and adaptation of the key mapping table through user-defined replacement without increasing the hardware overhead of the device, so that the electronic product adapts to the target input device.

[0067] Embodiment 3

[0068] Figure 3 A flowchart of a multi-input device adaptation method provided in the third embodiment of the present invention, the method of this embodiment can be combined with the various optional schemes in the multi-input device adaptation method provided in the above embodiments. The multi-input device adaptation method provided in this embodiment is further optimized. Optionally, the execution of the adaptation key mapping table of the target input device includes: in the case of detecting an input event of the user to the target input device, obtaining the device identification of the target input device; based on the device identification of the target input device, reading the adaptation key mapping table of the target input device; based on the adaptation key mapping table of the target input device, obtaining the application key value corresponding to the input event; based on the application key value corresponding to the input event, generating a keyboard event class corresponding to the input event; forwarding the keyboard event class corresponding to the input event to the software application layer, and the software application layer executes the function corresponding to the keyboard event class corresponding to the input event.

[0069] like Figure 3 As shown, the method includes:

[0070] S310, reading an initial key mapping table of at least one input device; scanning input devices connected to the electronic product to obtain at least one input device identification connected to the electronic product.

[0071] S320: Compare the initial key mapping table of the input device with the input device identifier connected to the electronic product, and generate a configurable input device list based on the comparison result.

[0072] S330: In response to the user selecting a target input device in the list of configurable input devices, an initial key mapping table of the target input device is obtained.

[0073] S340: In response to the user's modification operation on the initial key mapping table of the target input device, obtain an adaptation key mapping table of the target input device.

[0074] S350: When an input event of a user to a target input device is detected, a device identification of the target input device is obtained; and based on the device identification of the target input device, an adaptation key mapping table of the target input device is read.

[0075] The input event refers to the detected user operation of the key, wheel or joystick of the target input device. The device identifier refers to a unique symbol that can represent the target input device and can be a device name, product identifier or manufacturer identifier.

[0076] S360. Based on the adaptation key mapping table of the target input device, obtain the application key value corresponding to the input event; and generate a keyboard event class corresponding to the input event based on the application key value corresponding to the input event.

[0077] Among them, the keyboard event class refers to the QKeyEvent generated by the QT framework.

[0078] For example, the input event may be a user pressing a button in the east direction, which generates an actual key value "BTN_EAST". "BTN_EAST" is matched in the adaptation key mapping table of the target input device to obtain an application key value "QT_A" corresponding to "BTN_EAST". Further, a keyboard event class is generated for "QT_A" through the QT framework.

[0079] S370. Forward the keyboard event class corresponding to the input event to the software application layer, and the software application layer executes the function corresponding to the keyboard event class corresponding to the input event, so that the electronic product supports the input operation of the target input device.

[0080] Exemplarily, the keyboard event class corresponding to "QT_A" can be forwarded to the software application layer through the QGuiApplication::sendEvent method, and then the software application layer executes the function corresponding to "QT_A".

[0081] The technical solution of the embodiment of the present invention is to obtain the device identification of the target input device when the user inputs the input event to the target input device, and then read the adaptation key mapping table of the target input device based on the device identification of the target input device, and then obtain the application key value corresponding to the input event based on the adaptation key mapping table of the target input device, and then generate the keyboard event class corresponding to the input event based on the application key value corresponding to the input event, and then forward the keyboard event class corresponding to the input event to the software application layer, and the software application layer executes the function corresponding to the keyboard event class corresponding to the input event. Through the above technical solution, the automatic matching and use of the adaptation key mapping table of the target input device is realized, thereby realizing the adaptation and access of the electronic product to the target input device, and improving the user operation experience.

[0082] Embodiment 4

[0083] Figure 4 This is a schematic diagram of the structure of a multi-input device adapter provided by Embodiment 4 of the present invention. Figure 4 As shown, the device comprises:

[0084] The input device information acquisition module 410 is used to read the initial key mapping table of at least one input device; scan the input device connected to the electronic product to obtain at least one input device identification connected to the electronic product;

[0085] A configurable input device list generating module 420, configured to compare the initial key mapping table of the input device with the input device identifier connected to the electronic product, and generate a configurable input device list based on the comparison result;

[0086] The initial key mapping table acquisition module 430 of the target input device is used to obtain the initial key mapping table of the target input device in response to the user's selection operation of the target input device in the configurable input device list;

[0087] The target input device adaptation key mapping table acquisition module 440 is used to obtain the target input device adaptation key mapping table in response to the user's modification operation on the target input device's initial key mapping table;

[0088] The adaptation key mapping table execution module 450 is used to execute the adaptation key mapping table of the target input device so that the electronic product supports the input operation of the target input device.

[0089] The technical solution of the embodiment of the present invention reads the initial key mapping table of at least one input device; scans the input device connected to the electronic product to obtain at least one input device identification connected to the electronic product; compares the initial key mapping table of the input device with the input device identification connected to the electronic product, and generates a list of configurable input devices based on the comparison result; in response to the user's selection operation of the target input device in the list of configurable input devices, obtains the initial key mapping table of the target input device; in response to the user's modification operation of the initial key mapping table of the target input device, obtains the adaptation key mapping table of the target input device; executes the adaptation key mapping table of the target input device, so that the electronic product supports the input operation of the target input device. Through the above technical solution, the adaptation and access of electronic products to multiple input devices are realized, the types of input devices of electronic products are enriched, and the user operation experience is improved.

[0090] In some optional embodiments, the input device includes one or more of a handle, a joystick console, and a mobile terminal.

[0091] In some optional implementations, the electronic product is an embedded device or a game console.

[0092] In some optional implementations, the button mapping table includes one or more of an input device name, a product identifier, a manufacturer identifier, an actual button value, and an application button value.

[0093] In some optional implementations, the input device list generation module 420 may be configured to:

[0094] If the device identification in the initial key mapping table of the input device is the same as the input device identification connected to the electronic product, the input device identification connected to the electronic product is written into the initial device list to obtain a configurable input device list.

[0095] In some optional implementations, the adaptation key mapping table acquisition module 440 of the target input device may be specifically used to:

[0096] In response to a user selecting a target key position in an initial key mapping table of a target input device, obtaining an initial key value of the target key position;

[0097] In response to a key event of a user pressing a target key, an operation key value of the target key is obtained;

[0098] The initial key value of the target key position is replaced based on the operation key value of the target key position to obtain an adaptation key mapping table of the target input device.

[0099] In some optional implementations, the adaptation key mapping table execution module 450 may be specifically used to:

[0100] When an input event of a user to a target input device is detected, obtaining a device identification of the target input device;

[0101] Based on the device identification of the target input device, read and obtain an adaptation key mapping table of the target input device;

[0102] Based on the adaptation key mapping table of the target input device, obtaining the application key value corresponding to the input event;

[0103] Generate a keyboard event class corresponding to the input event based on the application key value corresponding to the input event;

[0104] The keyboard event class corresponding to the input event is forwarded to the software application layer, and the software application layer executes the function corresponding to the keyboard event class corresponding to the input event.

[0105] The multi-input device adaptation apparatus provided in the embodiment of the present invention can execute the multi-input device adaptation method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0106] Embodiment 5

[0107] Figure 5 A schematic diagram of the structure of an electronic product 10 that can be used to implement an embodiment of the present invention is shown. The electronic product is 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. The electronic product can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0108] like Figure 5As shown, the electronic product 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic product 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. The I / O interface 15 is also connected to the bus 14.

[0109] A number of components in the electronic product 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic product 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0110] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 11 performs the various methods and processes described above, such as a multi-input device adaptation method, which includes:

[0111] Reading an initial key mapping table of at least one input device; scanning the input device connected to the electronic product to obtain at least one input device identification connected to the electronic product;

[0112] Comparing the initial key mapping table of the input device with the input device identifier connected to the electronic product, and generating a configurable input device list based on the comparison result;

[0113] In response to a user selecting a target input device from the list of configurable input devices, obtaining an initial key mapping table for the target input device;

[0114] In response to a user's modification operation on an initial key mapping table of a target input device, obtaining an adapted key mapping table of the target input device;

[0115] The adapted key mapping table of the target input device is executed so that the electronic product supports the input operation of the target input device.

[0116] In some embodiments, the multi-input device adaptation method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic product 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the multi-input device adaptation method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the multi-input device adaptation method in any other appropriate manner (e.g., by means of firmware).

[0117] Various implementations 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), system-on-chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0118] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0119] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

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

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

[0122] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0123] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0124] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A multi-input device adaptation method, characterized in that: Performed by electronics, including: Reading an initial key mapping table of at least one input device; scanning the input device connected to the electronic product to obtain at least one input device identification connected to the electronic product; Comparing the initial key mapping table of the input device with the input device identifier connected to the electronic product, and generating a configurable input device list based on the comparison result; In response to a user selecting a target input device from the list of configurable input devices, obtaining an initial key mapping table for the target input device; In response to a user's modification operation on an initial key mapping table of a target input device, obtaining an adapted key mapping table of the target input device; The adapted key mapping table of the target input device is executed so that the electronic product supports the input operation of the target input device.

2. The method according to claim 1, characterized in that The input device includes one or more of a handle, a joystick console and a mobile terminal.

3. The method according to claim 1, characterized in that: The electronic product is an embedded device or a game console.

4. The method according to claim 1, characterized in that The initial key mapping table includes one or more of an input device name, a product identifier, a manufacturer identifier, an actual key value, and an application key value.

5. The method according to claim 1, characterized in that: The generating a list of configurable input devices based on the comparison results includes: If the device identification in the initial key mapping table of the input device is the same as the input device identification connected to the electronic product, the input device identification connected to the electronic product is written into the initial device list to obtain a configurable input device list.

6. The method according to claim 1, characterized in that The step of obtaining an adapted key mapping table of the target input device in response to a user's modification operation on the initial key mapping table of the target input device comprises: In response to a user selecting a target key position in an initial key mapping table of a target input device, obtaining an initial key value of the target key position; In response to a key event of a user pressing a target key, an operation key value of the target key is obtained; The initial key value of the target key position is replaced based on the operation key value of the target key position to obtain an adaptation key mapping table of the target input device.

7. The method according to claim 1, characterized in that The step of executing the adapted key mapping table of the target input device includes: When an input event of a user to a target input device is detected, obtaining a device identification of the target input device; Based on the device identification of the target input device, read and obtain an adaptation key mapping table of the target input device; Based on the adaptation key mapping table of the target input device, obtaining the application key value corresponding to the input event; Generate a keyboard event class corresponding to the input event based on the application key value corresponding to the input event; The keyboard event class corresponding to the input event is forwarded to the software application layer, and the software application layer executes the function corresponding to the keyboard event class corresponding to the input event.

8. A multi-input device adapter, characterized in that: Performed by electronics, including: An input device information acquisition module is used to read an initial key mapping table of at least one input device; scan the input device connected to the electronic product to obtain at least one input device identification connected to the electronic product; A configurable input device list generating module, used for comparing the initial key mapping table of the input device with the input device identifier connected to the electronic product, and generating a configurable input device list based on the comparison result; An initial key mapping table acquisition module for a target input device, configured to obtain an initial key mapping table for the target input device in response to a user selecting a target input device from a list of configurable input devices; An adapted key mapping table acquisition module for a target input device, used to obtain an adapted key mapping table for the target input device in response to a user's modification operation on an initial key mapping table of the target input device; The adaptation key mapping table execution module is used to execute the adaptation key mapping table of the target input device so that the electronic product supports the input operation of the target input device.

9. An electronic product, characterized in that: The electronic products include: at least one processor; and a memory communicatively coupled to the at least one processor; The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the multi-input device adaptation method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the multi-input device adaptation method according to any one of claims 1 to 7 when executed.