CN110794989A - Key response method and electronic equipment - Google Patents

Key response method and electronic equipment Download PDF

Info

Publication number
CN110794989A
CN110794989A CN201911010766.7A CN201911010766A CN110794989A CN 110794989 A CN110794989 A CN 110794989A CN 201911010766 A CN201911010766 A CN 201911010766A CN 110794989 A CN110794989 A CN 110794989A
Authority
CN
China
Prior art keywords
pressure
key
touch
touch screen
distribution data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911010766.7A
Other languages
Chinese (zh)
Inventor
杨再龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201911010766.7A priority Critical patent/CN110794989A/en
Publication of CN110794989A publication Critical patent/CN110794989A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0414Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using force sensing means to determine a position

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a key response method and electronic equipment. The method comprises the following steps: when the pressure value sensed by the pressure key is detected to be larger than or equal to a first threshold value, judging whether a touch signal value exceeding a second threshold value exists in a target area corresponding to the position of the pressure key in the touch screen; if not, the response to the press event is abandoned. Therefore, the pressing event can be verified by introducing the touch signal of the touch screen, and the problem of abnormal key function response is avoided.

Description

Key response method and electronic equipment
Technical Field
The invention relates to the field of terminals, in particular to a key response method and electronic equipment.
Background
The pressure key technology is that two pressure keys are additionally arranged on two sides of the electronic equipment so as to realize the functions of auxiliary shooting of shooting games and the like and improve the game experience of users.
The current pressure key function processing scheme is that a user generally presses a pressure key to generate deformation so as to trigger the function of the pressure key; and after the hand is loosened, the pressure-sensitive key restores to deform so as to stop triggering the function of the pressure-sensitive key. However, due to the influence of physical factors such as temperature and adhesive, the pressure-sensitive key may be recovered relatively slowly after releasing the hand, and the response of the pressure-sensitive key may be delayed, for example: in the game, after the user releases the pressure key, the game operation is continued.
Therefore, there is a need to provide a more reliable solution.
Disclosure of Invention
The embodiment of the invention provides a key response method, which aims to solve the problem of abnormal key function response.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, a key response method is provided, and the method includes:
acquiring a pressure value sensed by a pressure-sensitive key of the electronic equipment;
when the pressure value is detected to be larger than or equal to a first threshold value, determining first distribution data of a touch signal in a target area of a touch screen of the electronic equipment, wherein the first threshold value is the lowest pressure value required by triggering a pressing event, and the target area corresponds to the position of the pressure-sensitive key;
and if the touch signal value exceeding a second threshold value does not exist in the first distribution data, giving up responding to the pressing event.
In a second aspect, an electronic device is provided, the electronic device comprising:
the acquisition module is used for acquiring a pressure value sensed by a pressure-sensitive key of the electronic equipment;
the first determining module is configured to determine first distribution data of a touch signal in a target area of a touch screen of the electronic device when detecting that the pressure value is greater than or equal to a first threshold, where the first threshold is a minimum pressure value required for triggering a pressing event, and the target area corresponds to a position of the pressure-sensitive key;
the first processing module is used for giving up the response to the pressing event if the touch signal value exceeding the second threshold value does not exist in the first distribution data.
In a third aspect, an electronic device is provided, comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the method according to the first aspect.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, realizes the steps of the method according to the first aspect.
In the embodiment of the invention, when the pressing event is triggered, whether a touch signal value exceeding a second threshold value exists in a target area corresponding to the position of the pressure-sensitive key in the touch screen is judged, so that the pressing event is verified by introducing the touch signal, and the problem of abnormal key function response is avoided.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
FIGS. 1a and 1b are schematic diagrams of an application scenario provided by the present invention;
FIG. 2 is a flow chart illustrating a method for responding to a key according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a pressure variation waveform induced by a pressure-sensitive key according to an embodiment of the present invention;
fig. 4a and 4b are schematic diagrams illustrating distribution of touch signals on a touch screen according to an embodiment of the present invention;
FIG. 5 is a flow chart illustrating a method for responding to a key according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As stated in the background section, the pressure-sensitive key has a delayed release condition due to the influence of physical environment such as high temperature, which leads to a problem of delayed response of the key function. Based on the above, the invention provides a key response method, which can avoid the problem of abnormal key function response by introducing a touch signal to verify a pressing event.
The following exemplifies an application scenario of the present invention.
Referring to fig. 1a and 1b, the application scenario may be: electronic equipment, first pressure button 101 and second pressure button 102, wherein:
the first pressure-sensitive key 101 and the second pressure-sensitive key 102 are generally disposed on one side of a long edge of the electronic device, and specifically may be disposed at common contact positions between a left index finger and a right index finger of a user and the touch screen during a horizontal screen operation, respectively, as shown in fig. 1 b; the first pressure-sensitive key 101 and the second pressure-sensitive key 102 are used for reporting a pressure value and/or a pressing event to the electronic device when sensing a pressing operation of a user so as to trigger a key function; and when the end of the pressing operation of the user is sensed, stopping reporting the pressure value and/or the pressing event to the electronic equipment so as to stop triggering the key function.
The first pressure-sensitive key 101 and the second pressure-sensitive key 102 are based on the principle that a pressure sensor senses the pressure pressed by a user and reports the pressure, or a pressing event is reported when the pressure value is greater than a key-reporting pressure threshold (marked as a first threshold); the electronic device or the mobile communication terminal refers to a computer device that can be used in mobile, and broadly includes a mobile phone, a notebook, a tablet computer, a POS machine, and even a vehicle-mounted computer, but mostly refers to a mobile phone or a smart phone and a tablet computer having multiple application functions.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Fig. 2 is a schematic flowchart of a method for processing a pressing event according to an embodiment of the present invention, which may be executed by an electronic device, and referring to fig. 2, the method may specifically include the following steps:
step 202, acquiring a pressure value sensed by a pressure-sensitive key of the electronic equipment; one implementation may be:
in the process of pressing the pressure-sensitive key by the user, the pressure-sensitive key senses a pressure value pressed by the user in real time through a pressure sensor, and a pressure change waveform corresponding to the process of pressing the pressure-sensitive key and releasing the pressure-sensitive key by the user can be obtained, which is shown as a line ① and a line ② in fig. 3, wherein a line ① and a line ② respectively represent pressure change waveforms corresponding to a first pressure-sensitive key and a second pressure-sensitive key of the electronic device, the line ④ is a pressure reference value corresponding to the first pressure-sensitive key, a pressure value corresponding to an intersection point of a line ① and a line ④ is a key reporting pressure threshold value corresponding to the first pressure-sensitive key, the line ③ is a pressure reference value corresponding to the second pressure-sensitive key, and a pressure value corresponding to an intersection point of a line ② and a line ③ is a key reporting pressure threshold value corresponding to the second pressure-sensitive key.
In addition, since the first pressure-sensitive key and the second pressure-sensitive key are similar in function processing manner, for convenience of description, the first pressure-sensitive key is taken as an example for illustration, and the pressure variation waveform corresponding to the line ① includes three stages:
the first stage is as follows: and in the process, the pressure-sensitive key does not report a pressing event to the electronic equipment, and the function of the pressure-sensitive key is not triggered.
And a second stage: the pressure value is maintained at or above the key reporting pressure threshold, and in the process, the pressure-sensitive key reports a pressing event to the electronic equipment to trigger the function of the pressure-sensitive key.
And a third stage: after the pressure value is reduced to the key press threshold value from large to small, the pressure-sensitive key stops reporting the press event to the electronic equipment in the process so as to stop triggering the function of the pressure-sensitive key.
The embodiment of the present specification shows a specific implementation manner of the step 202. Of course, it should be understood that step 202 may also be implemented in other ways, and this is not limited by this embodiment.
Step 204, when detecting that the pressure value is greater than or equal to a first threshold value, determining first distribution data of a touch signal in a target area of a touch screen of the electronic device, wherein the first threshold value is a minimum pressure value required for triggering a pressing event, and the target area corresponds to the position of the pressure-sensitive key;
it is understood that the touch signal corresponds to the working principle of a touch screen of the electronic device and a medium for transmitting information, and when the touch screen is a capacitive touch screen, the touch signal is a capacitive signal; or, when the touch screen is a resistive touch screen, the touch signal is a resistance signal, which is not limited herein. The division of the target area may also be determined by the form of the touch screen, for example: when the touch screen is a curved touch screen, the target area comprises an edge area of the curved touch screen within the preset range of the pressure keys.
Step 206, if the touch signal value exceeding the second threshold does not exist in the first distribution data, giving up responding to the pressing event.
Referring to fig. 3, taking a resistive pressure-sensitive key as an example, an implementation manner of the step 204 and the step 206 may be:
when the pressure value sensed by the pressure-sensitive key is greater than or equal to the first threshold value, namely, in the second stage, the pressure-sensitive key reports the pressing event to the electronic equipment, the electronic equipment synchronously acquires first distribution data of the touch signal in the target area, and the accuracy of the pressing event is verified based on the first distribution data. The verification process may specifically be as follows:
example 1, when a pressure-sensitive key senses that a stress is increased and rises to a first threshold value, an electronic device acquires first distribution data of a touch signal in a target area; if the touch signal value exceeding the second threshold value does not exist in the first distribution data (see fig. 4a), it is determined that the finger of the user is not pressed on the touch screen, and it is determined that the user mistakenly touches the pressure-sensitive key, so that a response pressing event is given up, the function of triggering the pressure-sensitive key is rejected, and the effect of button function false response caused by the false touch is achieved. On the contrary, if the touch signal value exceeding the second threshold (see the touch signal value outlined in fig. 4 b) exists in the first distribution data, it is considered that the user performs the pressing operation subjectively, and the function of the pressure-sensitive key can be triggered in response to the user requirement.
Example 2, in the process that the pressure-sensitive key is continuously stressed and the sensed pressure value is maintained to be greater than the first threshold value, the electronic device may also perform the verification step in example 1; moreover, because the pressure-sensitive keys are stressed stably in the process, in order to reduce the power consumption required in the verification process, the acquisition frequency of the distribution data can be set to a reasonable value, for example: every 5 s.
Example 3, when the pressure-sensitive key senses that the stress is reduced and reaches a first threshold value, the electronic device acquires first distribution data of the touch signal in the target area; if the touch signal value exceeding the second threshold value does not exist in the first distribution data (see fig. 4a), it indicates that the finger of the user has left the touch screen, and it can be confirmed that the finger has released the pressure-sensitive key. Although the pressure of the pressure-sensitive key is not recovered, the pressure is not caused by the pressing of the hand, but the resistance of the pressure-sensitive key is changed due to the influence of high temperature, so that the change caused by the high temperature after the finger is taken off cannot be recovered quickly, and further the problem that the release of the pressure-sensitive key is delayed to continue triggering the key function is caused. On the contrary, if the touch signal value exceeding the second threshold (see the touch signal value circled in fig. 4 b) exists in the first distribution data, it indicates that the finger of the user still attaches to the touch screen, and further indicates that the user does not loose his hand in the process, and the function of the pressure-sensitive key can be triggered in response to the pressing event.
Further, after giving up responding to the pressing event, example 3 may further clear the pressure value sensed by the pressure-sensitive key within a preset time period, where the preset time period includes a time period of a preset duration after the time point of giving up responding to the pressing event (i.e., the pressure value corresponding to the line segment after the intersection of the line ① and the line ④ when the pressure value in the release line ① decreases to the key pressure threshold), so that the pressure value rebounds due to subsequent high temperature and triggers the pressing event again (see the line ① in fig. 3) to affect the key function, thereby achieving the purpose of further solving the problem of delayed release of the key function and ensuring the accuracy and flexibility of the key function.
The embodiment of the present specification shows a specific implementation manner of the above step 204 and step 206. Of course, it should be understood that step 204 and step 206 may also be implemented in other ways, and the embodiment of the present application is not limited thereto.
Therefore, in the embodiment of the present specification, when a user triggers a pressing event, it is determined whether a touch signal value exceeding a second threshold exists in a target area corresponding to a position of a pressure-sensitive key on a touch screen, so as to introduce a touch signal to verify the pressing event, thereby avoiding a problem of a key function false response or a response delay.
Fig. 5 is a schematic flowchart of a key response method according to another embodiment of the present invention, which may be executed by an electronic device, and referring to fig. 5, the method may specifically include the following steps:
step 502, when detecting that the pressure value is smaller than the first threshold value, determining second distribution data of the touch signal in the target area;
step 504, judging whether a touch signal value exceeding a second threshold exists in the second distribution data;
if yes, go to step 506; if not, go to step 508;
step 506, responding to the pressing event to trigger the key function.
Step 508, forgoing responding to the press event to refuse to trigger the key function.
With reference to fig. 3, the steps 502 to 508 may specifically be exemplified as:
when the stress sensed by the pressure-sensitive keys is reduced and is lower than a first threshold value, the pressure-sensitive keys stop reporting key events, and the electronic equipment synchronously acquires second distribution data of the touch signals in the target area; if the touch signal value exceeding the second threshold exists in the second distribution data, the finger of the user is considered to be pressed on the touch screen, and then it can be determined that the key event is not caused by the fact that the user stops pressing operation subjectively but caused by the fact that the user moves the finger unintentionally and the stress of the pressure-sensitive key is reduced, so that in order to avoid the problem that the key function response is interrupted due to touch interruption, the electronic equipment continues to respond to the pressing event to maintain the function of triggering the pressure-sensitive key. On the contrary, if the touch signal value exceeding the second threshold does not exist in the second distribution data, the touch signal value is considered to be caused by the fact that the user subjectively stops pressing operation, and then the response to the pressing event is given up so as to respond to the user requirement and stop triggering the function of the pressure-sensitive key.
The embodiment of this specification shows a specific implementation manner of the above-mentioned step 502 to step 508. Of course, it should be understood that steps 502 to 508 may also be implemented in other ways, and this is not limited by this embodiment of the application.
As can be seen, in the embodiment of the present specification, when the pressure value sensed by the pressure-sensitive key is smaller than the first threshold, the touch signal on the touch screen is introduced to verify the pressing event, so that when the condition of touch interruption caused by the fact that the user moves the finger unintentionally is verified, the pressing event is continuously responded to maintain the function of triggering the pressure-sensitive key, and the problem of key function response interruption caused by touch interruption is avoided.
In addition, for simplicity of explanation, the above-described method embodiments are described as a series of acts or combinations, but it should be understood by those skilled in the art that the present invention is not limited by the order of acts or steps described, as some steps may be performed in other orders or simultaneously according to the present invention. Furthermore, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and referring to fig. 6, the electronic device may specifically include: an obtaining module 601, a first determining module 602, and a first processing module 603, wherein:
the obtaining module 601 is configured to obtain a pressure value sensed by a pressure-sensitive key of the electronic device;
a first determining module 602, configured to determine first distribution data of a touch signal in a target area of a touch screen of the electronic device when it is detected that the pressure value is greater than or equal to a first threshold, where the first threshold is a minimum pressure value required for triggering a pressing event, and the target area corresponds to a location of the pressure-sensitive key;
the first processing module 603 is configured to abandon the response to the pressing event if the touch signal value exceeding the second threshold does not exist in the first distribution data.
Optionally, the electronic device further includes:
the clearing module is used for clearing the pressure value sensed by the pressure-sensitive key within a preset time period;
wherein the preset time period comprises a time period of a preset duration after the time of abandoning the response to the pressing event.
Optionally, the first processing module 603 is further configured to:
and responding to a pressing event if the touch signal value exceeding the second threshold exists in the first distribution data.
Optionally, the electronic device further includes:
the second determining module is used for determining second distribution data of the touch signals in the target area when the pressure value is detected to be smaller than the first threshold value;
the second processing module is used for responding to a pressing event if the touch signal value exceeding the second threshold exists in the second distribution data; otherwise, the response to the press event is discarded.
Optionally, when the touch screen is a capacitive touch screen, the touch signal is a capacitive signal; or, when the touch screen is a resistance-type touch screen, the touch signal is a resistance signal.
Optionally, the touch screen is a curved touch screen, and the target area includes an edge area of the curved touch screen within the preset range of the pressure key.
Optionally, the pressure-sensitive key is a resistance-type pressure-sensitive key.
The electronic device provided in the embodiment of the present invention can implement each process implemented by the electronic device in the method embodiments of fig. 2 to fig. 5, and is not described herein again to avoid repetition. In the embodiment of the description, when a user triggers a pressing event, whether a touch signal value exceeding a second threshold value exists in a target area corresponding to the position of a pressure-sensitive key in a touch screen is judged, so that a touch signal is introduced to verify the pressing event, and the problem of abnormal key function response is avoided.
In addition, as for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to part of the description of the method embodiment. Further, it should be noted that, among the respective components of the apparatus of the present invention, the components thereof are logically divided according to the functions to be realized, but the present invention is not limited thereto, and the respective components may be newly divided or combined as necessary.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device for implementing various embodiments of the present invention, and referring to fig. 7, the electronic device 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 1 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The radio frequency unit 101 is used for acquiring a pressure value sensed by a pressure-sensitive key of the electronic equipment;
the processor 110 is configured to determine first distribution data of a touch signal in a target area of a touch screen of the electronic device when it is detected that the pressure value is greater than or equal to a first threshold value, where the first threshold value is a minimum pressure value required for triggering a pressing event, and the target area corresponds to a position of the pressure-sensitive key;
and if the touch signal value exceeding a second threshold value does not exist in the first distribution data, giving up responding to the pressing event.
As can be seen, in the embodiments of the present description, when a user triggers a pressing event, it is determined whether a touch signal value exceeding a second threshold exists in a target area corresponding to a position of a pressure-sensitive key on a touch screen, so as to introduce a touch signal to verify the pressing event, thereby avoiding a problem of abnormal key function response.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 102, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the electronic apparatus 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The electronic device 100 also includes at least one sensor 105, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or the backlight when the electronic device 100 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 7, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the electronic device, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the electronic apparatus 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 having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 100 or may be used to transmit data between the electronic apparatus 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the electronic device. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The electronic device 100 may further include a power source 111 (such as a battery) for supplying power to each component, and preferably, the power source 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 100 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 110, a memory 109, and a computer program stored in the memory 109 and capable of running on the processor 110, where the computer program, when executed by the processor 110, implements each process of the above-mentioned embodiment of the key function processing method, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned key function processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A key response method is applied to electronic equipment and is characterized by comprising the following steps:
acquiring a pressure value sensed by a pressure-sensitive key of the electronic equipment;
when the pressure value is detected to be larger than or equal to a first threshold value, determining first distribution data of a touch signal in a target area of a touch screen of the electronic equipment, wherein the first threshold value is the lowest pressure value required by triggering a pressing event, and the target area corresponds to the position of the pressure-sensitive key;
and if the touch signal value exceeding a second threshold value does not exist in the first distribution data, giving up responding to the pressing event.
2. The method of claim 1, after foregoing responding to a compression event, further comprising:
clearing a pressure value sensed by the pressure-sensitive key within a preset time period;
wherein the preset time period comprises a time period of a preset duration after the time of giving up responding to the pressing event.
3. The method of claim 1,
and responding to a pressing event if the touch signal value exceeding the second threshold exists in the first distribution data.
4. The method of any of claims 1 to 3, further comprising, after detecting that the pressure value is greater than or equal to a first threshold value:
when the pressure value is detected to be smaller than the first threshold value, determining second distribution data of the touch signal in the target area;
responding to a pressing event if the touch signal value exceeding the second threshold exists in the second distribution data; otherwise, the response to the press event is discarded.
5. The method of claim 1, wherein the touch screen is a curved touch screen, and the target area comprises an edge area of the curved touch screen within a preset range of the pressure-sensitive keys.
6. An electronic device, comprising:
the acquisition module is used for acquiring a pressure value sensed by a pressure-sensitive key of the electronic equipment;
the first determining module is configured to determine first distribution data of a touch signal in a target area of a touch screen of the electronic device when detecting that the pressure value is greater than or equal to a first threshold, where the first threshold is a minimum pressure value required for triggering a pressing event, and the target area corresponds to a position of the pressure-sensitive key;
the first processing module is used for giving up the response to the pressing event if the touch signal value exceeding the second threshold value does not exist in the first distribution data.
7. The apparatus of claim 6, further comprising:
the clearing module is used for clearing the pressure value sensed by the pressure-sensitive key within a preset time period;
wherein the preset time period comprises a time period of a preset duration after the time of abandoning the response to the pressing event.
8. The apparatus of claim 6, further comprising:
the second determining module is used for determining second distribution data of the touch signals in the target area when the pressure value is detected to be smaller than the first threshold value;
the second processing module is used for responding to a pressing event if the touch signal value exceeding the second threshold exists in the second distribution data; otherwise, the response to the press event is discarded.
9. The device of claim 6, wherein the touch screen is a curved touch screen, and the target area comprises an edge area of the curved touch screen within a preset range of the pressure-sensitive keys.
10. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the method according to any one of claims 1 to 5.
CN201911010766.7A 2019-10-23 2019-10-23 Key response method and electronic equipment Pending CN110794989A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911010766.7A CN110794989A (en) 2019-10-23 2019-10-23 Key response method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911010766.7A CN110794989A (en) 2019-10-23 2019-10-23 Key response method and electronic equipment

Publications (1)

Publication Number Publication Date
CN110794989A true CN110794989A (en) 2020-02-14

Family

ID=69440937

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911010766.7A Pending CN110794989A (en) 2019-10-23 2019-10-23 Key response method and electronic equipment

Country Status (1)

Country Link
CN (1) CN110794989A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111970593A (en) * 2020-07-27 2020-11-20 歌尔科技有限公司 Wireless earphone control method and device and wireless earphone
CN112698594A (en) * 2020-12-14 2021-04-23 北京小米移动软件有限公司 Equipment control method and device
CN112803937A (en) * 2020-12-25 2021-05-14 东风汽车集团有限公司 Touch control switch and touch control method and device thereof
CN113076029A (en) * 2021-03-31 2021-07-06 安徽华米信息科技有限公司 Wearable device and control method thereof
CN113317970A (en) * 2021-04-19 2021-08-31 未来穿戴技术有限公司 Massage control method, massage instrument and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183320A (en) * 2015-09-09 2015-12-23 魅族科技(中国)有限公司 Terminal device and button operation method thereof
CN105278752A (en) * 2015-10-30 2016-01-27 努比亚技术有限公司 Touch operation device and method
CN106325698A (en) * 2015-06-30 2017-01-11 小米科技有限责任公司 Touch response method and mobile terminal
CN106354321A (en) * 2016-09-05 2017-01-25 芯海科技(深圳)股份有限公司 Pressure-sensing button identification method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106325698A (en) * 2015-06-30 2017-01-11 小米科技有限责任公司 Touch response method and mobile terminal
CN105183320A (en) * 2015-09-09 2015-12-23 魅族科技(中国)有限公司 Terminal device and button operation method thereof
CN105278752A (en) * 2015-10-30 2016-01-27 努比亚技术有限公司 Touch operation device and method
CN106354321A (en) * 2016-09-05 2017-01-25 芯海科技(深圳)股份有限公司 Pressure-sensing button identification method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111970593A (en) * 2020-07-27 2020-11-20 歌尔科技有限公司 Wireless earphone control method and device and wireless earphone
CN112698594A (en) * 2020-12-14 2021-04-23 北京小米移动软件有限公司 Equipment control method and device
CN112803937A (en) * 2020-12-25 2021-05-14 东风汽车集团有限公司 Touch control switch and touch control method and device thereof
CN113076029A (en) * 2021-03-31 2021-07-06 安徽华米信息科技有限公司 Wearable device and control method thereof
CN113076029B (en) * 2021-03-31 2023-01-24 安徽华米信息科技有限公司 Wearable device and control method thereof
CN113317970A (en) * 2021-04-19 2021-08-31 未来穿戴技术有限公司 Massage control method, massage instrument and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN108459797B (en) Control method of folding screen and mobile terminal
CN109343759B (en) Screen-turning display control method and terminal
CN110794989A (en) Key response method and electronic equipment
CN110531915B (en) Screen operation method and terminal equipment
CN109343788B (en) Operation control method of mobile terminal and mobile terminal
CN108881617B (en) Display switching method and mobile terminal
CN108008859B (en) Screen control method and mobile terminal
CN110471559B (en) False touch prevention method and mobile terminal
CN111459330B (en) Electronic equipment and pressure key operation method
CN108958593B (en) Method for determining communication object and mobile terminal
CN108388400B (en) Operation processing method and mobile terminal
CN109814799A (en) Screen response control mehtod and terminal device
CN111464428A (en) Audio processing method, server, electronic device, and computer-readable storage medium
CN111131607A (en) Information sharing method, electronic equipment and computer readable storage medium
CN108021315B (en) Control method and mobile terminal
CN111352566B (en) Parameter adjusting method and electronic equipment
CN110471808B (en) Pressure key detection method and device and mobile terminal
CN111176529B (en) Key display method and electronic equipment
CN111526248B (en) Audio output mode switching method and electronic equipment
CN110955365B (en) Application identifier display method and electronic equipment
CN109240531B (en) Touch data sampling compensation method and device, mobile terminal and storage medium
CN109491572B (en) Screen capturing method of mobile terminal and mobile terminal
CN108897467B (en) Display control method and terminal equipment
CN108920090B (en) Control method of mobile terminal and mobile terminal
CN111443968A (en) Screenshot method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination