A method for preventing accidental touch, a mobile terminal and a computer-readable storage medium
The mobile terminal's gyroscope and pressure sensor detect the grip state and screen pressure sensing events, and automatically recognize and block the mist touch buttons, solving the problem of mist touch in the horizontal screen state of the mobile terminal, realizing intelligent anti-miss touch, and improving the gaming experience.
Patent Information
- Application Number
- CN202111479998.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-06
- Publication Date
- 2025-03-04
- Estimated Expiration
- 2041-12-06
AI Technical Summary
In the prior art, when the mobile terminal is used in a horizontal screen state, the user is prone to affect the immersive experience of the game due to fingers' mistaken touching of physical keys, and the existing anti-touch method requires the user to manually turn on and off, which has problems such as learning cost and function limitations.
The grip state is determined by the gyroscope of the mobile terminal. If the application in the horizontal grip state and the front-end is in the preset list and is a game application, it detects whether there is a pressure-sensitive event on the screen, determines the button closest to the pressure-sensitive event and generates a touch-proof strategy to block the trigger function of the button.
It realizes the intelligent and automatic blocking of the mobile terminal's key function without manually turning it on, avoiding accidentally touching, improving the gaming experience, and unblocking when needed to ensure the normal function of the key.
Smart Images

Figure CN114159772B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of mobile terminals, and in particular to a method for preventing accidental touches, a mobile terminal and a computer-readable storage medium. Background Art
[0002] Mobile terminals are becoming more and more popular. For example, mobile phones are the most common among mobile terminals. In today's life, among mobile phone users, more than 50% of users use mobile phones for entertainment, such as games. In existing mobile games, most of them require the mobile phone to be in landscape mode for operation. Therefore, due to the space limitation of current mobile phones, when the user is in landscape mode, when operating the game, the remaining fingers are likely to accidentally trigger some functions of the physical buttons on the mobile phone. For example, when the volume button is triggered, the display interface of the mobile phone will display the volume adjustment interface, or when the power button is triggered, the screen will be turned off, etc., thereby affecting the immersive experience of the game in terms of vision, hearing, etc. In the prior art, some mobile phone systems provide a shortcut anti-accidental touch switch for physical buttons for users to choose. When the user turns on the shortcut anti-accidental touch switch, the physical buttons will be shielded through the software system. However, there are multiple defects. On the one hand, the user is required to manually check the shortcut anti-accidental touch switch, which requires a certain learning cost for the user, and when the user ends the game, the shortcut anti-accidental touch switch needs to be turned off again; on the other hand, when the user checks the shortcut anti-accidental touch switch, all physical buttons of the mobile phone are completely invalid, so if a physical button needs to be operated, it cannot be satisfied.
[0003] In summary, the technical problem actually solved by the present invention is how to intelligently and automatically shield the functions of the keys of the mobile terminal. Summary of the invention
[0004] In order to overcome the above technical defects, the purpose of the present invention is to provide an anti-mistouch method, a mobile terminal and a computer-readable storage medium, which provide a function of intelligently and automatically shielding the keys of the mobile terminal.
[0005] The present invention discloses a method for preventing accidental touch, comprising the steps of:
[0006] determining a holding state of the mobile terminal based on a gyroscope of the mobile terminal;
[0007] If the mobile terminal is in a horizontal holding state, when it is detected that an application is opened in the foreground of the mobile terminal, determining whether the name of the application opened in the foreground of the mobile terminal is in the preset list information;
[0008] If the name of the application opened in the foreground of the mobile terminal is in the preset list information, determining whether the application opened in the foreground of the mobile terminal is a game application;
[0009] If the application opened in the foreground of the mobile terminal is a game application, detecting whether a pressure event occurs on the screen of the mobile terminal;
[0010] If a pressure event is detected on the screen of the mobile terminal, determining the key of the mobile terminal that is closest to the position of the pressure event in a straight line;
[0011] An anti-touch strategy is generated for a key of the mobile terminal whose straight-line distance to the position where the pressure event occurs is closest, and a trigger function of the key whose straight-line distance is closest is shielded.
[0012] Preferably, determining the holding state of the mobile terminal based on a gyroscope of the mobile terminal includes:
[0013] If the angle between the screen of the mobile terminal and the horizontal line is between 45° and 90°, it is determined that the holding state of the mobile terminal is the horizontal holding state.
[0014] Preferably, determining whether the application opened in the foreground of the mobile terminal is a game application includes:
[0015] Obtaining, based on a processor of the mobile terminal, a name of an application opened in the foreground of the mobile terminal;
[0016] Compare the obtained name with the preset list information;
[0017] When the acquired name is in the preset list information, it is confirmed that the application opened in the foreground of the mobile terminal is a game application.
[0018] Preferably, determining the key of the mobile terminal whose straight-line distance to the position of the pressure event is closest includes:
[0019] Acquiring whether a pressure event occurs on the screen of the mobile terminal based on a pressure sensor of the mobile terminal;
[0020] If a pressure event occurs, obtain the coordinate point of the pressure event on the screen of the mobile terminal;
[0021] Obtaining the straight-line distance between the position of each key of the mobile terminal and the position of the coordinate point according to the coordinate point;
[0022] The key with the smallest straight-line distance between the position of the key of the mobile terminal and the position of the coordinate point is identified, and the key with the smallest straight-line distance is determined to be the key with the shortest straight-line distance between the position of the key of the mobile terminal and the position where the pressure event occurs.
[0023] Preferably, an anti-touch strategy is generated for a key on the same side of a key whose position of the mobile terminal is closest to a position where the pressure event occurs.
[0024] Preferably, when the number of pressure events on the screen of the mobile terminal is not less than one, the keys of the mobile terminal whose positions are closest to the positions where the pressure events occur are respectively confirmed, and an anti-touch strategy is generated for each key whose straight-line distance is closest to the position where the pressure events occur.
[0025] Preferably, the method further comprises the steps of:
[0026] Based on the TP firmware of the mobile terminal, the trigger time and the failure time of the key of the mobile terminal are obtained, and the absolute value of the trigger time and the failure time are calculated, so as to obtain the continuous pressing time of the key of the mobile terminal, and confirm whether the continuous pressing time is greater than a preset time threshold;
[0027] If the duration of continuous pressing of the key of the mobile terminal is greater than the time threshold, a release strategy is generated to release the anti-touch strategy, the triggering function of the key of the mobile terminal is not blocked, and when the duration of continuous pressing of the key of the mobile terminal is zero, the release strategy becomes invalid.
[0028] Preferably, the release strategy only releases the anti-touch strategy of the keys of the mobile terminal whose continuous pressing time is greater than the time threshold.
[0029] In view of this, a second object of the present invention is to provide a mobile terminal, comprising a first confirmation module, for confirming a holding state of the mobile terminal;
[0030] A second confirmation module is used for, when the mobile terminal is in a horizontal holding state, when it is detected that an application is opened in the foreground of the mobile terminal, to confirm whether the name of the application opened in the foreground of the mobile terminal is in the preset list information, and if the name of the application opened in the foreground of the mobile terminal is in the preset list information, triggering a third confirmation module;
[0031] A third confirmation module is used to confirm whether the application opened in the foreground of the mobile terminal is a game application;
[0032] A fourth confirmation module, used to detect whether a pressure event occurs on the screen of the mobile terminal if the application opened in the foreground of the mobile terminal is a game application;
[0033] A fifth confirmation module, configured to, if a pressure event is detected on the screen of the mobile terminal, confirm the key of the mobile terminal that is closest to the position of the pressure event in a straight line;
[0034] The sixth confirmation module is used to generate an anti-touch strategy for the key of the mobile terminal whose straight-line distance to the position where the pressure event occurs is the shortest, and shield the trigger function of the key whose straight-line distance is the shortest.
[0035] The present invention also discloses a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the above steps are implemented.
[0036] After adopting the above technical scheme, compared with the prior art, the beneficial effect of the present invention is that it provides a method for intelligently and automatically shielding the functions of the buttons of a mobile terminal. When the user plays games on the mobile phone in landscape mode, there is no need to manually turn on the mobile phone's shortcut anti-mistouch switch. It can actively detect and then shield, and will not shield the functions of all buttons. Only the nearest button or all buttons on the same side of the nearest button are shielded. Moreover, when the same button is pressed for a long time, it is determined that the function of the button is required by the user, and the button will no longer be shielded, because if it is a mistouch, it will only be a short operation. In this scheme, it will only be shielded when the user operates the mobile phone shield, and when the user does not operate on the screen, the button can be operated normally. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 A schematic diagram of a flow chart of an anti-accidental touch method, a mobile terminal and a computer-readable storage medium of the present invention;
[0038] Figure 2 A schematic diagram of a flow chart of confirming that an application opened in the foreground of a mobile terminal is a game application in the method for preventing accidental touches of the present invention;
[0039] Figure 3 A schematic diagram of a flow chart of the method for preventing accidental touches of the present invention for confirming the key of the mobile terminal whose straight-line distance to the position where the pressure event occurs is the closest; DETAILED DESCRIPTION
[0040] The advantages of the present invention are further described below in conjunction with the accompanying drawings and specific embodiments.
[0041] 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 disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0042] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. The singular forms of "a", "said" and "the" used in this disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0043] It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0044] In the description of the present invention, it is necessary to understand that the terms "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship, are based on the orientation or position relationship shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.
[0045] In the description of the present invention, unless otherwise specified and limited, it should be noted that the terms "installed", "connected" and "connected" should be understood in a broad sense. For example, it can be a mechanical connection or an electrical connection, or it can be the internal connection between two components. It can be a direct connection or an indirect connection through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to the specific circumstances.
[0046] In the following description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present invention, and have no specific meanings. Therefore, "module" and "component" can be used interchangeably.
[0047] See also Figure 1 As shown, this embodiment provides an anti-mistaken touch method, which is applied to a mobile terminal. The anti-mistaken touch method includes the following steps:
[0048] S100: determining the holding state of the mobile terminal based on the gyroscope of the mobile terminal, and if the holding state of the mobile terminal is not in the horizontal holding state, not proceeding to the next step;
[0049] S200: If the holding state of the mobile terminal determined in step S100 is the horizontal holding state, when it is detected that an application is opened in the foreground of the mobile terminal, it is determined whether the name of the application opened in the foreground of the mobile terminal is in the preset list information, if the name of the application opened in the foreground of the mobile terminal is not in the preset list information, the next step is not performed;
[0050] S300: If the name of the application opened in the foreground of the mobile terminal determined in step S200 is in the preset list information, determine whether the application opened in the foreground of the mobile terminal is a game application, and if it is not a game application, do not proceed to the next step;
[0051] S400: If the application opened in the foreground of the mobile terminal determined in step S300 is a game application, detecting whether a pressure event occurs on the shield of the mobile terminal, and if no pressure event occurs, not proceeding to the next step;
[0052] S500: If a pressure event is detected on the screen of the mobile terminal through step S400, confirm the key of the mobile terminal that is closest to the position of the pressure event in a straight line;
[0053] S600: generating an anti-touch strategy for a key of the mobile terminal that is closest in linear distance to a position where a pressure event occurs, and shielding a trigger function of the key that is closest in linear distance.
[0054] It should be noted that the holding state of the mobile terminal in step S100 is confirmed based on the gyroscope of the mobile terminal. The method of confirming the holding state of the mobile terminal by a gyroscope described in this scheme should not be regarded as not belonging to the protection scope of this scheme after replacement. The method of confirming the holding state of the mobile terminal by a gyroscope described in this embodiment is only one of them, and other embodiments can also determine the holding state of the mobile terminal by identifying the shielding interface of the mobile phone.
[0055] The foreground application opened in the mobile terminal described in step S200 means that, because the mobile terminal can open multiple applications at the same time, and the display interface of the mobile terminal will only display one application, and the application displayed in the current interface at this time is the application opened in the foreground of the mobile terminal. Of course, the mobile terminal in the prior art can perform split-screen operation, that is, at least two applications can be opened at the foreground of the mobile terminal at the same time, but this does not affect the steps of the above method, and the keys of the mobile terminal can still be shielded. For example: because even if two applications are opened at the foreground of the mobile terminal at the same time, the only difference is that it is necessary to simultaneously confirm whether the names of the two applications opened at the foreground of the mobile terminal are in the preset list information, so as to confirm whether the application opened at the foreground of the mobile terminal has a game application. When one of the names of the two applications opened at the foreground of the mobile terminal at the same time is in the preset list information, it can be confirmed that the application opened at the foreground of the mobile terminal has a game application, and then proceed to the next step.
[0056] It should be noted that the preset list information in step S200 includes the name of the game application installed by the mobile terminal. The name in the preset list information can also be adjusted by the user. For example, for a certain game application, when the user runs the game application without shielding the keys of the mobile terminal, the user can delete the name of the game application from the preset list information. After deleting the name in the preset list information, when the game application is run, the anti-touch strategy will not be generated. It is conceivable that when the user runs an application that is not a game application through the mobile terminal, such as a video playback application, because when watching a video, the user does not want to interrupt the video he is watching due to accidental key presses, the name of this video playback application can be added to the preset list information, and the keys of the mobile terminal can be shielded. Therefore, the name in the preset list information is the name of the game application when the game application is installed on the mobile terminal, and then the user can add or delete the name by himself.
[0057] It should be noted that in step S100, confirming the holding state of the mobile terminal based on the gyroscope of the mobile terminal includes: if the angle between the screen of the mobile terminal and the horizontal line is between 45° and 90°, confirming that the holding state of the mobile terminal is a horizontal holding state. The restriction condition 45° to 90° here is not a unique value. Since each person has different postures when operating a game application, the way of holding the mobile terminal is naturally different. Therefore, the angle between the screen of the mobile terminal and the horizontal line can be adjusted according to actual needs. For example, the above-mentioned 45° to 90° is when the user uses the mobile terminal to operate the game. In order to enable the eyes to look directly at the screen of the mobile terminal, the mobile terminal needs to be tilted, but this method is the most common implementation method. In another embodiment, when the user chooses to lie down and use the mobile terminal to operate the game application, the angle between the screen of the mobile terminal and the horizontal line is not between 45° and 90°. Therefore, the range of the angle needs to be adjusted according to user needs.
[0058] It should be noted that the method described in step S400 of detecting whether a pressure event occurs on the shield of the mobile terminal and proceeding to the next step only when a pressure event occurs is the optimal solution. This step can also be replaced by detecting a touch event of the mobile terminal, or when some game-exclusive mobile terminals have some shoulder keys that are used in games, it can also be replaced by detecting the shoulder keys of the game-exclusive mobile terminals. Obviously, if the pressure event is not detected, it is not detected by a pressure sensor, but by other components. For example, when the shoulder keys are used to obtain the information, the shoulder keys of the mobile terminal are monitored to identify whether the shoulder keys of the mobile terminal are pressed. If the shoulder keys used for game operations are pressed, the next step is performed.
[0059] See also Figure 2 As shown, this embodiment provides that in step S300, confirming that the application opened in the foreground of the mobile terminal is a game application includes:
[0060] S310: Acquire the name of the application opened in the foreground of the mobile terminal based on the processor of the mobile terminal. When the mobile terminal opens the application, it will be opened through the processor, so the name of the application opened in the foreground will be directly obtained;
[0061] S320: Compare the name obtained in step S310 with the preset list information to determine whether the obtained name is in the preset list information;
[0062] S330: When the acquired name is in the preset list information, confirm that the application opened in the foreground of the mobile terminal is a game application.
[0063] See also Figure 3As shown, this embodiment provides step S500 of confirming the key of the mobile terminal that is closest to the position of the key at which the pressure event occurs, including:
[0064] S510: obtaining whether a pressure event occurs in the mobile terminal based on the pressure sensor of the mobile terminal, and proceeding to the next step if a pressure event occurs;
[0065] S520: If it is obtained through step S510 that a pressure event occurs in the mobile terminal, obtain the coordinate point of the pressure event on the screen of the mobile terminal;
[0066] S530: Obtaining the straight-line distance between the position of each key of the mobile terminal and the position of the coordinate point according to the coordinate point obtained in step S520;
[0067] S540: Compare the straight-line distance between the acquired position of each key of the mobile terminal and the position of the coordinate point, compare one or more keys with the smallest straight-line distance, and determine that the key with the smallest straight-line distance is the key whose straight-line distance between the position of the key of the mobile terminal and the position where the pressure event occurs is the shortest.
[0068] It should be noted that, when confirming the key of the mobile terminal whose straight-line distance to the position of the pressure event is closest according to the above steps, an anti-touch strategy is generated for the keys on the same side of this key. For example, when the volume up key and the volume down key are on the same side of the mobile terminal, when a pressure event occurs on the mobile terminal, and the final confirmed result is that the volume up key is closest to the position of the pressure event, an anti-touch strategy is generated for both the volume up key and the volume down key.
[0069] It should be noted that when the user operates some game applications, the user will have multiple fingers operating on the shield of the mobile terminal at the same time, so multiple pressure events will occur at the same time. At this time, the positions of the keys of the mobile terminal and the keys closest to the positions where the pressure events occur are confirmed respectively, and an anti-touch strategy is generated for each key closest to the straight-line distance of the pressure event. At the same time, the anti-touch strategy can also be generated for the keys on the same side.
[0070] It should be noted that steps S100 to S600 of the above embodiment also include step S700: obtaining the trigger time and failure time of the mobile terminal's key based on the TP firmware of the mobile terminal, and calculating the absolute values of the trigger time and the failure time, so as to obtain the continuous pressing time of the mobile terminal's key, and confirm whether the continuous pressing time is greater than the preset time threshold. If the continuous pressing time of the mobile terminal's key is greater than the time threshold, a release strategy is generated to release the anti-touch strategy, and the trigger function of the mobile terminal's key is not blocked. When the continuous pressing time of the mobile terminal's key is zero, the release strategy becomes invalid.
[0071] It should be noted that the policy release in step S700 only releases the anti-touch policy of the key of the mobile terminal whose continuous pressing time is greater than the time threshold.
[0072] This embodiment provides a mobile terminal, the mobile terminal includes: a first confirmation module, a second confirmation module, a third confirmation module, a fourth confirmation module, a fifth confirmation module, and a sixth confirmation module;
[0073] A first confirmation module, used to confirm the holding state of the mobile terminal;
[0074] A second confirmation module is used for, when the mobile terminal is in a horizontal holding state, when it is detected that an application is opened in the foreground of the mobile terminal, to confirm whether the name of the application opened in the foreground of the mobile terminal is in the preset list information, and if the application opened in the foreground of the mobile terminal is in the preset list information, triggering a third confirmation module;
[0075] A third confirmation module is used to confirm whether the application opened in the foreground of the mobile terminal is a game application;
[0076] A fourth confirmation module, used to detect whether a pressure event occurs on the screen of the mobile terminal if the application opened in the foreground of the mobile terminal is a game application;
[0077] A fifth confirmation module, configured to, if a pressure event is detected on the screen of the mobile terminal, confirm the key of the mobile terminal whose straight-line distance to the position of the pressure event is closest;
[0078] The sixth confirmation module is used to generate an anti-touch strategy for the key of the mobile terminal whose straight-line distance to the position where the pressure event occurs is the shortest, and shield the trigger function of the key whose straight-line distance is the shortest.
[0079] The present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the above steps when executed by a processor.
[0080] The mobile terminal can be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, etc., and a fixed terminal such as a digital TV, a desktop computer, etc. Below, it is assumed that the terminal is a mobile terminal. However, it will be appreciated by those skilled in the art that, in addition to the elements specifically used for mobile purposes, the construction according to the embodiments of the present invention can also be applied to fixed type terminals.
[0081] It should be noted that the embodiments of the present invention have better practicability and do not impose any form of limitation on the present invention. Any technician familiar with the field may use the technical content disclosed above to change or modify it into an equivalent effective embodiment. However, any modification or equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention are still within the scope of the technical solution of the present invention.
Claims
1. A method for preventing accidental touch, characterized in that: Applied to a mobile terminal, the method for preventing accidental touches comprises the following steps: determining a holding state of the mobile terminal based on a gyroscope of the mobile terminal; If the mobile terminal is in a horizontal holding state, when it is detected that an application is opened in the foreground of the mobile terminal, determining whether the name of the application opened in the foreground of the mobile terminal is in the preset list information; If the name of the application opened in the foreground of the mobile terminal is in the preset list information, determining whether the application opened in the foreground of the mobile terminal is a game application; If the application opened in the foreground of the mobile terminal is a game application, detecting whether a pressure event occurs on the screen of the mobile terminal; If the pressure event is detected to occur on the screen of the mobile terminal, determining the key of the mobile terminal that is closest to the position of the pressure event in a straight line; generating an anti-touch strategy for a key of the mobile terminal that is closest in linear distance to a position where the pressure event occurs, and shielding a trigger function of the key that is closest in linear distance; The step of determining the key of the mobile terminal that is closest in straight line distance to the position of the pressure event, comprises: Acquiring whether a pressure event occurs on the screen of the mobile terminal based on a pressure sensor of the mobile terminal; If a pressure event occurs, obtaining the coordinate point of the pressure event on the screen of the mobile terminal; Acquire a straight-line distance between a position of each key of the mobile terminal and a position of the coordinate point according to the coordinate point; The key of the mobile terminal having the smallest straight-line distance to the position of the coordinate point is identified, and the key having the smallest straight-line distance is determined to be the key having the closest straight-line distance to the position where the pressure event occurs.
2. The method for preventing accidental touch according to claim 1, characterized in that: The determining the holding state of the mobile terminal based on the gyroscope of the mobile terminal includes: If the angle between the screen of the mobile terminal and the horizontal line is between 45° and 90°, it is determined that the holding state of the mobile terminal is the horizontal holding state.
3. The method for preventing accidental touch according to claim 1, characterized in that: The determining whether the application opened in the foreground of the mobile terminal is a game application includes: Acquiring, based on a processor of the mobile terminal, a name of an application opened in the foreground of the mobile terminal; Comparing the obtained name with the preset list information; When the acquired name is in the preset list information, it is confirmed that the application opened in the foreground of the mobile terminal is a game application.
4. The method for preventing accidental touch according to claim 1, characterized in that: An anti-touch strategy is generated for a key on the same side of a key whose position of the mobile terminal is closest to a position where a pressure event occurs.
5. The method for preventing accidental touch according to claim 1, characterized in that: When the number of pressure events on the screen of the mobile terminal is not less than one, the keys of the mobile terminal that are closest to the position of the pressure event are respectively confirmed, and an anti-touch strategy is generated for each key that is closest to the position of the pressure event.
6. The method for preventing accidental touch according to claim 1, characterized in that: Also includes the steps: Acquire the time when a key of the mobile terminal is triggered and the time when it fails based on the TP firmware of the mobile terminal, calculate the absolute value of the time when the key is triggered and the time when it fails, thereby acquiring the continuous pressing time of the key of the mobile terminal, and confirming whether the continuous pressing time is greater than a preset time threshold; If the continuous pressing time of the key of the mobile terminal is greater than the time threshold, a release strategy is generated to release the anti-touch strategy, the triggering function of the key of the mobile terminal is not blocked, and when the continuous pressing time of the key of the mobile terminal is zero, the release strategy becomes invalid.
7. The method for preventing accidental touch according to claim 6, characterized in that: The release strategy only releases the anti-touch strategy of the keys of the mobile terminal whose continuous pressing time is greater than the time threshold.
8. A mobile terminal, characterized in that: include: A first confirmation module, used to confirm the holding state of the mobile terminal; a second confirmation module, configured to, if the mobile terminal is in a horizontal holding state, confirm whether the name of the application opened in the foreground of the mobile terminal is in the preset list information when detecting that the application opened in the foreground of the mobile terminal is opened, and trigger a third confirmation module if the name of the application opened in the foreground of the mobile terminal is in the preset list information; A third confirmation module is used to confirm whether the application opened in the foreground of the mobile terminal is a game application; A fourth confirmation module, configured to detect whether a pressure event occurs on the screen of the mobile terminal if the application opened in the foreground of the mobile terminal is a game application; The fifth confirmation module, when detecting that the pressure event occurs on the screen of the mobile terminal, confirms the key of the mobile terminal that is closest to the position of the position where the pressure event occurs, including: Acquiring whether a pressure event occurs on the screen of the mobile terminal based on a pressure sensor of the mobile terminal; If a pressure event occurs, obtaining the coordinate point of the pressure event on the screen of the mobile terminal; Acquire a straight-line distance between a position of each key of the mobile terminal and a position of the coordinate point according to the coordinate point; Identify the key of the mobile terminal whose straight-line distance to the coordinate point is the smallest, and determine that the key with the smallest straight-line distance is the key of the mobile terminal whose straight-line distance to the position of the pressure event is the closest; The sixth confirmation module is used to generate an anti-touch strategy for a key of the mobile terminal whose straight-line distance to the position where the pressure event occurs is closest, and shield the trigger function of the key whose straight-line distance is closest.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Game scene-based false touch prevention method and mobile terminal
CN109847334A
Mobile terminal control method, mobile terminal and computer readable storage medium
CN109857497A