A shoulder key detection method, a mobile terminal and a storage medium
Patent Information
- Application Number
- CN202111356045.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-16
- Publication Date
- 2026-08-21
- Estimated Expiration
- 2041-11-16
AI Technical Summary
[0004]有鉴于此,本发明实施例的目的在于提供一种肩键检测方法、移动终端及存储介质,以解决目前无法区分导致针对当前游戏的操作失效的原因是用户按住肩键后忘记松开,还是肩键本身硬件损坏的技术问题
[0028] The shoulder button detection method, mobile terminal, and storage medium provided in this invention, when a preset input command is detected, confirm whether a shoulder button is currently pressed; if a shoulder button is currently pressed, output a prompt message to release the shoulder button; if the preset input command is detected again after outputting the prompt message to release the shoulder button and can be executed normally, then the shoulder button is determined to be in a normal state. This effectively distinguishes whether the cause of the malfunction in the current game operation is due to the user forgetting to release the shoulder button after pressing it, or a hardware malfunction of the shoulder button itself, and can promptly guide the user to resolve the problem of the malfunction in the current game operation caused by forgetting to release the shoulder button after pressing it, thus improving the user experience.
Smart Images

Figure CN114048088B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of mobile terminal application technology, specifically to a shoulder key detection method, a mobile terminal, and a storage medium. Background Technology
[0002] With the development of technology, mobile terminals have become increasingly feature-rich, meeting people's diverse needs. Taking mobile phones as an example, many phones now integrate shoulder buttons. Shoulder buttons are hardware devices installed on the side of the phone. Their working principle is as follows: first, the shoulder button is positioned at specific screen coordinates in the shoulder button settings. For example, positioning the shoulder button at the (x, y) coordinates of the screen. Pressing the shoulder button will input the corresponding command at the (x, y) coordinate position on the screen. For instance, when playing games in landscape mode, activating the pre-configured shoulder button function for multi-finger operation, such as pressing the top shoulder button with the index finger, the system can simulate a motion event. The x and y coordinates of this motion event are the coordinates corresponding to the pre-configured shoulder button. Then, the motion event is passed to the running game. When the game receives the motion event, it's equivalent to clicking a button in that coordinate area, such as a shooting action in a shooting game. This achieves the effect of quickly clicking a button, thus improving the gaming experience.
[0003] However, since shoulder buttons are hardware devices, if they remain pressed due to hardware failure while playing a game, or if the user forgets to release the shoulder button after pressing it, the shoulder button will remain pressed, causing the operation for the current game to fail. This may lead the user to mistakenly believe that the game or the mobile terminal system is malfunctioning, thus affecting the user's experience of using the mobile terminal. Summary of the Invention
[0004] In view of this, the purpose of this invention is to provide a shoulder button detection method, a mobile terminal, and a storage medium to solve the technical problem that it is currently impossible to distinguish whether the cause of the failure of operation for the current game is that the user forgets to release the shoulder button after pressing it, or whether the shoulder button itself is damaged.
[0005] The technical solution adopted by the present invention to solve the above-mentioned technical problems is as follows:
[0006] According to one aspect of the present invention, a shoulder key detection method is provided, the method comprising:
[0007] When a preset input command is detected, check if there are any shoulder buttons that are currently pressed.
[0008] If there is a shoulder button that is currently pressed, output a prompt message indicating that the shoulder button has been released;
[0009] If the preset input command is executed normally again after the prompt message indicating that the shoulder button has been released is output, then the shoulder button is determined to be in normal condition.
[0010] Optionally, the preset input command includes:
[0011] Control the input commands displayed on the navigation keys, or input commands controlled by gestures.
[0012] Optionally, confirming whether a shoulder button is currently pressed includes:
[0013] Check if there is a shoulder button press status flag. If there is a shoulder button press status flag, then there is a shoulder button that is currently pressed; otherwise, there is no shoulder button that is currently pressed.
[0014] Optionally, the method further includes, prior to:
[0015] When an operation command input by pressing the shoulder button is detected, set the shoulder button press status flag.
[0016] Optionally, after setting the shoulder button press status flag, the method further includes:
[0017] When the pressed shoulder button is detected to return to an unpressed state, the shoulder button pressed state flag is cleared.
[0018] Optionally, after outputting the prompt message indicating that the shoulder button has been released, the following may also be included:
[0019] If the preset input command still cannot be executed normally after the prompt message indicating that the shoulder button has been released is output, then the shoulder button is determined to be in an abnormal state.
[0020] Optionally, after outputting the prompt message indicating that the shoulder button has been released, the following may also be included:
[0021] If the preset input command still cannot be executed normally after the prompt message indicating that the shoulder button has been released is output, a prompt message indicating a restart will be output.
[0022] If the preset input command can be executed normally after restarting, then the shoulder button status is determined to be normal.
[0023] If the preset input command still cannot be executed normally after restarting, then the shoulder key status is determined to be abnormal.
[0024] Optionally, after determining that the shoulder key state is abnormal, the method further includes:
[0025] Output a message indicating that the shoulder key status is abnormal.
[0026] According to another aspect of the present invention, a mobile terminal is provided, the mobile terminal including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the shoulder button detection method described above.
[0027] According to another aspect of the present invention, a computer-readable storage medium is provided, on which a shoulder key detection program is stored, wherein the shoulder key detection program, when executed by a processor, implements the steps of the above-described shoulder key detection method.
[0028] The shoulder button detection method, mobile terminal, and storage medium provided in this invention, when a preset input command is detected, confirm whether a shoulder button is currently pressed; if a shoulder button is currently pressed, output a prompt message to release the shoulder button; if the preset input command is detected again after outputting the prompt message to release the shoulder button and can be executed normally, then the shoulder button is determined to be in a normal state. This effectively distinguishes whether the cause of the malfunction in the current game operation is due to the user forgetting to release the shoulder button after pressing it, or a hardware malfunction of the shoulder button itself, and can promptly guide the user to resolve the problem of the malfunction in the current game operation caused by forgetting to release the shoulder button after pressing it, thus improving the user experience. Attached Figure Description
[0029] The present invention will be further described below with reference to the accompanying drawings and embodiments. In the accompanying drawings:
[0030] Figure 1 This is a schematic diagram of the hardware structure of a mobile terminal according to the present invention;
[0031] Figure 2 This is a flowchart of a shoulder key detection method provided in an embodiment of the present invention;
[0032] Figure 3 This is a flowchart of another shoulder key detection method provided in an embodiment of the present invention;
[0033] Figure 4 This is a flowchart of another shoulder key detection method provided in an embodiment of the present invention;
[0034] Figure 5 This is a schematic diagram of the structure of a mobile terminal provided in an embodiment of the present invention. Detailed Implementation
[0035] It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of the invention.
[0036] In the following description, the use of suffixes such as "module," "part," or "unit" to denote elements is solely for the purpose of illustrative purposes and has no specific meaning in itself. Therefore, "module," "part," or "unit" may be used interchangeably.
[0037] Terminals can be implemented in various forms. For example, the terminals described in this invention may include mobile terminals such as mobile phones, tablets, laptops, handheld computers, personal digital assistants (PDAs), portable media players (PMPs), navigation devices, wearable devices, smart bracelets, pedometers, etc., as well as fixed terminals such as digital TVs and desktop computers.
[0038] The following description will use a mobile terminal as an example. Those skilled in the art will understand that, apart from elements specifically designed for mobile purposes, the construction according to embodiments of the present invention can also be applied to fixed-type terminals.
[0039] Please see Figure 1 This is a schematic diagram of the hardware structure of a mobile terminal implementing various embodiments of the present invention. The mobile terminal 100 may include: an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an A / V (Audio / Video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111, etc. Those skilled in the art will understand that... Figure 1 The mobile terminal structure shown does not constitute a limitation on the mobile terminal. The mobile terminal may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0040] The following is combined Figure 1 A detailed introduction to each component of the mobile terminal:
[0041] The radio frequency unit 101 can be used for receiving and transmitting signals during information transmission or calls. Specifically, it receives downlink information from the base station and processes it with the processor 110; additionally, it transmits uplink data to the base station. Typically, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier, and a duplexer. Furthermore, the radio frequency unit 101 can also communicate wirelessly with networks and other devices. The aforementioned wireless communications may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution), and TDD-LTE (Time Division Duplexing-Long Term Evolution).
[0042] WiFi is a short-range wireless transmission technology. Mobile terminals, through the WiFi module 102, can help users send and receive emails, browse web pages, and access streaming media, providing users with wireless broadband internet access. Although Figure 1 WiFi module 102 is shown, but it is understood that it is not a necessary component of a mobile terminal and can be omitted as needed without changing the nature of the invention.
[0043] The audio output unit 103 can convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into audio signals and output them as sound when the mobile terminal 100 is in call signal receiving mode, call mode, recording mode, voice recognition mode, broadcast receiving mode, etc. Furthermore, the audio output unit 103 can also provide audio output related to specific functions performed by the mobile terminal 100 (e.g., call signal receiving sound, message receiving sound, etc.). The audio output unit 103 may include a speaker, a buzzer, etc.
[0044] The A / V input unit 104 is used to receive audio or video signals. The A / V input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes image data of still images or videos acquired by an image capture device (such as a camera) in video capture mode or image capture mode. The processed image frames can be displayed on the display unit 106. The image frames processed by the GPU 1041 can be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) in operating modes such as telephone call mode, recording mode, and voice recognition mode, and can process such sound into audio data. The processed audio (voice) data can be converted into a format that can be transmitted to a mobile communication base station via the radio frequency unit 101 in telephone call mode. The microphone 1042 can implement various types of noise cancellation (or suppression) algorithms to eliminate (or suppress) noise or interference generated during the reception and transmission of audio signals.
[0045] The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 1061 according to the ambient light level, and the proximity sensor can turn off the display panel 1061 and / or backlight when the mobile terminal 100 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes). When stationary, it can detect the magnitude and direction of gravity and can be used for applications that recognize the phone's posture (such as landscape / portrait switching, related games, magnetometer posture calibration), vibration recognition-related functions (such as pedometer, tapping), etc. Other sensors that may be configured in the phone, such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, and infrared sensors, will not be described in detail here.
[0046] The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
[0047] User input unit 107 can be used to receive input numerical or character information, and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, user input unit 107 may include touch panel 1071 and other input devices 1072. Touch panel 1071, also known as touch screen, can collect touch operations on or near the user (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near touch panel 1071), and drive corresponding connection devices according to a pre-set program. Touch panel 1071 may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch position and the signal generated by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, sends it to processor 110, and can receive and execute commands from processor 110. In addition, touch panel 1071 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may also include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, one or more of the following: physical keyboard, function keys (such as volume control buttons, power buttons, etc.), trackball, mouse, joystick, etc., without being limited here.
[0048] Furthermore, the touch panel 1071 may cover the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits the information to the processor 110 to determine the type of touch event. Subsequently, the processor 110 provides corresponding visual output on the display panel 1061 based on the type of touch event. Although in Figure 1 In this embodiment, the touch panel 1071 and the display panel 1061 are two independent components to realize the input and output functions of the mobile terminal. However, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated to realize the input and output functions of the mobile terminal. The specific implementation is not limited here.
[0049] Interface unit 108 serves as an interface through which at least one external device can connect to mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, and so on. Interface unit 108 may be used to receive input (e.g., data, power, etc.) from the external device and transmit the received input to one or more elements within mobile terminal 100, or it may be used to transmit data between mobile terminal 100 and the external device.
[0050] The memory 109 can be used to store software programs and various data. The memory 109 may primarily include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function (such as sound playback, image playback, etc.), etc.; the data storage area may store data created based on the use of the mobile phone (such as audio data, phonebook, etc.). Furthermore, the memory 109 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0051] The processor 110 is the control center of the mobile terminal. It connects various parts of the mobile terminal via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 109, and by calling data stored in the memory 109, it performs various functions and processes data of the mobile terminal, thereby providing overall monitoring of the mobile terminal. The processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor. The application processor mainly handles the operating system, user interface, and applications, while the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 110.
[0052] The mobile terminal 100 may also include a power supply 111 (such as a battery) that supplies power to various components. Preferably, the power supply 111 can be logically connected to the processor 110 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system.
[0053] although Figure 1 As not shown, the mobile terminal 100 may also include a Bluetooth module, etc., which will not be described in detail here.
[0054] Based on the above-described mobile terminal hardware structure, various embodiments of the method of the present invention are proposed.
[0055] Example 1
[0056] Figure 2 This is a flowchart of a shoulder button detection method provided by an embodiment of the present invention. The method of this embodiment runs automatically via a mobile terminal. The steps can be performed sequentially as shown in the flowchart, or multiple steps can be performed simultaneously depending on the actual situation; no limitation is made here. The mobile terminal includes a smart mobile terminal integrating shoulder button functionality. The shoulder button detection method provided by the present invention includes:
[0057] Step S201: When a preset input command is detected, confirm whether there is a shoulder button that is currently pressed.
[0058] Step S202: If there is a shoulder button that is currently pressed, output a prompt message to release the shoulder button;
[0059] Step S203: If the preset input command can be executed normally again after the prompt message indicating that the shoulder button has been released is output, then the shoulder button is determined to be in normal condition.
[0060] Through the above implementation method, firstly, when a preset input command is detected, it is confirmed whether a shoulder button is currently pressed; then, if a shoulder button is currently pressed, a prompt message to release the shoulder button is output; finally, if the preset input command detected again after the prompt message to release the shoulder button is output can be executed normally, it is determined that the shoulder button is in normal condition. This effectively distinguishes whether the cause of the malfunction in the current game operation is due to the user forgetting to release the shoulder button after pressing it, or a hardware malfunction of the shoulder button itself, and can promptly guide the user to resolve the problem of the malfunction in the current game operation caused by forgetting to release the shoulder button after pressing it, thus improving the user experience.
[0061] In this embodiment, it should first be noted that, considering the existing technology, since shoulder buttons are hardware devices, if a shoulder button remains pressed due to hardware damage while the user is playing a game, or if the user forgets to release the shoulder button after pressing it, the shoulder button will remain pressed, causing the operation for the current game to fail. This may lead the user to mistakenly believe that the game or the mobile terminal system is malfunctioning, affecting the user's experience. Therefore, in this embodiment, to solve the above technical problem, when a preset input command is detected, it is checked whether there is a shoulder button currently pressed; if there is a shoulder button currently pressed, a prompt message to release the shoulder button is output; if the preset input command is detected again after the prompt message to release the shoulder button is output, the shoulder button is determined to be in normal condition. This effectively distinguishes whether the cause of the operation failure for the current game is that the user forgot to release the shoulder button after pressing it, or a problem with the shoulder button's hardware itself, and can promptly guide the user to resolve the problem of the operation failure for the current game caused by forgetting to release the shoulder button after pressing it, thus improving the user experience.
[0062] The above steps will be described in detail below with reference to specific implementation methods.
[0063] In step S201, when a preset input command is detected, it is confirmed whether there is a shoulder button that is currently pressed.
[0064] Specifically, the preset input commands include input commands for the currently running application or software, input commands to control the display navigation keys, or other input commands controlled by gestures. When a preset input command is detected, it is first checked whether there are any shoulder buttons currently pressed to rule out the influence of pressed shoulder buttons on the execution of the current input command.
[0065] Optionally, the preset input commands include: input commands to control the display of navigation keys, or input commands controlled by gestures.
[0066] Specifically, when operations for the current game fail, users typically try using the display navigation keys or other gesture-based controls to determine if the problem is specific to the game or a malfunction in the mobile device system. Upon receiving input commands to the display navigation keys or gestures, checking for pressed shoulder buttons helps users pinpoint the cause of the malfunction more quickly. Optionally, the input commands to the display navigation keys include swiping from the screen edge inwards.
[0067] Optionally, confirming whether a shoulder button is currently pressed includes:
[0068] Check if there is a shoulder button press status flag. If there is a shoulder button press status flag, then there is a shoulder button that is currently pressed; otherwise, there is no shoulder button that is currently pressed.
[0069] Specifically, the presence of a shoulder button in a pressed state can be confirmed by setting a flag indicating whether a shoulder button is currently pressed.
[0070] In one embodiment, the shoulder key detection method further includes, prior to:
[0071] Step S204: When an operation command input by pressing the shoulder button is detected, set the shoulder button press status flag.
[0072] Specifically, when an operation command input by pressing a shoulder button is detected, the shoulder button press status flag is set while the operation command is executed, so as to confirm whether there is a shoulder button currently in a pressed state.
[0073] In one embodiment, after setting the shoulder button press status flag, the method further includes:
[0074] Step S205: When it is detected that the pressed shoulder button has returned to the unpressed state, the shoulder button press state flag is cleared.
[0075] Specifically, when it is detected that the pressed shoulder button has returned to an unpressed state, the shoulder button press status flag is cleared in a timely manner to prevent the shoulder button press status flag from affecting the execution of subsequent instructions.
[0076] In step S202, if there is a shoulder button that is currently pressed, a prompt message to release the shoulder button is output.
[0077] Specifically, if there is a shoulder button that is currently pressed, it indicates that the reason why the operation for the current game is not working may be because the shoulder button is pressed. In this case, the user is prompted to release the shoulder button to eliminate the influence of the pressed shoulder button on subsequent commands.
[0078] In step S203, if the preset input command is executed normally again after the prompt message indicating that the shoulder button has been released is output, then the shoulder button is determined to be in normal condition.
[0079] Specifically, after the prompt message indicating that the shoulder button has been released is output, the user will usually release the pressed shoulder button in time according to the prompt message. At this time, if the preset input command detected again can be executed normally, it indicates that the shoulder button can be restored to the unpressed state normally, that is, the shoulder button is in normal state.
[0080] In this embodiment of the invention, when a preset input command is detected, it is confirmed whether a shoulder button is currently pressed. If a shoulder button is pressed, a prompt message to release the shoulder button is output. If, after outputting the prompt message to release the shoulder button, the preset input command is detected again and can be executed normally, then the shoulder button is determined to be in normal condition. This effectively distinguishes whether the cause of the malfunction in the current game operation is due to the user forgetting to release the shoulder button or a hardware malfunction of the shoulder button itself. Furthermore, it can promptly guide the user to resolve the problem of the malfunction in the current game operation caused by forgetting to release the shoulder button, thus improving the user experience.
[0081] Example 2
[0082] Based on the above embodiments, Figure 3 This is a flowchart of another shoulder key detection method provided in an embodiment of the present invention. The method includes:
[0083] Step S301: A preset input command is detected;
[0084] Step S302: Determine if there is a shoulder button that is currently pressed. If yes, proceed to step S303; otherwise, proceed to step S308.
[0085] Specifically, if there is a shoulder button that is currently pressed, a prompt message will be output indicating that the shoulder button has been released; if there is no shoulder button that is currently pressed, it indicates that the reason for the failure of the operation in the current game is unrelated to the shoulder button, and the shoulder button detection process will end.
[0086] Step S303: Output a prompt message indicating that the shoulder key has been released;
[0087] Step S304: Determine whether the preset input command detected again after the prompt message of releasing the shoulder button can be executed normally. If yes, proceed to step S305; otherwise, proceed to step S306.
[0088] Specifically, after the prompt message indicating that the shoulder button has been released is output, if the preset input command detected again can be executed normally, it indicates that the shoulder button is in normal condition; if the preset input command detected again still cannot be executed normally, it indicates that the shoulder button is in abnormal condition.
[0089] Step S305: Confirm that the shoulder key is in normal condition, then proceed to step S308;
[0090] Step S306: Determine that the shoulder key is in an abnormal state;
[0091] Specifically, after the prompt message indicating that the shoulder button has been released is output, the user will usually release the pressed shoulder button in time according to the prompt message. If the preset input command detected again still cannot be executed normally, it indicates that the shoulder button cannot be restored to the unpressed state normally, that is, the shoulder button is in an abnormal state.
[0092] Step S307: Output a prompt message indicating that the shoulder key status is abnormal;
[0093] Specifically, when the shoulder buttons are in an abnormal state, a prompt message indicating the abnormal shoulder button state is output so that the user can promptly understand the reason for the failure of the operation for the current game.
[0094] Step S308, End.
[0095] In this embodiment of the invention, when a preset input command is detected, it is confirmed whether a shoulder button is currently pressed. If a shoulder button is pressed, a prompt message to release the shoulder button is output. If the preset input command is detected again after the prompt message to release the shoulder button is output, it is determined that the shoulder button is in a normal state. If the preset input command is detected again after the prompt message to release the shoulder button is output, it is determined that the shoulder button is in an abnormal state, and a prompt message indicating an abnormal shoulder button state is output. This effectively distinguishes whether the cause of the malfunction in the current game operation is due to the user forgetting to release the shoulder button or a hardware malfunction of the shoulder button itself. It can also guide the user to resolve the problem of the malfunction caused by forgetting to release the shoulder button. Furthermore, by outputting a prompt message indicating an abnormal shoulder button state after determining that the shoulder button is in an abnormal state, the user can understand the cause of the malfunction in the current game in a timely manner, thus improving the user experience.
[0096] Example 3
[0097] Based on the above embodiment one, Figure 4 This is a flowchart of another shoulder key detection method provided in an embodiment of the present invention. The method includes:
[0098] Step S401: A preset input command is detected;
[0099] Step S402: Determine if there is a shoulder button that is currently pressed. If yes, proceed to step S403; otherwise, proceed to step S410.
[0100] Specifically, if there is a shoulder button that is currently pressed, a prompt message will be output indicating that the shoulder button should be released; if there is no shoulder button that is currently pressed, it indicates that the reason for the failure of the operation in the current game is unrelated to the shoulder button, and the shoulder button detection process will end.
[0101] Step S403: Output a prompt message indicating that the shoulder key has been released;
[0102] Step S404: Determine whether the preset input command detected again after the prompt message of releasing the shoulder button can be executed normally. If yes, proceed to step S405; otherwise, proceed to step S406.
[0103] Specifically, after outputting the prompt message indicating that the shoulder button has been released, if the preset input command detected again can be executed normally, it indicates that the shoulder button is in normal condition; if the preset input command detected again still cannot be executed normally, it indicates that the shoulder button is in abnormal condition, or that other software is malfunctioning. To avoid false alarms about abnormal shoulder button condition, a prompt message to restart the mobile terminal is first output, and restarting the mobile terminal eliminates the possibility of other software malfunctions.
[0104] Step S405: Confirm that the shoulder key is in normal condition, then proceed to step S410;
[0105] Step S406: Output a restart prompt message;
[0106] Specifically, it outputs a prompt to restart the mobile terminal to rule out issues caused by abnormal operation of other software that prevent the current game from functioning correctly.
[0107] Step S407: Determine whether the preset input command detected again after restarting can be executed normally. If yes, proceed to step S405; otherwise, proceed to step S408.
[0108] Specifically, if the preset input command can be executed normally again after restarting the mobile terminal, it indicates that the problem of the operation failure for the current game is caused by the abnormal running state of other software, and the shoulder button is in normal condition; if the preset input command still cannot be executed normally after being detected again, it indicates that the problem of the operation failure for the current game is caused by the shoulder button that is still in the pressing state, that is, the shoulder button is in abnormal condition.
[0109] Step S408: Determine that the shoulder key is in an abnormal state;
[0110] Step S409: Output a prompt message indicating that the shoulder key status is abnormal;
[0111] Step S410, End.
[0112] In this embodiment of the invention, when a preset input command is detected, it is confirmed whether a shoulder button is currently pressed. If a shoulder button is pressed, a prompt to release the shoulder button is output. If, after outputting the prompt to release the shoulder button, the preset input command is detected again but still cannot be executed normally, a restart prompt is output. If, after restarting, the preset input command is detected again and can be executed normally, the shoulder button is determined to be in a normal state. If, after restarting, the preset input command is detected again but still cannot be executed normally, the shoulder button is determined to be in an abnormal state and a prompt indicating an abnormal shoulder button state is output. This effectively distinguishes whether the cause of the malfunction in the current game operation is due to the user forgetting to release the shoulder button or a hardware malfunction of the shoulder button itself, and can promptly guide the user to resolve the problem of the malfunction caused by forgetting to release the shoulder button. Furthermore, by outputting a prompt indicating an abnormal shoulder button state after determining that the shoulder button is in an abnormal state, the user can promptly understand the cause of the malfunction in the current game operation, thus improving the user experience.
[0113] Example 4
[0114] Figure 5 This is a schematic diagram of the structure of a mobile terminal 100 provided in an embodiment of the present invention. The mobile terminal 100 includes a memory 109, a processor 110, and a computer program (not shown in the figure) stored in the memory and executable on the processor. When the computer program is executed by the processor 110, it implements the steps of the shoulder key detection method as described in Embodiment 1, Embodiment 2, or Embodiment 3 above.
[0115] The mobile terminal 100 of this invention belongs to the same concept as the shoulder button detection method of the above embodiments one to three. For details of its specific implementation process, please refer to the corresponding method embodiments. The technical features in the method embodiments are all applicable to this mobile terminal embodiment, and will not be repeated here.
[0116] Example 5
[0117] This invention also provides a computer-readable storage medium storing a shoulder key detection program. When the shoulder key detection program is executed by a processor, it implements the steps of the shoulder key detection method as described in Embodiment 1, Embodiment 2, or Embodiment 3 above.
[0118] The computer-readable storage medium of this invention belongs to the same concept as the methods of Embodiments 1 to 3 above. The specific implementation process can be found in the corresponding method embodiments. The technical features in the method embodiments are also applicable to this computer-readable storage medium embodiment, and will not be repeated here.
[0119] The corresponding technical features in the above embodiments can be used in combination without causing contradictions or making the solutions unfeasible.
[0120] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0121] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0122] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0123] The embodiments of the present invention have been described above with reference to the accompanying drawings. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of the present invention without departing from the spirit and scope of the claims. All of these forms are within the protection scope of the present invention.
Claims
1. A shoulder key detection method, characterized in that, The method includes: When a preset input command is detected, check if there are any shoulder buttons that are currently pressed. If there is a shoulder button that is currently pressed, output a prompt message indicating that the shoulder button has been released; If the preset input command is executed normally again after the prompt message indicating that the shoulder button has been released is output, then the shoulder button is determined to be in normal condition. The preset input instructions include input instructions for the currently running application or software, input instructions to control the display of navigation keys, or other input instructions controlled by gestures; After the prompt message indicating that the shoulder button has been released is output, the following is also included: If the preset input command still cannot be executed normally after the prompt message indicating that the shoulder button has been released is output, then the shoulder button is determined to be in an abnormal state. Alternatively, after the output of the prompt message indicating that the shoulder button has been released, the following may also be included: If the preset input command still cannot be executed normally after the prompt message indicating that the shoulder button has been released is output, a prompt message indicating a restart will be output. If the preset input command can be executed normally after restarting, then the shoulder button status is determined to be normal. If the preset input command still cannot be executed normally after restarting, then the shoulder key status is determined to be abnormal.
2. The shoulder key detection method according to claim 1, characterized in that, The process of confirming whether a shoulder button is currently pressed includes: Check if there is a shoulder button press status flag. If there is a shoulder button press status flag, then there is a shoulder button that is currently pressed; otherwise, there is no shoulder button that is currently pressed.
3. The shoulder key detection method according to claim 2, characterized in that, The method is preceded by: When an operation command input by pressing the shoulder button is detected, the shoulder button press status flag is set.
4. The shoulder key detection method according to claim 3, characterized in that, After setting the shoulder button press status flag, the following is also included: When the pressed shoulder button is detected to return to an unpressed state, the shoulder button pressed state flag is cleared.
5. The shoulder key detection method according to claim 1, characterized in that, After determining that the shoulder key state is abnormal, the method further includes: Output a message indicating that the shoulder key status is abnormal.
6. A mobile terminal, characterized in that, The mobile terminal includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps of the shoulder key detection method as described in any one of claims 1 to 5.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a shoulder key detection program, which, when executed by a processor, implements the steps of the shoulder key detection method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Voice sending method and device
CN111314554A