A processing method and electronic device
By generating input signals with multiple triggering methods, different operations are performed according to the state of the electronic device, solving the problem of unintelligent existing interactive operations and achieving a more efficient user interaction experience and operational efficiency.
Patent Information
- Application Number
- CN202211073250.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-02
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2042-09-02
AI Technical Summary
The existing user experience of interacting with electronic devices is not intelligent enough, lacking intelligent interaction methods.
The first input module generates input signals corresponding to various triggering methods and performs different operations according to the state of the electronic device, including performing a first type of operation in the first state, performing a second type of operation in the second state, determining the target sub-user interface using a pre-built mapping relationship and reference information, and performing a third type of operation in combination with the signal from the second input module.
It improved user operation efficiency, enhanced the interactive experience, increased work and gaming efficiency, and improved the user experience.
Smart Images

Figure CN115407925B_ABST
Abstract
Description
Technical Field
[0001] This application relates to a processing method and an electronic device. Background Technology
[0002] Currently, using input modules to enable user interaction with electronic devices is a common approach, but the existing interactive experience is not intelligent enough. Summary of the Invention
[0003] The purpose of this application is to provide a processing method and an electronic device.
[0004] In a first aspect, embodiments of this application provide a processing method, including:
[0005] A first input signal is obtained, wherein the first input signal is generated by the first input module of the electronic device being triggered according to a triggering mode, and the first input module has multiple triggering modes and can generate a first input signal corresponding to the triggering mode;
[0006] When the electronic device is in a first state, a first type of operation in the first state is performed based on the first input signal.
[0007] When the electronic device is in the second state, the second type of operation in the second state is performed based on the first input signal.
[0008] In one possible implementation, the electronic device is further determined to be in the second state by at least one of the following methods: and
[0009] If the application running on the electronic device belongs to a game type, the electronic device is determined to be in the second state; and
[0010] If the current user interface of the electronic device is a game interface, then the electronic device is determined to be in the second state;
[0011] If the utilization rate of the graphics processor of the electronic device is greater than a preset threshold, the electronic device is determined to be in the second state.
[0012] In one possible implementation, performing the second type of operation in the second state based on the first input signal includes:
[0013] In response to the first input signal, a target sub-user interface is determined, wherein the target sub-user interface is a portion of the target user interface of the electronic device;
[0014] In the second state, the second type of operation is performed on the target sub-user interface.
[0015] In one possible implementation, determining the target sub-user interface in response to the first input signal includes at least one of the following:
[0016] Based on a pre-constructed mapping relationship, the target sub-user interface corresponding to the first input signal is determined, wherein the mapping relationship includes the correspondence between the triggering method and the user interface; and
[0017] The target object is determined based on the first input signal, and the target sub-user interface is determined based on the target object.
[0018] In one possible implementation, the step of performing a second type of operation in the second state based on the first input signal when the electronic device is in a second state includes:
[0019] In response to the first input signal, reference information is generated;
[0020] The reference information is displayed.
[0021] In one possible implementation, it also includes:
[0022] Based on the reference information, the current user interface is divided into N sub-user interfaces;
[0023] Construct a mapping relationship between the N sub-user interfaces and the N triggering methods, wherein the triggering method is a triggering action set for the first input module.
[0024] In one possible implementation, when the second type of operation corresponding to the triggering method is amplification, the step of performing the second type of operation in the second state based on the first input signal when the electronic device is in a second state includes:
[0025] The target sub-user interface is magnified by a preset factor;
[0026] Control the target point to move to the center area of the magnified target sub-user interface.
[0027] In one possible implementation, the electronic device further includes a second input module, capable of generating a second input signal corresponding to the triggering method according to the triggering method of the second input module, and the electronic device is capable of performing a third type of operation based on the second input signal; the processing method further includes:
[0028] Obtain the correspondence between the first input signal and the second input signal;
[0029] Based on the correspondence, the third type of operation is performed on the first input signal.
[0030] In one possible implementation, the processing method further includes:
[0031] If the current interactive interface belongs to the target application, then for the interface of the target application, based on the first input signal and the correspondence, the third type of operation is performed;
[0032] If the current interactive interface does not belong to the target application, then the second type of operation is performed based on the first input signal.
[0033] Secondly, embodiments of this application also provide an electronic device, including:
[0034] The module is configured to obtain a first input signal, wherein the first input signal is generated by the first input module of the electronic device being triggered according to a triggering mode, and the first input module has multiple triggering modes and is capable of generating a first input signal corresponding to the triggering mode;
[0035] A first execution module is configured to perform a first type of operation in the first state based on the first input signal when the electronic device is in a first state.
[0036] The second execution module is configured to perform a second type of operation in the second state based on the first input signal when the electronic device is in the second state.
[0037] In this embodiment, a first input signal is generated in response to the triggering method of the first input module, and different operations are performed when the electronic device is in different states. That is, when the electronic device is in a first state, a first type of operation in the first state is performed based on the first input signal, and when the electronic device is in a second state, a second type of operation in the second state is performed based on the first input signal. Attached Figure Description
[0038] To more clearly illustrate the technical solutions in this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0039] Figure 1 A flowchart of a processing method provided in this application is shown;
[0040] Figure 2 A schematic diagram of a processing method provided in this application is shown;
[0041] Figure 3 A schematic diagram illustrating another processing method provided in this application is shown;
[0042] Figure 4 This application provides a schematic diagram of the structure of an electronic device.
[0043] Figure 5 A schematic diagram of the structure of another electronic device provided in this application is shown. Detailed Implementation
[0044] Various embodiments and features of this application are described herein with reference to the accompanying drawings.
[0045] It should be understood that various modifications can be made to the embodiments described herein. Therefore, the above description should not be considered as limiting, but merely as an example of embodiments. Other modifications within the scope and spirit of this application will be apparent to those skilled in the art.
[0046] The accompanying drawings, which are included in and form part of this specification, illustrate embodiments of the present application and, together with the general description of the present application given above and the detailed description of the embodiments given below, serve to explain the principles of the present application.
[0047] These and other features of this application will become apparent from the following description of preferred forms of embodiments given as non-limiting examples, with reference to the accompanying drawings.
[0048] It should also be understood that although this application has been described with reference to some specific examples, those skilled in the art can certainly implement many other equivalent forms of this application, which have the features described in the claims and are therefore all within the scope of protection defined herein.
[0049] The above and other aspects, features and advantages of this application will become more apparent when taken in conjunction with the accompanying drawings and in view of the following detailed description.
[0050] Specific embodiments of this application are described thereafter with reference to the accompanying drawings; however, it should be understood that the claimed embodiments are merely examples of this application, which can be implemented in various ways. Well-known and / or repeated functions and structures are not described in detail to avoid unnecessary or redundant details that could obscure the application. Therefore, the specific structural and functional details claimed herein are not intended to be limiting, but merely serve as the basis and representative basis for the claims to teach those skilled in the art to use this application in a variety of substantially any suitable detailed structures.
[0051] This specification may use the phrases “in one embodiment,” “in another embodiment,” “in yet another embodiment,” or “in other embodiments,” all of which may refer to one or more of the same or different embodiments according to this application.
[0052] The processing method provided in this application can improve user operation efficiency, thereby improving game efficiency and user experience. To facilitate understanding of this application, a processing method provided in this application will first be described in detail.
[0053] like Figure 1 The diagram shown is a flowchart of a processing method provided in an embodiment of this application, wherein the specific steps include S101-S103.
[0054] S101, Obtain a first input signal, wherein the first input signal is generated by the first input module of the electronic device being triggered according to a triggering method. The first input module has multiple triggering methods and can generate a first input signal corresponding to the triggering method.
[0055] In practical implementation, the first input module can be a physical button on an electronic device, such as the TrackPoint, or it can include a pressure sensor, proximity sensor, gyroscope, etc., to collect trigger data and determine the corresponding trigger method based on the collected trigger data. The user executes a trigger operation on the first input module according to the trigger method, and the first input module responds by generating a first input signal corresponding to the trigger method. The first input module can have multiple trigger methods, optionally including tap, double tap, swipe, etc.
[0056] Here, the first input signal can represent information such as the triggering method, triggering time, and number of triggers.
[0057] As one example, the first input module can also be equipped with a fingerprint collector, which can obtain the user's fingerprint information when triggering an operation to determine whether the user has triggering authority. This prevents information leakage caused by unauthorized users triggering the first input module, thereby improving the security of electronic devices.
[0058] S102, when the electronic device is in a first state, perform a first type of operation in the first state based on the first input signal.
[0059] In practice, the first input signal generated by the same triggering method corresponding to the first input module will have different operations in different states. Therefore, after obtaining the first input signal, the current state of the electronic device is determined, that is, whether the electronic device is in the first state or the second state, etc.
[0060] When the electronic device is determined to be in a first state, a first type of operation in the first state is performed based on a first input signal. In this embodiment, the first state is a non-game state, and the first type of operation includes selecting, moving the cursor, deleting objects, etc.
[0061] S103, when the electronic device is in the second state, the second type of operation in the second state is performed based on the first input signal.
[0062] Furthermore, when it is determined that the electronic device is in a second state, a second type of operation in the second state is performed based on the first input signal. For example, in this embodiment of the application, the second state is a game state, and the second type of operation includes zooming, moving, and shooting.
[0063] This application embodiment generates a first input signal in response to the triggering method of the first input module, and performs different operations when the electronic device is in different states. That is, when the electronic device is in the first state, it performs the first type of operation in the first state based on the first input signal, and when the electronic device is in the second state, it performs the second type of operation in the second state based on the first input signal. This achieves the purpose of improving the interactive experience and increasing the user's operating efficiency, thereby improving work efficiency, gaming efficiency and user experience.
[0064] Furthermore, embodiments of this application also provide several ways to determine whether an electronic device is in a second state. In specific implementations, at least one of the following methods can be used to determine whether an electronic device is in a second state.
[0065] The first type:
[0066] The system iterates through the runtime logs and determines the currently running application on the electronic device based on the runtime data recorded in the logs. For example, it can determine whether the currently running application is a game. If the application being run by the electronic device is a game, meaning there is a game application currently running, then the electronic device is determined to be in the second state.
[0067] The second type:
[0068] The system captures the current user interface displayed on the screen of the electronic device. If an external screen is connected to the electronic device, the current user interface displayed on the external screen is also captured simultaneously. Furthermore, it can identify the content within the current user interface, such as text and elements, and determine whether any text or elements are associated with the game. If so, it is determined that the current user interface of the electronic device belongs to the game interface, and thus the electronic device is in a second state.
[0069] The third type:
[0070] Considering that the graphics processing unit (GPU) of an electronic device needs to perform a large amount of data processing when running game-type applications, the GPU's operating logs can be obtained within a preset time period to determine its utilization rate. Furthermore, the GPU utilization rate is compared with a preset threshold; if the GPU utilization rate exceeds the preset threshold, the electronic device is determined to be in a second state.
[0071] Of course, in order to provide accuracy in determining whether an electronic device is in the second state, two or three of the above three methods can be used to make the judgment, avoiding the problem of judgment errors caused by using only one method.
[0072] As one example, the first input signal can indicate that only a part of the user interface in the target user interface is operated. Therefore, when performing the second type of operation in the second state based on the first input signal, the target sub-user interface is determined by responding to the first input signal first. The target sub-user interface is a part of the user interface of the target user interface of the electronic device. In the embodiments of this application, the target user interface is a game interface.
[0073] After identifying the target sub-user interface, perform the second type of operation on the target sub-user interface in the second state.
[0074] Furthermore, embodiments of this application also provide the following methods for determining the target sub-user interface. In specific implementations, at least one of the following methods can be used to respond to the first input signal in order to determine the target sub-user interface.
[0075] The first type:
[0076] Based on a pre-built mapping relationship, the target sub-user interface corresponding to the first input signal is determined. The mapping relationship includes multiple triggering methods and the sub-user interface corresponding to each triggering method.
[0077] Optionally, refer to Figure 2 The diagram shown illustrates how the current user interface can be divided into N sub-user interfaces using reference information such as scale parameters. Then, a mapping relationship is constructed between the N sub-user interfaces and N triggering methods, where the triggering method is a triggering action set for the first input module.
[0078] Here, the current user interface can be the user interface corresponding to the screen of the electronic device, or it can be the target user interface mentioned above, i.e., the game interface. When the current user interface is the user interface corresponding to the screen of the electronic device, the mapping relationship can be pre-built; when the current user interface is the target user interface, since the location of the target user interface is uncertain, the mapping relationship can also be built in real time.
[0079] The second type:
[0080] The target object is determined based on the first input signal. This target object can be a game element such as an item or character. The target sub-user interface is then determined based on a preset rule. Optionally, the preset rule can be set to define the target sub-user interface as a circle centered on the target object with a preset threshold as its radius.
[0081] Similarly, the above-mentioned methods for determining the target sub-user interface can also be used simultaneously, and this application embodiment does not specifically limit this.
[0082] Optionally, when the electronic device is in the second state, it responds to the first input signal to generate reference information, which includes scale parameters, reference lines, direction indicators, attribute information of each element in the display interface, and object tag information, etc. Then, the reference information is displayed. As one example, the reference information is placed on top of the target user interface, and the displayed reference information is set to have a transparent attribute to avoid the reference information interfering with the user's access to information in the target user interface.
[0083] As one example, when the second type of operation corresponding to the triggering method is zooming, the second type of operation performed on the target sub-user interface in the second state according to the second type of operation corresponding to the triggering method can be specifically set as follows: zooming in on the target sub-user interface by a preset factor, and controlling the target point to move to the center area of the zoomed-in target sub-user interface, wherein the target point can be the point corresponding to the cursor. Figure 3 A schematic diagram of the magnified target sub-user interface is shown.
[0084] The electronic device in this application embodiment also includes a second input module, wherein the second input module can be a mouse, keyboard, touch screen, etc. The second input module can generate a second input signal corresponding to the triggering method according to the triggering method of the second input module being triggered, and the electronic device can perform a third type of operation based on the second input signal.
[0085] Furthermore, a correspondence can be established between the first input signal and the second input signal. For example, the first input signal generated after a first triggering method on the first input module can be associated with the second input signal generated after a second triggering method on the second input module, and the first input signal generated after a third triggering method on the first input module can be associated with the second input signal generated after a fourth triggering method on the second input module. In this case, after obtaining the first input signal, a third type of operation can be performed based on the correspondence between the first and second input signals.
[0086] For example, the input signal generated by the tap operation of the first input module can be correlated with the input signal generated by a specific key on the keyboard. For instance, the letter A can be input by pressing key A on the keyboard. With this correlation, the letter A can be input by tapping the first input module. Alternatively, the input signal generated by the continuous tap operation of the first input module can be correlated with the mouse wheel. For instance, the mouse wheel is used to control the scaling of the display interface. Therefore, the scaling of the display interface can be controlled by continuously tapping the first input module.
[0087] In other words, any triggering method that enables the first input module to generate an input signal can be arbitrarily associated and combined with the functions of other second input modules, and the embodiments of this application do not impose any restrictions on this.
[0088] In practice, a target application, such as a game application, that can be associated with the first input module can be pre-set so that the first input module can be automatically launched and associated when the target application is run.
[0089] Furthermore, elements or identifiers of the current interactive interface are obtained in advance to determine whether the current interactive interface belongs to the target application. If the current interactive interface belongs to the target application, a third type of operation is performed on the interface of the target application based on the first input signal and the corresponding relationship, which means that the purpose of operating the target application using the first input module can be achieved. If the current interactive interface does not belong to the target application, a second type of operation is performed based on the first input signal, which means that the first input module is in a stopped working state.
[0090] It is worth noting that this mapping relationship can be set by the electronic device manufacturer or customized by the user according to their own operating habits. Of course, the target application can also be set by the electronic device manufacturer or the user.
[0091] Based on the same inventive concept, the second aspect of this application also provides an electronic device corresponding to the processing method. Since the principle of solving the problem by the electronic device in this application is similar to the above-mentioned processing method, the implementation of the electronic device can refer to the implementation of the method, and the repeated parts will not be described again.
[0092] Figure 4 A schematic diagram of an electronic device provided in an embodiment of this application is shown, specifically including:
[0093] The module 401 is configured to obtain a first input signal, wherein the first input signal is generated by the first input module of the electronic device being triggered according to a triggering mode, and the first input module has multiple triggering modes and can generate a first input signal corresponding to the triggering mode;
[0094] The first execution module 402 is configured to perform a first type of operation in the first state based on the first input signal when the electronic device is in a first state.
[0095] The second execution module 403 is configured to perform a second type of operation in the second state based on the first input signal when the electronic device is in the second state.
[0096] In yet another embodiment, the electronic device further includes a determining module 404, configured as follows:
[0097] If the application running on the electronic device belongs to a game type, the electronic device is determined to be in the second state; and
[0098] If the current user interface of the electronic device is a game interface, then the electronic device is determined to be in the second state; and
[0099] If the utilization rate of the graphics processor of the electronic device is greater than a preset threshold, the electronic device is determined to be in the second state.
[0100] In yet another embodiment, the second execution module 403 is specifically configured as follows:
[0101] In response to the first input signal, a target sub-user interface is determined, wherein the target sub-user interface is a portion of the target user interface of the electronic device;
[0102] In the second state, the second type of operation is performed on the target sub-user interface.
[0103] In yet another embodiment, the second execution module 403 is further configured to:
[0104] Based on a pre-constructed mapping relationship, the target sub-user interface corresponding to the first input signal is determined, wherein the mapping relationship includes the correspondence between the triggering method and the user interface; and
[0105] The target object is determined based on the first input signal, and the target sub-user interface is determined based on the target object.
[0106] In yet another embodiment, the second execution module 403 is further configured to:
[0107] In response to the first input signal, reference information is generated;
[0108] The reference information is displayed.
[0109] In yet another embodiment, the electronic device further includes a construction module 405 configured as follows:
[0110] Based on the reference information, the current user interface is divided into N sub-user interfaces;
[0111] Construct a mapping relationship between the N sub-user interfaces and the N triggering methods, wherein the triggering method is a triggering action set for the first input module.
[0112] In another embodiment, when the second type of operation corresponding to the triggering method is amplification, the second execution module 403 is further configured to:
[0113] The target sub-user interface is magnified by a preset factor;
[0114] Control the target point to move to the center area of the magnified target sub-user interface.
[0115] In another embodiment, the electronic device further includes a second input module 403, which is capable of generating a second input signal corresponding to the triggering method according to the triggering method of the second input module being triggered, and the electronic device is capable of performing a third type of operation based on the second input signal;
[0116] The electronic device further includes a third execution module, which is configured as follows:
[0117] Obtain the correspondence between the first input signal and the second input signal;
[0118] Based on the correspondence, the third type of operation is performed on the first input signal.
[0119] In yet another embodiment, the third execution module 406 is further configured to:
[0120] If the current interactive interface belongs to the target application, then for the interface of the target application, based on the first input signal and the correspondence, the third type of operation is performed;
[0121] If the current interactive interface does not belong to the target application, then the second type of operation is performed based on the first input signal.
[0122] This application embodiment generates a first input signal in response to the triggering method of the first input module, and performs different operations when the electronic device is in different states. That is, when the electronic device is in a first state, it performs a first type of operation based on the first input signal, and when the electronic device is in a second state, it performs a second type of operation based on the first input signal, thereby improving the user's operating efficiency, and thus improving work efficiency, gaming efficiency and user experience.
[0123] This application provides a storage medium, which is a computer-readable medium, storing a computer program. When executed by a processor, the computer program implements the method provided in any embodiment of this application, including the following steps S11 to S13:
[0124] S11, Obtain a first input signal, wherein the first input signal is generated by the first input module of the electronic device being triggered according to a triggering method, and the first input module has multiple triggering methods and can generate a first input signal corresponding to the triggering method;
[0125] S12, when the electronic device is in a first state, perform a first type of operation in the first state based on the first input signal;
[0126] S13, when the electronic device is in the second state, perform the second type of operation in the second state based on the first input signal.
[0127] When a computer program is processed by a processor, the processor specifically performs the following steps: determining that the electronic device is in the second state by at least one of the following methods: if the type of the application running on the electronic device includes a game, determining that the electronic device is in the second state; and if the current user interface of the electronic device is a game interface, determining that the electronic device is in the second state; and if the utilization rate of the graphics processor of the electronic device is greater than a preset threshold, determining that the electronic device is in the second state.
[0128] When a computer program is executed by a processor to perform a second type of operation in the second state based on the first input signal, the processor also performs the following steps: in response to the first input signal, determining a target sub-user interface, wherein the target sub-user interface is a part of the target user interface of the electronic device; and performing the second type of operation on the target sub-user interface in the second state.
[0129] When the computer program is executed by the processor in response to the first input signal and determines the target sub-user interface, the processor also performs the following steps: determining the target sub-user interface corresponding to the first input signal based on a pre-built mapping relationship, wherein the mapping relationship includes the correspondence between the triggering method and the user interface; and determining the target object based on the first input signal and determining the target sub-user interface based on the target object.
[0130] When the computer program is executed by the processor in the second state of the electronic device, and performs a second type of operation in the second state based on the first input signal, the processor also performs the following steps: generating reference information in response to the first input signal; and displaying the reference information.
[0131] When the computer program is processed by the processor, the processor also performs the following steps: based on the reference information, the current user interface is divided into N sub-user interfaces; a mapping relationship is constructed between the N sub-user interfaces and N triggering methods, wherein the triggering method is a triggering action set for the first input module.
[0132] When the computer program is executed by the processor in the second state of the electronic device, and performs the second type of operation in the second state based on the first input signal, the processor also performs the following steps: magnifying the target sub-user interface by a preset factor; controlling the target point to move to the center area of the magnified target sub-user interface.
[0133] The electronic device further includes a second input module, which is capable of generating a second input signal corresponding to the triggering method according to the triggering method of the second input module. The electronic device is capable of performing a third type of operation based on the second input signal. When the computer program is processed by the processor, the processor also performs the following steps: obtaining the correspondence between the first input signal and the second input signal; and performing the third type of operation based on the first input signal according to the correspondence.
[0134] When a computer program is processed by a processor, the processor also performs the following steps: if the current interactive interface belongs to the target application, then for the interface of the target application, the third type of operation is performed based on the first input signal and the correspondence; if the current interactive interface does not belong to the target application, then the second type of operation is performed based on the first input signal.
[0135] This application embodiment generates a first input signal in response to the triggering method of the first input module, and performs different operations when the electronic device is in different states. That is, when the electronic device is in a first state, it performs a first type of operation based on the first input signal, and when the electronic device is in a second state, it performs a second type of operation based on the first input signal, thereby improving the user's operating efficiency, and thus improving work efficiency, gaming efficiency and user experience.
[0136] This application provides an electronic device, the structural schematic diagram of which is shown below. Figure 5 As shown, it includes at least a memory 501 and a processor 502. The memory 501 stores a computer program, and the processor 502 implements the methods provided in any embodiment of this application when executing the computer program in the memory 501. Exemplarily, the steps of the electronic device computer program are as follows: S21 to S23:
[0137] S21, Obtain a first input signal, wherein the first input signal is generated by the first input module of the electronic device being triggered according to a triggering method, and the first input module has multiple triggering methods and can generate a first input signal corresponding to the triggering method;
[0138] S22, when the electronic device is in a first state, perform a first type of operation in the first state based on the first input signal;
[0139] S23, when the electronic device is in the second state, the second type of operation in the second state is performed based on the first input signal.
[0140] When the processor executes the processing method stored in the memory, it also executes the following computer program: determining that the electronic device is in the second state by at least one of the following methods: determining that the electronic device is in the second state if the type of the application running on the electronic device includes a game type; and determining that the electronic device is in the second state if the current user interface of the electronic device is a game interface; and determining that the electronic device is in the second state if the utilization rate of the graphics processor of the electronic device is greater than a preset threshold.
[0141] When the processor executes the second type of operation stored in memory based on the first input signal in the second state, it also executes the following computer program: in response to the first input signal, it determines a target sub-user interface, wherein the target sub-user interface is a part of the target user interface of the electronic device; and performs the second type of operation on the target sub-user interface in the second state.
[0142] When the processor executes the response to the first input signal stored in memory to determine the target sub-user interface, it also executes the following computer program: determining the target sub-user interface corresponding to the first input signal based on a pre-constructed mapping relationship, wherein the mapping relationship includes the correspondence between the triggering method and the user interface; and determining the target object based on the first input signal, and determining the target sub-user interface based on the target object.
[0143] When the processor executes a second type of operation in the second state based on the first input signal while the electronic device is in the second state, it also executes the following computer program: generating reference information in response to the first input signal; and displaying the reference information.
[0144] When the processor executes the processing method stored in the memory, it also executes the following computer program: based on the reference information, it divides the current user interface into N sub-user interfaces;
[0145] Construct a mapping relationship between the N sub-user interfaces and the N triggering methods, wherein the triggering method is a triggering action set for the first input module.
[0146] When the processor executes the second type of operation in the second state based on the first input signal, while the electronic device is in the second state, it also executes the following computer program: magnifies the target sub-user interface by a preset factor; and controls the target point to move to the center area of the magnified target sub-user interface.
[0147] The electronic device further includes a second input module, which is capable of generating a second input signal corresponding to the triggering method according to the triggering method of the second input module. The electronic device is capable of performing a third type of operation based on the second input signal. When the processor executes the processing method stored in the memory, it also executes the following computer program: obtaining the correspondence between the first input signal and the second input signal; and performing the third type of operation based on the first input signal according to the correspondence.
[0148] When the processor executes the processing method stored in the memory, it also executes the following computer program: if the current interactive interface belongs to the target application, then for the interface of the target application, based on the first input signal and the correspondence, the third type of operation is executed; if the current interactive interface does not belong to the target application, then based on the first input signal, the second type of operation is executed.
[0149] This application embodiment generates a first input signal in response to the triggering method of the first input module, and performs different operations when the electronic device is in different states. That is, when the electronic device is in a first state, it performs a first type of operation based on the first input signal, and when the electronic device is in a second state, it performs a second type of operation based on the first input signal, thereby improving the user's operating efficiency, and thus improving work efficiency, gaming efficiency and user experience.
[0150] Optionally, in this embodiment, the storage medium may include, but is not limited to, various media capable of storing program code, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard drive, magnetic disk, or optical disk. Optionally, in this embodiment, the processor executes the method steps described in the above embodiments according to the program code stored in the storage medium. Optionally, specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementations, which will not be repeated here. Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed on a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby storing them in a storage device for execution by a computing device. In some cases, the steps shown or described can be executed in a different order than those described here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any specific hardware and software combination.
[0151] Furthermore, although exemplary embodiments have been described herein, their scope includes any and all embodiments based on this application that have equivalent elements, modifications, omissions, combinations (e.g., schemes involving intersections of various embodiments), adaptations, or alterations. Elements in the claims will be interpreted broadly based on the language used in the claims and are not limited to the examples described in this specification or during the implementation of this application, which will be interpreted as non-exclusive. Therefore, this specification and examples are intended to be considered illustrative only, and the true scope and spirit are indicated by the full scope of the following claims and their equivalents.
[0152] The above description is intended to be illustrative and not restrictive. For example, the above examples (or one or more of them) can be used in combination with each other. Other embodiments may be used by those skilled in the art upon reading the above description. Furthermore, in the above detailed description, various features may be grouped together to simplify the application. This should not be construed as an intention that a disclosed feature not claimed is necessary for any claim. Rather, the subject matter of this application may be less than all the features of a particular disclosed embodiment. Thus, the following claims are incorporated herein by reference as examples or embodiments, wherein each claim is an independent, separate embodiment, and these embodiments are contemplated to be combined with each other in various combinations or arrangements. The scope of this application should be determined by reference to the appended claims and the full scope of their equivalents.
[0153] The foregoing has described in detail several embodiments of this application, but this application is not limited to these specific embodiments. Those skilled in the art can make various variations and modifications based on the concept of this application, and all such variations and modifications should fall within the scope of protection claimed in this application.
Claims
1. A processing method, comprising: A first input signal is obtained, wherein the first input signal is generated by the first input module of the electronic device being triggered according to a triggering mode, and the first input module has multiple triggering modes and can generate a first input signal corresponding to the triggering mode; When the electronic device is in a first state, a first type of operation in the first state is performed based on the first input signal. When the electronic device is in the second state, a second type of operation in the second state is performed based on the first input signal; When the electronic device is in a second state, performing a second type of operation in the second state based on the first input signal includes: When the electronic device is in the second state, reference information is generated in response to the first input signal; The reference information is displayed; wherein the reference information has a transparent attribute. The processing method further includes: Based on the reference information, the current user interface is divided into N sub-user interfaces; A mapping relationship is constructed between the N sub-user interfaces and the N triggering methods, wherein the triggering method is a triggering action set for the first input module, and the mapping relationship is used to determine the target sub-user interface corresponding to the first input signal; the first input module is a physical button separately set on the electronic device, and the triggering method includes tapping, double-tapping, or sliding.
2. The processing method according to claim 1, further comprising determining that the electronic device is in the second state by at least one of the following methods: If the application running on the electronic device belongs to a game type, the electronic device is determined to be in the second state; and If the current user interface of the electronic device is a game interface, then the electronic device is determined to be in the second state; and If the utilization rate of the graphics processor of the electronic device is greater than a preset threshold, the electronic device is determined to be in the second state.
3. The processing method according to claim 1, wherein performing the second type of operation in the second state based on the first input signal includes: In response to the first input signal, a target sub-user interface is determined, wherein the target sub-user interface is a portion of the target user interface of the electronic device; In the second state, the second type of operation is performed on the target sub-user interface.
4. The processing method according to claim 3, wherein responding to the first input signal and determining the target sub-user interface includes at least one of the following: Based on a pre-built mapping relationship, the target sub-user interface corresponding to the first input signal is determined, wherein, The mapping relationship includes the correspondence between the triggering method and the user interface; and The target object is determined based on the first input signal, and the target sub-user interface is determined based on the target object.
5. The processing method according to claim 1, wherein when the second type of operation corresponding to the triggering mode is amplification, the step of performing the second type of operation in the second state based on the first input signal when the electronic device is in the second state includes: The target sub-user interface is magnified by a preset factor; Control the target point to move to the center area of the magnified target sub-user interface.
6. The processing method according to claim 1, wherein the electronic device further includes a second input module, which is capable of generating a second input signal corresponding to the triggering method according to the triggering method of the second input module being triggered, and the electronic device is capable of performing a third type of operation based on the second input signal; The processing method further includes: Obtain the correspondence between the first input signal and the second input signal; Based on the correspondence, the third type of operation is performed on the first input signal.
7. The processing method according to claim 6 further includes: If the current interactive interface belongs to the target application, then for the interface of the target application, based on the first input signal and the correspondence, the third type of operation is performed; If the current interactive interface does not belong to the target application, then the second type of operation is performed based on the first input signal.
8. An electronic device, comprising: The module is configured to obtain a first input signal, wherein the first input signal is generated by the first input module of the electronic device being triggered according to a triggering mode, and the first input module has multiple triggering modes and is capable of generating a first input signal corresponding to the triggering mode; A first execution module is configured to perform a first type of operation in the first state based on the first input signal when the electronic device is in a first state. The second execution module is configured to perform a second type of operation in the second state based on the first input signal when the electronic device is in the second state. The second execution module is also configured as follows: When the electronic device is in the second state, reference information is generated in response to the first input signal; The reference information is displayed; wherein the reference information has a transparent attribute. The electronic device also includes a construction module configured as follows: Based on the reference information, the current user interface is divided into N sub-user interfaces; A mapping relationship is constructed between the N sub-user interfaces and the N triggering methods, wherein the triggering method is a triggering action set for the first input module, and the mapping relationship is used to determine the target sub-user interface corresponding to the first input signal; the first input module is a physical button separately set on the electronic device, and the triggering method includes tapping, double-tapping, or sliding.
Citation Information
Patent Citations
Game operation processing method, apparatus and device
CN105955494A
Mobile terminal key self-adapting method, mobile terminal and readable storage medium
CN107329757A
Game control method, mobile terminal and computer readable storage medium
CN112090075A
Interface focus control method and device, electronic equipment and storage medium
CN113552988A
