Mobile terminal control method, device, mobile terminal and medium

By setting up a shoulder key component on the mobile terminal and receiving and mapping shoulder key events into shortcut or touch functions, the problem of insensitive operation of the mobile terminal is solved and the user's game control experience is improved.

CN115237328BActive Publication Date: 2024-10-01BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110463524.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-25
Publication Date
2024-10-01
Estimated Expiration
2041-04-25

AI Technical Summary

Technical Problem

The display interface of mobile terminals is limited, which makes users prone to insensitive operations or misoperations when operating mobile games, affecting the gaming experience.

Method used

Set up a shoulder key component on a mobile terminal, receive shoulder key events and determine their type, map them to shortcut functions or touch functions, and convert them into corresponding operations, enriching operation methods and improving user experience.

Benefits of technology

By converting the operation of the shoulder key components into shortcut functions or touch functions, it enhances the convenience of user control, enriches the operation methods, and enhances the user's gaming experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115237328B_ABST
    Figure CN115237328B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a control method, device, mobile terminal and medium for a mobile terminal. The mobile terminal is provided with a shoulder key component. The control method for the mobile terminal includes: receiving a shoulder key event, the shoulder key event being generated based on an operation acting on the shoulder key component; determining the type of the shoulder key event; when the shoulder key event is of the first type, determining that the function associated with the shoulder key event is a shortcut function; when the shoulder key event is of the second type, determining that the function associated with the shoulder key event is one of a shortcut function and a touch function. The method involved in the present disclosure determines the shortcut function or touch function corresponding to the shoulder key event based on the shoulder key event generated by the received operation acting on the shoulder key component, converts the operation of the shoulder key component into a corresponding function, and gives full play to the role of the shoulder key component, so as to facilitate user control, enrich the diversity of operation methods, and enhance the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of intelligent terminals, and in particular to a control method and device for a mobile terminal, a mobile terminal, and a medium. Background Art

[0002] As mobile terminals such as mobile phones have become more and more versatile, their main uses are no longer limited to communication. Whether the entertainment function is powerful has become an important indicator of whether a mobile phone is popular. Mobile games have become a popular form of entertainment for young people. In mobile game scenarios, users control the game by touching the display interface of the mobile phone. When users operate the game, they often involve multi-finger control. Due to the limited display interface of the mobile phone, it is easy to cause insensitive or misoperation, which brings users a bad gaming experience. Summary of the invention

[0003] In order to overcome the problems existing in the related art, the present disclosure provides a control method of a mobile terminal, a control device, a mobile terminal and a medium.

[0004] According to a first aspect of an embodiment of the present disclosure, a control method of a mobile terminal is provided, wherein the mobile terminal is provided with a shoulder key assembly, and the method includes:

[0005] receiving a shoulder key event, wherein the shoulder key event is generated based on an operation acting on the shoulder key component;

[0006] determining the type of the shoulder key event;

[0007] When the shoulder key event is of the first type, determining that the function associated with the shoulder key event is a shortcut function;

[0008] When the shoulder key event is of the second type, the function associated with the shoulder key event is determined to be one of a shortcut function and a touch function.

[0009] Optionally, when the shoulder key event is of the second type, determining that the function associated with the shoulder key event is one of a shortcut function and a touch function includes:

[0010] When the shoulder key event is of the second type, if the system preset interface is not called, determining that the function associated with the shoulder key event is a shortcut function;

[0011] When the shoulder key event is of the second type, if the system preset interface is called, it is determined that the function associated with the shoulder key event is a touch function,

[0012] Wherein, the system preset interface is configured to communicate with an application program.

[0013] Optionally, the method further comprises:

[0014] Acquire first configuration information, where the first configuration information is used to characterize a mapping relationship between a shoulder key event and a shortcut function;

[0015] Determining a shortcut function corresponding to the shoulder key event according to the first configuration information and the shoulder key event;

[0016] Trigger the shortcut function.

[0017] Optionally, when the function is a touch function, the method further includes:

[0018] Acquire second configuration information, where the second configuration information is used to characterize a mapping relationship between the shoulder key event and the touch position;

[0019] Determining a touch position corresponding to the shoulder key event according to the second configuration information and the shoulder key event;

[0020] Based on the touch position, a target touch event is generated.

[0021] Optionally, the method further comprises:

[0022] Receiving an original touch event, where the original touch event is generated based on a touch operation acting on a touch interface;

[0023] Determining a comprehensive touch event according to the target touch event and the original touch event;

[0024] Execute the integrated touch event.

[0025] Optionally, the method further comprises:

[0026] When the system preset interface is called, a shoulder key event generated by an operation acting on the shoulder key component and a touch position corresponding to the shoulder key event are received;

[0027] A mapping relationship between the shoulder key event and the touch position is constructed as the second configuration information.

[0028] Optionally, the method further comprises:

[0029] When the system preset interface is called, the event filter is loaded;

[0030] The event filter is used to process the received event acting on the event source.

[0031] Optionally, the method further comprises:

[0032] When a shoulder key event is received, intercepting the shoulder key event and dispatching it to the currently running application;

[0033] The shoulder key event is notified in a broadcasting form to a monitoring object associated with the shoulder key event.

[0034] According to a second aspect of an embodiment of the present disclosure, a control device for a mobile terminal is provided, wherein the mobile terminal is provided with a shoulder key assembly, and the device comprises:

[0035] A receiving module, configured to receive a shoulder key event, wherein the shoulder key event is generated based on an operation acting on the shoulder key component;

[0036] A processing module is used to determine the type of the shoulder key event; when the shoulder key event is of the first type, determine that the function associated with the shoulder key event is a shortcut function; when the shoulder key event is of the second type, determine that the function associated with the shoulder key event is one of a shortcut function and a touch function.

[0037] Optionally, the processing module is specifically used for:

[0038] When the shoulder key event is of the second type, if the system preset interface is not called, determining that the function associated with the shoulder key event is a shortcut function;

[0039] When the shoulder key event is of the second type, if the system preset interface is called, it is determined that the function associated with the shoulder key event is a touch function,

[0040] Wherein, the system preset interface is configured to communicate with an application program.

[0041] Optionally, when the function is a shortcut function, the processing module is further configured to:

[0042] Acquire first configuration information, where the first configuration information is used to characterize a mapping relationship between a shoulder key event and a shortcut function;

[0043] Determining a shortcut function corresponding to the shoulder key event according to the first configuration information and the shoulder key event;

[0044] Trigger the shortcut function.

[0045] Optionally, when the function is a touch function, the processing module is further used to:

[0046] Acquire second configuration information, where the second configuration information is used to characterize a mapping relationship between the shoulder key event and the touch position;

[0047] Determining a touch position corresponding to the shoulder key event according to the second configuration information and the shoulder key event;

[0048] Based on the touch position, a target touch event is generated.

[0049] Optionally, the receiving module is further used for:

[0050] Receiving an original touch event, where the original touch event is generated based on a touch operation acting on a touch interface;

[0051] The processing module is also used for:

[0052] Determining a comprehensive touch event according to the target touch event and the original touch event;

[0053] The control device further includes an execution module, which is used to execute the comprehensive touch event.

[0054] Optionally, the receiving module is further used for:

[0055] When the system preset interface is called, a shoulder key event generated by an operation acting on the shoulder key component and a touch position corresponding to the shoulder key event are received;

[0056] The processing module is also used for:

[0057] A mapping relationship between the shoulder key event and the touch position is constructed as the second configuration information.

[0058] Optionally, the processing module is further used for:

[0059] When the system preset interface is called, the event filter is loaded;

[0060] The event filter is used to process the received event acting on the event source.

[0061] Preferably, the processing module is further used for:

[0062] When a shoulder key event is received, intercepting the shoulder key event and dispatching it to the currently running application;

[0063] The shoulder key event is notified in a broadcasting form to a monitoring object associated with the shoulder key event.

[0064] According to a third aspect of an embodiment of the present disclosure, there is provided a mobile terminal, including:

[0065] processor;

[0066] a memory for storing executable instructions for the processor;

[0067] The processor is configured to execute the control method of the mobile terminal as described above.

[0068] According to a fourth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of a mobile terminal, the mobile terminal is enabled to execute the control method of the mobile terminal as described above.

[0069] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: the method involved in the present disclosure is applied to a mobile terminal having a shoulder key component, and a shortcut function or touch function corresponding to the shoulder key event is determined based on a shoulder key event generated by an operation acting on the shoulder key component. The operation of the shoulder key component is converted into a corresponding function, and the role of the shoulder key component is fully utilized to facilitate user control, enrich the diversity of operation methods, and enhance the user experience.

[0070] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0072] Figure 1 is a schematic diagram of a shoulder key assembly according to an exemplary embodiment.

[0073] Figure 2 is a schematic diagram of a shoulder key assembly according to an exemplary embodiment.

[0074] Figure 3 is a schematic diagram of a shoulder key assembly according to an exemplary embodiment.

[0075] Figure 4 The figure is a flowchart of a method for controlling a mobile terminal according to an exemplary embodiment.

[0076] Figure 5 The figure is a flowchart of a method for controlling a mobile terminal according to an exemplary embodiment.

[0077] Figure 6 The figure is a flowchart of a method for controlling a mobile terminal according to an exemplary embodiment.

[0078] Figure 7 The figure is a flowchart of a method for controlling a mobile terminal according to an exemplary embodiment.

[0079] Figure 8 The figure is a flowchart of a method for controlling a mobile terminal according to an exemplary embodiment.

[0080] Fig. 9The figure is a flowchart of a method for controlling a mobile terminal according to an exemplary embodiment.

[0081] Fig.10 is a block diagram of a control device of a mobile terminal according to an exemplary embodiment.

[0082] Fig.11 is a block diagram of a mobile terminal device according to an exemplary embodiment. DETAILED DESCRIPTION

[0083] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.

[0084] As mobile terminals such as mobile phones have become more and more versatile, their main uses are no longer limited to communication. Whether the entertainment function is powerful has become an important indicator of whether a mobile phone is popular. Mobile games have become a popular form of entertainment for young people. In mobile game scenarios, users control the game by touching the display interface of the mobile phone. When users operate the game, they often involve multi-finger control. Due to the limited display interface of the mobile phone, it is easy to cause insensitive or misoperation, which brings users a bad gaming experience.

[0085] At the same time, the sides of mobile terminals in the prior art are generally provided with volume adjustment keys and power keys, which are convenient for users to lock the screen, or to adjust the volume of the mobile phone when the screen is not lit. The uses and functions of these keys are relatively simple and definite, and the operation mode of these keys cannot be linked to the operation in the game. At the same time, these keys are usually set in the middle of the side of the mobile terminal. When the user is operating a mobile game, the mobile phone is usually in a horizontal screen state, and the position of the fingers is generally placed on the left and right ends of the side of the mobile phone (based on the mobile phone in the horizontal screen state), and will not extend to the middle position of the side. If the user wants to operate the side buttons during the game, it cannot be operated with one hand, which is inconvenient to use.

[0086] In order to solve the above problems, the present disclosure provides a control method for a mobile terminal, in which a shoulder key component is provided on the mobile terminal. According to a shoulder key event generated by an operation acting on the shoulder key component, a shortcut function or touch function corresponding to the shoulder key event is determined, and the operation of the shoulder key component is converted into a corresponding function, so as to give full play to the role of the shoulder key component, so as to facilitate user control, enrich the diversity of operation methods, and enhance the user experience.

[0087] Before describing the control method of the mobile terminal provided by the present disclosure, the hardware structure of the mobile terminal involved in the present disclosure is described first. The mobile terminal in the present disclosure may be, for example, a mobile phone, a tablet computer, or a portable smart mobile device that can install an application. Figure 1 and Figure 2 As shown, the shoulder key assembly 20 in the present disclosure is disposed on the middle frame 10 of the mobile terminal and is located on the side of the middle frame 10. Figure 1 and Figure 2 In one example, the shoulder key assembly 20 can be arranged on the upper frame 11 of the mobile terminal, and the volume adjustment key 30 and the power key 40 can be arranged on the lower frame 12 of the mobile terminal. Figure 1 and Figure 2 The shoulder key assembly 20 and the power key 40 can be arranged on the upper frame 11 of the mobile terminal, and the volume adjustment key 30 can be arranged on the lower frame 12 of the mobile terminal. In order to facilitate the user to use the power key 40 to charge or turn off the display interface, and to reserve a position for the shoulder key assembly 20 to facilitate operation, the power key 40 can be arranged in the middle of the upper frame 11.

[0088] The shoulder key assembly in the present disclosure may have various forms. For example, the shoulder key assembly may include one or two press-type shoulder key buttons; or, the shoulder key assembly may include one or two toggle-type sliding shoulder keys; or, the shoulder key assembly may include one or two groups of shoulder key units, each of which includes a press-type shoulder key case and a toggle-type sliding shoulder key.

[0089] This disclosure is as follows Figure 1 and Figure 2 The shoulder key assembly shown is used as an example to illustrate the technical concept of the control method. Figures 1 to 3 As shown, in this example, the shoulder key assembly 20 includes two groups of shoulder key units 21, and each group of shoulder key units 21 includes a shoulder key button 211 triggered by pressing, and a shoulder key control switch 212 triggered by toggling. The shoulder key assembly 20 is arranged on the upper frame 11 of the mobile terminal, and the two groups of shoulder key units 21 are symmetrically arranged with the midline of the length direction of the mobile terminal as the symmetry axis. The shoulder key units 21 are arranged near the two ends of the upper frame 11 to facilitate the user to operate with the index finger or middle finger of both hands. The shoulder key button 211 in each group of shoulder key units 21 is closer to the end of the upper frame 11 relative to the shoulder key control switch 212, that is, the shoulder key control switch 212 is arranged at a position closer to the midline of the length direction of the mobile terminal. Of course, it can be understood that, according to the actual needs in the control process of the mobile terminal, only one group of shoulder key units can be set.

[0090] The shoulder key control switch 212 has a first toggle position and a second toggle position. When the shoulder key control switch 212 is toggled to the first toggle position, the shoulder key button 211 is in a pop-up state, that is, the shoulder key button 211 protrudes from the upper frame 11. Figure 1 In this state, the shoulder key button 211 can be pressed, and after being pressed, it can rebound to the original position before being pressed. When the shoulder key control switch 212 is toggled to the second toggle position, the shoulder key button 211 is in a closed state, that is, the shoulder key button 211 is hidden in the upper frame, refer to Figure 2 , the outer surface of the shoulder key button 211 is flush with the upper frame or lower than the upper frame 11. In this state, the shoulder key button 211 cannot be operated.

[0091] By setting a shoulder key button 211 triggered by pressing and a shoulder key control switch 212 triggered by toggling, the shoulder key button 211 is controlled to pop up and close by the shoulder key control switch 212. When the shoulder key button 211 is needed in an application scenario, it is controlled to pop up; when the shoulder key button 211 is not needed in an application scenario, it is controlled to hide in the upper frame 11, effectively avoiding accidental touch operation. At the same time, due to the addition of the shoulder key button 211 controlled by pressing and the shoulder key control switch 212 controlled by toggling, the two control modes are combined to provide a richer control input mode, enrich the operable mode of the mobile terminal, and improve the user's operation experience.

[0092] The following is an explanation of the system architecture of the mobile terminal involved in the control method involved in the present disclosure. The control method in the present disclosure mainly involves the bottom layer, the system layer and the application layer. The bottom layer and the application layer communicate with the system layer respectively, and the control method involved in the present disclosure is mainly implemented through the system layer. Among them, the bottom layer includes the hardware layer and the hardware driver layer. Since the hardware layer needs to communicate with the system layer through the hardware driver layer, the two are closely related, so the two are uniformly classified as the bottom layer.

[0093] According to an exemplary embodiment, Figure 4 As shown, the control method of the mobile terminal in this embodiment includes the following steps:

[0094] S110. Receive shoulder key events.

[0095] The shoulder key event involved in this step is generated based on the operation acting on the shoulder key component. For example, the operation can be pressing the shoulder key button or toggling the shoulder key control switch. These operations acting on the shoulder key component will generate a shoulder key event. Since the shoulder key component belongs to hardware, when the user operates the shoulder key component, the terminal receives the user's operation, and the corresponding hardware (such as the underlying driver chip) reports the received operation (i.e., shoulder key event) to the system layer, and the system layer receives the shoulder key event reported by the underlying layer.

[0096] S120: Determine the type of the shoulder key event.

[0097] In this step, since the shoulder key assembly in this embodiment includes a shoulder key button controlled by pressing and a shoulder key control switch controlled by toggling, the types of shoulder key events in this embodiment may include, for example, a pressing type shoulder key event and a toggling type shoulder key event.

[0098] Of course, it is understandable that, in addition to the type of shoulder key events being divided into the pressing type and the toggle type in this embodiment, multiple other types can also be divided according to the specific configuration of the shoulder key assembly, such as single pressing type (pressing only one shoulder key), double pressing type (pressing two shoulder keys at the same time), single toggle type (toggle only one key control switch), double toggle type (toggle two keys control switches at the same time), continuous pressing type, etc.

[0099] S130: When the shoulder key event is of the first type, determine that the function associated with the shoulder key event is a shortcut function.

[0100] In this step, the type of the shoulder key event is the first type, which is a general term and has no specific limitation. For example, it can be a pressing type, a single toggle type, or a single pressing type. However, no matter which of the above specific types is used, as long as the specific type is the first type, the function associated with the shoulder key event of this type is a shortcut function. In other words, when the user's operation on the shoulder key component triggers the bottom layer to report the shoulder key event to the system layer, when the type of the shoulder key event is the first type, the shoulder key event generated by the operation on the shoulder key component will be mapped to a shortcut function.

[0101] Here, it should be noted that in this embodiment, when the system layer receives the shoulder key event reported by the bottom layer, once it is determined that the type of the shoulder key event is the first type, the system layer will directly determine that the shoulder key event is acting on the system layer, and then the system layer will directly call the corresponding shortcut function. In one example, the type of the shoulder key event is a toggle type, that is, the toggle type is the first type. At this time, after the system layer receives the shoulder key event reported by the bottom layer, the system layer will determine the shortcut function corresponding to the shoulder key event according to the pre-set configuration information (assuming that the shortcut function is to start the WeChat payment page). Then, the system layer directly starts the WeChat payment interface in the WeChat application. This process does not involve the application layer, that is, the WeChat application cannot perceive this process, and all operations are implemented by the system layer.

[0102] S140: When the shoulder key event is of the second type, determine that the function associated with the shoulder key event is one of a shortcut function and a touch function.

[0103] In this step, the type of the shoulder key event is the second type, which is a general term and has no specific limitation. For example, it can be a pressing type, a single toggle type, or a single pressing type. However, no matter which of the above specific types it is, as long as the specific type is the second type, the function associated with the shoulder key event of this type cannot be directly determined. The system layer needs to further determine whether the shoulder key event acts on the system layer or on the current application, and then determine whether the function associated with the shoulder key event is a shortcut function or a touch function.

[0104] The method involved in this embodiment is applied on a mobile terminal with a shoulder key component. According to the shoulder key event generated by the operation acting on the shoulder key component, the shortcut function or touch function corresponding to the shoulder key event is determined, and the operation of the shoulder key component is converted into a corresponding function, so as to give full play to the role of the shoulder key component, so as to facilitate user control, enrich the diversity of operation methods, and enhance the user experience.

[0105] According to an exemplary embodiment, Figure 5 As shown, the control method of the mobile terminal in this embodiment includes the following steps:

[0106] S210: Receive shoulder key events.

[0107] The implementation method of this step is basically the same as the implementation method of the above step S110, and will not be repeated here.

[0108] It should be noted here that when the system layer receives the shoulder key event reported by the bottom layer, according to the normal event dispatching process involved in the relevant technology, the shoulder key event will be dispatched to the application currently running in the foreground (those skilled in the art are aware that the system of the mobile terminal must have an application running in the foreground at a certain moment), but if the current application is not associated with the shoulder key event but receives the shoulder key event, it will cause application abnormalities, such as freezes, crashes, etc., which will bring a bad experience to users.

[0109] Therefore, in order to avoid application anomalies, in this embodiment, when the system layer receives the shoulder key event reported by the bottom layer, it will intercept the shoulder key event in the shoulder key service provided by the system layer to prevent it from being dispatched to the currently running application. After interception, the system layer will notify the shoulder key event to the monitoring object associated with the shoulder key event in the form of broadcast. The monitoring object refers to the preset object that has registered the shoulder key event in the system layer, and certain applications that have registered the shoulder key event in the application layer, that is, the preset object or application that allows the user to control it by operating the shoulder key component can be considered as the monitoring object. In other words, although the system layer notifies the shoulder key event in the form of broadcast, not every application can receive it. Only the application that has registered the shoulder key event, or the listener in the system can receive the shoulder key event, avoiding the adverse effects of the shoulder key event on the currently running application. The above-mentioned application that has registered the shoulder key event or the listener in the system can be understood as an object related to the function associated with the shoulder key event.

[0110] S220: Determine the type of the shoulder key event.

[0111] In this embodiment, the types of shoulder key events are divided into a first type and a second type. When the shoulder key events are of different types, the shoulder key events can be converted into different mapping functions.

[0112] In the system layer of the mobile terminal, a mapping relationship between different types of shoulder key events and their associated functions is stored. When the system layer receives a shoulder key event, the type of the currently received shoulder key event can be determined through the stored mapping relationship, for example, the shoulder key event is a pressing type shoulder key event; for another example, the shoulder key event is a toggle type shoulder key event.

[0113] S230: When the shoulder key event is of the first type, determine that the function associated with the shoulder key event is a shortcut function.

[0114] This step is the same as the implementation of step S130 in the above embodiment, and will not be described again here.

[0115] S240: When the shoulder key event is of the second type, if the system preset interface is not called, determine that the function associated with the shoulder key event is a shortcut function.

[0116] The system preset interface involved in this step is configured to communicate with the application. When certain application scenarios involved in the running of the application involve the use of shoulder key components for control, the application will call the system preset interface to establish a connection between the application and the system layer.

[0117] If the system preset interface is not called, it means that there is no association between the currently running application and the shoulder key event. Even if the user operates the shoulder key component during the running of the application, the shoulder key event generated by the operation reported by the bottom layer will not be converted into a mapping function related to the application operation.

[0118] In one example, a user is using an application to make a video call, and the application does not support the use of the shoulder key component to operate it. At this time, the user presses the operating component, and the shoulder key event generated corresponding to the operation is of the second type. Since the application used for the video call does not support the shoulder key component, the system preset interface is not called. Then the system layer determines that the function related to the shoulder key event is a shortcut function, such as a shortcut function to open the payment interface of Alipay. The system layer will directly trigger the shortcut function to open the payment interface of Alipay for payment while the video call is in progress.

[0119] Here, it should be noted that when a function is determined to be a shortcut function, there are many ways of operating the shoulder key assembly, such as turning on the left shoulder key control switch, turning on the right shoulder key control switch, turning on the left and right shoulder key control switches at the same time, pressing the left and right shoulder key buttons at the same time, etc. Although these specific operation methods will be reported as shoulder key events, different shoulder key events can be set to correspond to different shortcut functions. For example, turning on the left shoulder key control switch can open the WeChat payment page shortcut function; turning on the right shoulder key control switch can be mapped to the shortcut function of opening the game application; pressing the left and right shoulder key buttons at the same time can be mapped to the shortcut function of opening the camera.

[0120] S250: When the shoulder key event is of the second type, if the system preset interface is called, determine that the function associated with the shoulder key event is a touch function.

[0121] When the system preset interface is called, it indicates that there is a mapping relationship between the currently running application and the shoulder key event. It can also be understood that the currently running application allows the shoulder key component to be operated to control the application. When the shoulder key component is operated during the running of the application, the shoulder key event generated on the shoulder key component and reported by the bottom layer can be mapped to a trigger event related to the application, such as a touch operation acting on a certain position on the application display interface.

[0122] In one example, when a user is playing a game using a game application, the game application is set to support the control of the game by manipulating the shoulder key component. At this time, the user presses the operation component, and the shoulder key event generated corresponding to the operation is of the second type. Since the game application supports the control of the game by manipulating the shoulder key component, in the game scenario, the application layer will call the system preset interface, and the system layer determines that the function associated with the shoulder key event is a touch function, and triggers the touch function corresponding to the shoulder key event.

[0123] In this embodiment, the system layer determines whether the shoulder key event is mapped to a shortcut function or a touch event conversion function according to the type of shoulder key event received and the activation state of the system preset interface. When the function associated with (i.e. mapped to) the shoulder key event is a touch function, the shoulder key event is converted into a touch event acting on the application display interface, so as to realize more control methods by using the shoulder key component and improve the user's operation experience.

[0124] When a function is determined to be a shortcut function, such as Figure 6 As shown, the control method of the mobile terminal in this embodiment includes the following steps:

[0125] S310: Obtain first configuration information.

[0126] In this step, the first configuration information is used to characterize the mapping relationship between the shoulder key events and shortcuts acting on the shoulder key assembly. For example, the mapping relationship in the first configuration information can be that toggling the left shoulder key control switch corresponds to opening the WeChat payment page shortcut function; toggling the right shoulder key control switch can be mapped to opening the game application shortcut function; pressing the left and right shoulder key buttons at the same time can be mapped to opening the camera shortcut function.

[0127] The first configuration information is pre-stored in the system layer, and can be built-in when the mobile terminal leaves the factory, or can be set by the user according to his / her own usage requirements. In order to facilitate the user to set, the system layer provides the user with a setting entry for setting shortcut functions. The user can perform operation A on the shoulder key component, and then determine the shortcut function B corresponding to the shoulder key event generated by the operation A through input. Multiple shoulder key events and multiple corresponding shortcut functions correspond to each other one by one, forming the first configuration information.

[0128] S320. Determine a shortcut function corresponding to the shoulder key event according to the first configuration information and the shoulder key event.

[0129] Each operation on the shoulder key component corresponds to a shoulder key event, and different operations correspond to different shoulder key events. When the system layer receives the shoulder key event reported by the bottom layer, it can determine the shortcut function corresponding to the shoulder key event according to the first configuration information. For example, by querying the first configuration information, it is determined that the shoulder key event generated by toggling the left and right shoulder key control switches at the same time, the shortcut function corresponding to the shoulder key event is to open the WeChat payment page.

[0130] S330, triggering a shortcut function.

[0131] In this step, the system layer directly triggers the shortcut function determined in step S320. For example, the system layer starts the WeChat payment page without the application layer being aware of it. For another example, the system layer starts the camera application without the application layer being aware of it.

[0132] In this embodiment, when it is determined that the shoulder key event is associated with a shortcut function, the different shortcut functions associated with the shoulder key event are determined according to the first configuration information, and the shortcut functions are triggered, thereby facilitating the user to quickly start certain functions according to usage needs and improving operational convenience.

[0133] According to an exemplary embodiment, when it is determined that the function is a touch function, there are multiple operating modes acting on the shoulder key assembly, such as pressing and lifting the left shoulder key button, continuously pressing the right shoulder key button, pressing the left and right shoulder key buttons at the same time, etc. Although these specific operating modes all generate shoulder key events, the touch functions associated with different shoulder key events are different and will be mapped to touch events with different functions. For example, pressing and lifting the left shoulder key button can be mapped to a fixed position touch function of the game application interface; for another example, long pressing the right shoulder key button can be mapped to the touch function of triggering the open-scope button in the game application.

[0134] When the function is determined to be a touch event function, such as Figure 7 As shown, the control method of the mobile terminal in this embodiment includes the following steps:

[0135] S410: Obtain second configuration information.

[0136] In this step, the second configuration information is used to characterize the mapping relationship between the shoulder key event and the touch position. The touch position involved in this embodiment is not the actual position touched by the finger, but the same control effect as the touch display interface can be achieved by applying the operation on the shoulder key component.

[0137] The center position of the display interface of the mobile terminal is taken as the coordinate origin, and the touch position may be a position having a fixed coordinate value relative to the coordinate origin, that is, when the user applies an X operation on the shoulder key assembly, it is equivalent to triggering a fixed coordinate position (m, n) of the touch display interface, or triggering a fixed area of ​​the touch display interface.

[0138] The touch position can also be variable, for example, the touch position can be the position of a fixed display control in the game application, such as the position of the virtual control trigger, and the touch position keeps changing as the virtual control does not change position on the touch display interface. When the user applies a Y operation on the shoulder key assembly, it is equivalent to the position where the touch virtual control trigger is triggered, producing the effect of pulling the virtual control trigger.

[0139] In addition, the second configuration information in this embodiment is generally set by the user according to his own needs. The system layer reserves a system preset interface. When the user needs to set the second configuration information through the application, the system layer will provide the system preset interface to the application, so that the user can input the touch position information through the application, and load the shoulder key event generated according to the operation information acting on the shoulder key component to the system layer, that is, load the mapping relationship between the shoulder key event and the touch position to construct the second configuration information, and load it to the shoulder key service of the system layer. Therefore, when the user uses the game application to play the game, the operation acting on the shoulder key component can be converted into a touch event acting on the touch display screen of the mobile terminal, that is, the shoulder key event is associated with the touch function.

[0140] The following is a detailed description of the process of setting the second configuration information through the application. Figure 8 As shown, if the application in the application layer supports the shoulder key component function, the application will be provided with a shoulder key service agent. When the user sets the second configuration information through the application, the shoulder key service agent will call the system preset interface to communicate with the system layer, and load the preset mapping relationship to the shoulder key service of the system layer, wherein the preset mapping relationship is the mapping relationship between the shoulder key event and the touch position generated based on the operation acting on the shoulder key component set by the user. At the same time, when the shoulder key service agent calls the system preset interface, the shoulder key service of the system layer will load the event filter.

[0141] When the shoulder key service receives the loaded preset mapping relationship, it generates a mapping relationship event and pushes the loaded mapping relationship event into the event queue of the system layer. There may be multiple events to be dispatched in the event queue. The business processing center of the system layer will take out the event at the head from the event queue for processing, parse the above-mentioned loaded mapping relationship event, and store the preset relationship to the system layer, thus completing the setting process of the second configuration information.

[0142] S420: Determine a touch position corresponding to the shoulder key event according to the second configuration information and the shoulder key event.

[0143] In this step, when the system preset interface is called, it means that the currently running application has registered the shoulder key event, that is, the application has set the second configuration information. The shoulder key service of the system layer will load and generate the event filter. All events reported from the bottom layer, whether they are shoulder key events of the toggle type or touch events that actually act on the touch display screen, must first flow into the event filter (detailed description will be given in the actual embodiment later). The event filter is used to process the received events that act on the event source. Among them, the event source can be, for example, a shoulder key component, a touch display screen, or a preset icon control. The event filter processes the event, for example, including returning the event to the event dispatch queue of the system layer, generating input events, and other operations.

[0144] S430: Generate a target touch event based on the touch position.

[0145] In this step, based on the touch position determined in step S420, when the target touch event generated is executed, the touch function is triggered, which is equivalent to achieving the touch effect produced when a finger presses the touch position on the touch display screen.

[0146] S440: Receive an original touch event.

[0147] In this embodiment, the original touch event is generated based on the touch operation acting on the touch interface.

[0148] Taking the user operating the game application as an example, if the game application supports the use of shoulder key components for control, then the touch events received by the bottom layer during the foreground running of the application have two sources. One is the touch operation of the user directly touching the touch display screen, which is reported to the system layer by the bottom screen driver. This source corresponds to the original touch event in this step; the other is the user operating the shoulder key component, and the shoulder key event is reported by the bottom layer to the shoulder key service of the system layer, which then converts the shoulder key event into a touch event, and then triggers the corresponding touch function when the touch event is executed.

[0149] It should be noted that this step and the above steps S410 to S430 are not executed sequentially. For example, this step can be executed before step S410.

[0150] S450: Determine a comprehensive touch event according to the target touch event and the original touch event.

[0151] If the touch events from the above two sources are not processed, there will be two states of touch events in the system layer. The two touch events conflict with each other and easily cause system abnormalities. In order to avoid the above problems, the shoulder key service at the system layer will uniformly manage the target touch events and the original touch events, reintegrate the touch events from the two sources, determine the comprehensive touch events, and maintain the global touch status of the system.

[0152] For example, the target touch event is a touch event acting at position A, and the original touch event is a touch event acting at position B. The shoulder key service at the system layer will integrate the above two touch events into one of the comprehensive touch events of double-point touch, or integrate the above two touch events into a comprehensive touch event that produces two effects at the same time.

[0153] S460: Execute a comprehensive touch event.

[0154] The following is a detailed description of the process of converting the underlying shoulder key event reporting into a touch event. Fig. 9 As shown, as recorded above, when the application calls the system preset interface, it means that the application has registered the shoulder key event, that is, the currently running application supports the shoulder key event generated by operating the shoulder key component and is associated with the touch function of the application. At this time, the shoulder key service of the system layer will load the generated event filter, and all events received by the bottom layer must first flow into the event filter. The event filter will generate an input event and push the input event into the event queue of the system layer. There may be multiple pending events in the event queue at the same time. The business processing center of the system layer will take out the input event at the head of the event queue and parse it. When the business processing center determines that the reported shoulder key event corresponds to a touch position based on the second configuration information pre-stored in the system layer and the parsed shoulder key event, it generates a target touch event based on the touch position, thereby triggering the touch function.

[0155] When the shoulder key events reported by the bottom layer are processed and converted into target touch events, the business processing center of the system layer will return them to the event filter. The event filter will add these events to the dispatch queue of the system layer for event dispatch, and the events will be executed after dispatch.

[0156] In addition, it should be noted that when the shoulder key event reported by the bottom layer is of the second type and the system preset interface is in the state of being called, the shoulder key event will be considered to be mapped as a touch event and flow into the event filter, and pass through the event queue and business processing center of the above-mentioned system layer in turn. However, if the second configuration information stored in the system layer does not store the mapping relationship associated with the shoulder key event, it means that the shoulder key event generated by the user operating the shoulder key component is not intended to control the application, but to call the shortcut function through the system layer. In this case, the shoulder key event will not be converted into a touch event, but the unprocessed shoulder key event will be returned to the event filter, and the event filter will dispatch the shoulder key event to the system's dispatch queue. When the shoulder key event is executed, the shortcut corresponding to the operation information of the shoulder key event will be directly called.

[0157] That is to say, the two methods of the user calling the shortcut function by operating the shoulder key component and the user generating a shoulder key event by operating the shoulder key component and then converting it into a touch function do not interfere with each other. After receiving the shoulder key event, if the type of the shoulder key event is the first type, the system layer can directly call the shortcut function according to the shoulder key event. If the type of the shoulder key event is the second type, if the application registered with the shoulder key service is running at this time, it will first determine whether the shoulder key event is to be converted into a touch function to achieve the effect of manipulating the content in the application. If the shoulder key event cannot be converted into a touch function, it is further determined that the shoulder key event is to call a shortcut function, and the system layer can directly call the shortcut function corresponding to it.

[0158] The control method of the mobile terminal disclosed in the present invention provides two main uses of the shoulder key component, one is to map the shoulder key event generated by the operation on the shoulder key component to call the shortcut function, and the other is to map the shoulder key event to the touch function, that is, the operation of the shoulder key component can be associated with the touch operation function of a certain position on the display screen. Through the above two uses, the control method of the mobile terminal is enriched, the problem of multi-finger operation difficulty of game players in game application scenarios is solved, and the user's game control experience is greatly improved.

[0159] According to an exemplary embodiment, a control device for a mobile terminal is provided, and the control device is arranged in the mobile terminal. Fig.10 As shown, the control device in this embodiment includes a receiving module 100, a processing module 200 and an execution module 300 which are communicatively connected.

[0160] The receiving module 100 is used to receive the reported shoulder key event. The processing module 200 is used to determine the type of the shoulder key event; when the shoulder key event is of the first type, the function associated with the shoulder key event is determined to be a shortcut function; when the shoulder key event is of the second type, the function associated with the shoulder key event is determined to be one of a shortcut function and a touch function. The execution module 300 is used to trigger the shortcut function, or to generate a target touch event to trigger the touch function.

[0161] The control device of the mobile terminal in this embodiment is used to implement the above Figures 4 to 9 The control method of the mobile terminal shown.

[0162] like Fig.11 The present disclosure also provides a mobile terminal, the mobile terminal device, for example, the mobile terminal device 500 can be a mobile phone, a computer, a digital broadcast terminal, a message transceiver device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0163] Device 500 may include one or more of the following components: a processing component 502 , a memory 504 , a power component 506 , a multimedia component 508 , an audio component 510 , an input / output (I / O) interface 512 , a sensor component 514 , and a communication component 516 .

[0164] The processing component 502 generally controls the overall operation of the device 500, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 502 may include one or more modules to facilitate the interaction between the processing component 502 and other components. For example, the processing component 502 may include a multimedia module to facilitate the interaction between the multimedia component 508 and the processing component 502.

[0165] The memory 504 is configured to store various types of data to support operations on the device 500. Examples of such data include instructions for any application or method operating on the device 500, contact data, phone book data, messages, pictures, videos, etc. The memory 504 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0166] Power component 506 provides power to various components of device 500. Power component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 500.

[0167] The multimedia component 508 includes a screen that provides an output interface between the device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front camera and / or a rear camera. When the device 500 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0168] The audio component 510 is configured to output and / or input audio signals. For example, the audio component 510 includes a microphone (MIC), and when the device 500 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 504 or sent via the communication component 516. In some embodiments, the audio component 510 also includes a speaker for outputting audio signals.

[0169] I / O interface 512 provides an interface between processing component 502 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0170] The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the device 500. For example, the sensor assembly 514 can detect the open / closed state of the device 500, the relative positioning of components, such as the display and keypad of the device 500, and the sensor assembly 514 can also detect the position change of the device 500 or a component of the device 500, the presence or absence of user contact with the device 500, the orientation or acceleration / deceleration of the device 500, and the temperature change of the device 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 514 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0171] The communication component 516 is configured to facilitate wired or wireless communication between the device 500 and other devices. The device 500 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0172] In an exemplary embodiment, the device 500 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0173] In another exemplary embodiment of the present disclosure, a non-transitory computer-readable storage medium is provided, such as a memory 504 including instructions, which can be executed by a processor 520 of a device 500 to perform the above method. For example, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc. When the instructions in the storage medium are executed by a processor of an intelligent device, the intelligent device is enabled to perform the above method.

[0174] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.

[0175] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A control method for a mobile terminal, wherein the mobile terminal is provided with a shoulder key assembly, It is characterized in that The method comprises: receiving a shoulder key event, wherein the shoulder key event is generated based on an operation acting on the shoulder key component; determining the type of the shoulder key event; When the shoulder key event is of the first type, determining that the function associated with the shoulder key event is a shortcut function; When the shoulder key event is of the second type, determining that the function associated with the shoulder key event is one of a shortcut function and a touch function; When the shoulder key event is of the second type, determining that the function associated with the shoulder key event is one of a shortcut function and a touch function comprises: When the shoulder key event is of the second type, if the system preset interface is not called, determining that the function associated with the shoulder key event is a shortcut function; When the shoulder key event is of the second type, if the system preset interface is called, it is determined that the function associated with the shoulder key event is a touch function, Wherein, the system preset interface is configured to communicate with an application program.

2. The control method according to claim 1, It is characterized in that When the function is a shortcut function, the method further includes: Acquire first configuration information, where the first configuration information is used to characterize a mapping relationship between a shoulder key event and a shortcut function; Determining a shortcut function corresponding to the shoulder key event according to the first configuration information and the shoulder key event; Trigger the shortcut function.

3. The control method according to claim 1, It is characterized in that When the function is a touch function, the method further includes: Acquire second configuration information, where the second configuration information is used to characterize a mapping relationship between the shoulder key event and the touch position; Determining a touch position corresponding to the shoulder key event according to the second configuration information and the shoulder key event; Based on the touch position, a target touch event is generated.

4. The control method according to claim 3, It is characterized in that The method further comprises: Receiving an original touch event, where the original touch event is generated based on a touch operation acting on a touch interface; Determining a comprehensive touch event according to the target touch event and the original touch event; Execute the integrated touch event.

5. The control method according to claim 3, It is characterized in that The method further comprises: When the system preset interface is called, a shoulder key event generated by an operation acting on the shoulder key component and a touch position corresponding to the shoulder key event are received; A mapping relationship between the shoulder key event and the touch position is constructed as the second configuration information.

6. The control method according to claim 3, It is characterized in that The method further comprises: When the system preset interface is called, the event filter is loaded; The event filter is used to process the received event acting on the event source.

7. The control method according to claim 1, It is characterized in that The method further comprises: When a shoulder key event is received, intercepting the shoulder key event and dispatching it to the currently running application; The shoulder key event is notified in a broadcasting form to a monitoring object associated with the shoulder key event.

8. A control device for a mobile terminal, the mobile terminal being provided with a shoulder key assembly, It is characterized in that The device comprises: A receiving module, configured to receive a shoulder key event, wherein the shoulder key event is generated based on an operation acting on the shoulder key component; a processing module, configured to determine the type of the shoulder key event; when the shoulder key event is of the first type, determine that the function associated with the shoulder key event is a shortcut function; when the shoulder key event is of the second type, determine that the function associated with the shoulder key event is one of a shortcut function and a touch function; The processing module is specifically used for: When the shoulder key event is of the second type, if the system preset interface is not called, determining that the function associated with the shoulder key event is a shortcut function; When the shoulder key event is of the second type, if the system preset interface is called, it is determined that the function associated with the shoulder key event is a touch function, Wherein, the system preset interface is configured to communicate with an application program.

9. The control device according to claim 8, It is characterized in that When the function is a shortcut function, the processing module is further used for: Acquire first configuration information, where the first configuration information is used to characterize a mapping relationship between a shoulder key event and a shortcut function; Determining a shortcut function corresponding to the shoulder key event according to the first configuration information and the shoulder key event; Trigger the shortcut function.

10. The control device according to claim 8, It is characterized in that When the function is a touch function, the processing module is further used for: Acquire second configuration information, where the second configuration information is used to characterize a mapping relationship between the shoulder key event and the touch position; Determining a touch position corresponding to the shoulder key event according to the second configuration information and the shoulder key event; Based on the touch position, a target touch event is generated.

11. The control device according to claim 10, It is characterized in that The receiving module is also used for: Receiving an original touch event, where the original touch event is generated based on a touch operation acting on a touch interface; The processing module is also used for: Determining a comprehensive touch event according to the target touch event and the original touch event; The control device further includes an execution module, which is used to execute the comprehensive touch event.

12. The control device according to claim 10, It is characterized in that The receiving module is also used for: When the system preset interface is called, a shoulder key event generated by an operation acting on the shoulder key component and a touch position corresponding to the shoulder key event are received; The processing module is also used for: A mapping relationship between the shoulder key event and the touch position is constructed as the second configuration information.

13. The control device according to claim 10, It is characterized in that The processing module is also used for: When the system preset interface is called, the event filter is loaded; The event filter is used to process the received event acting on the event source.

14. The control device according to claim 8, It is characterized in that The processing module is also used for: When a shoulder key event is received, intercepting the shoulder key event and dispatching it to the currently running application; The shoulder key event is notified in a broadcasting form to a monitoring object associated with the shoulder key event.

15. A mobile terminal, It is characterized in that include: processor; a memory for storing executable instructions for the processor; The processor is configured to execute the control method of the mobile terminal as described in any one of claims 1 to 7.

16. A non-transitory computer-readable storage medium, It is characterized in that When the instructions in the storage medium are executed by a processor of the mobile terminal, the mobile terminal is enabled to execute the control method of the mobile terminal as claimed in any one of claims 1 to 7.