CN114237420B - Touch screen control method and device, electronic equipment and storage medium - Google Patents

Touch screen control method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114237420B
CN114237420B CN202111518326.XA CN202111518326A CN114237420B CN 114237420 B CN114237420 B CN 114237420B CN 202111518326 A CN202111518326 A CN 202111518326A CN 114237420 B CN114237420 B CN 114237420B
Authority
CN
China
Prior art keywords
detected
lifting
reporting
touch screen
event
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.)
Active
Application number
CN202111518326.XA
Other languages
Chinese (zh)
Other versions
CN114237420A (en
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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology 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 Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN202111518326.XA priority Critical patent/CN114237420B/en
Publication of CN114237420A publication Critical patent/CN114237420A/en
Application granted granted Critical
Publication of CN114237420B publication Critical patent/CN114237420B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • 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
    • 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/044Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means
    • 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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials

Abstract

The disclosure provides a touch screen control method and device, electronic equipment and a storage medium, and relates to the technical field of touch screens. The method comprises the following steps: after detecting a first pressing operation on the touch screen, if the first lifting operation on the touch screen is detected, reporting a first lifting event; when the first lifting event is reported, judging whether a second pressing operation is detected; if the second pressing operation is not detected, continuing to report the first lifting event, and returning to the step of judging whether the second pressing operation is detected or not until the number of times of reporting the first lifting event reaches the preset number of times. If a second press operation is detected, reporting of the first lift-off event is stopped. The present disclosure may avoid application response errors or no response.

Description

Touch screen control method and device, electronic equipment and storage medium
The disclosure is a divisional application of application number 202010373440.7, which is named as a touch screen control method and device, an electronic device and a storage medium, and the application number is 05-06 in 2020.
Technical Field
The disclosure relates to the technical field of touch screens, and in particular relates to a touch screen control method, a touch screen control device, electronic equipment and a computer readable storage medium.
Background
With the development of electronic devices, more and more electronic devices can perform man-machine interaction through a touch screen, and the touch screen endows the multimedia with brand-new aspects, so that the electronic device is very attractive full-new multimedia interaction equipment and is mainly applied to the fields of public information inquiry, industrial control, military command, electronic games, multimedia teaching and the like.
When a user performs touch operation on the touch screen, the touch screen can perform data interaction with the terminal processor, so that control of terminal equipment is realized. However, when the touch screen and the terminal processor interact with each other, data reading errors or hysteresis may occur, so that an application responds incorrectly or does not respond, and user experience is affected.
Disclosure of Invention
An object of the present disclosure is to provide a touch screen control method, a touch screen control apparatus, an electronic device, and a computer-readable storage medium, which further overcome to some extent the problem of application response errors or non-response when a user performs a touch operation through a touch screen due to limitations and drawbacks of the related art.
According to a first aspect of the present disclosure, there is provided a touch screen control method, including:
after a first pressing operation on the touch screen is detected, if a first lifting operation on the touch screen is detected, reporting a first lifting event;
judging whether a second pressing operation is detected or not when the first lifting event is reported;
if the second pressing operation is not detected, continuing to report the first lifting event, and returning to the step of judging whether the second pressing operation is detected or not until the number of times of reporting the first lifting event reaches a preset number of times;
and if the second pressing operation is detected, stopping reporting the first lifting event.
According to a second aspect of the present disclosure, there is provided a touch screen control apparatus including:
the touch screen comprises a lifting event reporting module, a first lifting event reporting module and a second lifting event reporting module, wherein the lifting event reporting module is used for reporting a first lifting event if the first lifting operation for the touch screen is detected after the first pressing operation for the touch screen is detected;
the judging module is used for judging whether a second pressing operation is detected or not when the first lifting event is reported;
the lifting event repeated reporting module is used for continuously reporting the first lifting event if the judging result of the judging module is that the second pressing operation is not detected, and returning to the judging module until the number of times of reporting the first lifting event reaches the preset number of times;
and the lifting event stopping reporting module is used for stopping reporting the first lifting event if the judging result of the judging module is that the second pressing operation is detected.
According to a third aspect of the present disclosure, there is provided an electronic device comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the method of touch screen control described above via execution of the executable instructions.
According to a fourth aspect of the present disclosure, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of touch screen control described above.
Exemplary embodiments of the present disclosure may have some or all of the following advantages:
in the touch screen control method provided by the example embodiment of the present disclosure, when the touch screen identifies the first lifting operation, the first lifting event of the preset times is reported, and compared with the case that the first lifting event is reported only once, the touch screen control method can prevent the terminal device from reading errors or losing the first lifting event. In the process of reporting the first lifting event, when the second pressing operation is detected, reporting of the first lifting event is stopped, so that the terminal equipment is ensured not to lose reading of the second lifting event, wherein the second lifting event is a lifting event corresponding to the second lifting operation after the second pressing operation. Meanwhile, the first lifting event is stopped from being reported, so that delay between continuous pressing and lifting caused by the fact that the first lifting event occupies a data transmission channel can be avoided, namely application response delay can be avoided, and user experience is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure. It will be apparent to those of ordinary skill in the art that the drawings in the following description are merely examples of the disclosure and that other drawings may be derived from them without undue effort.
FIG. 1 illustrates a schematic diagram of an electronic device suitable for use in implementing embodiments of the present disclosure;
FIG. 2 shows a schematic diagram of data interaction between a terminal processor and a touch screen;
FIG. 3 illustrates a flowchart of a touch screen control method of an embodiment of the present disclosure;
fig. 4 shows a schematic structural diagram of a touch screen control device according to an embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the present disclosure. One skilled in the relevant art will recognize, however, that the aspects of the disclosure may be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software or in one or more hardware modules or integrated circuits or in different networks and/or processor devices and/or microcontroller devices.
Referring to fig. 1, fig. 1 shows a schematic diagram of an electronic device suitable for use in implementing embodiments of the present disclosure. It should be noted that the electronic device 100 shown in fig. 1 is only an example, and should not impose any limitation on the functions and the application scope of the embodiments of the present disclosure.
As shown in fig. 1, the electronic device 100 may specifically include: processor 110, internal memory 121, external memory interface 122, universal serial bus (Universal Serial Bus, USB) interface 130, charge management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, display 170, and sensor module 180, among others. Wherein the sensor module 180 may include: a pressure sensor 1801, a touch sensor 1802, and the like.
It should be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor, a modem processor, a graphics processor, an image signal processor, a controller, a video codec, a digital signal processor, a baseband processor, a neural network processor, and/or the like. Wherein the different processing units may be separate devices or may be integrated in one or more processors. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. The memory may store instructions for implementing six modular functions: detection instructions, connection instructions, information management instructions, analysis instructions, data transfer instructions, and notification instructions, and are controlled to be executed by the processor 110. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory, avoiding repeated access, reducing the latency of the processor 110 and thus improving the efficiency of the system.
The pressure sensor 1801 is configured to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 1801 may be disposed on the display screen 170. The pressure sensor 1801 is of various kinds, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. When a force is applied to the pressure sensor 1801, the capacitance between the electrodes changes. The electronic device 100 may determine the strength of the pressure based on the change in capacitance. When a touch operation is applied to the display 170, the electronic apparatus 100 detects the touch operation intensity according to the pressure sensor 1801. The electronic apparatus 100 may also calculate the position of the touch from the detection signal of the pressure sensor 1801. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. For example: and executing an instruction for checking the short message when the touch operation with the touch operation intensity smaller than the first pressure threshold acts on the short message application icon. And executing an instruction for newly creating the short message when the touch operation with the touch operation intensity being greater than or equal to the first pressure threshold acts on the short message application icon.
The touch sensor 1802, also referred to as a "touch device". A touch sensor 1802 may be provided to the display 170, the touch sensor 1802 being configured to detect a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 170. In other embodiments, touch sensor 1802 may also be located on a surface of electronic device 100 in a different location than display 170.
A touch screen may be called a "touch screen" or a "touch panel", and is an inductive liquid crystal display device that can receive input signals such as contacts, and thus, the touch screen is an input device. When the graphic buttons on the screen are contacted, the touch feedback system on the screen can drive various connecting devices according to the pre-programmed programs, can be used for replacing a mechanical button panel and can produce vivid video and audio effects by virtue of the liquid crystal display picture.
The touch screen may include: a touch detection section and a touch screen controller, the touch detection section including the pressure sensor 1801 and the touch sensor 1802 described above. A touch detection part may be installed in front of the display screen 170 for detecting a touch operation of a user. The touch screen controller may receive touch information from the touch detection part, process the touch information, and then transmit the processed touch information to the central processor of the terminal processor, and may also receive and execute a command transmitted from the central processor. Referring to fig. 2, fig. 2 shows a schematic diagram of data interaction between a terminal processor and a touch screen. The touch screen system triggers an interrupt signal through an INT pin to inform a terminal processor, and the terminal processor can acquire data in the touch screen system through I2C (Inter-Integrated Circuit) or SPI (Serial Peripheral Interface ).
Specifically, when a user's finger performs a touch operation on the touch screen surface, the touch screen may determine the type of the touch operation, for example, the touch operation may include: the touch screen can report the corresponding events to the terminal processor, and the terminal processor can perform the corresponding operations according to different events.
When the touch screen and the terminal processor perform data interaction, only one lifting event is reported. In this way, after the terminal processor reads the pressing event, if the reading lifting event is wrong or lagged, the phenomenon that the application response is long pressing or no response is caused, and the user experience is poor.
In order to solve the above problems, the disclosure provides a touch screen control method, a touch screen control device, an electronic device, and a computer readable storage medium, which can avoid an application response error or no response, and improve user experience.
Referring to fig. 3, fig. 3 shows a flowchart of a touch screen control method according to an embodiment of the disclosure, which may include the steps of:
in step S310, after the first pressing operation on the touch screen is detected, if the first lifting operation on the touch screen is detected, a first lifting event is reported.
Step S320, when the first lifting event is reported, it is determined whether the second pressing operation is detected. If the second pressing operation is not detected, step S330 is performed; if the second pressing operation is detected, step S340 is performed.
Step S330, the first lifting event is continuously reported, and whether the number of times of reporting the first lifting event reaches the preset number of times is judged. If the preset number of times is not reached, the process returns to step S320. If the preset times are reached, the process is ended.
Step S340, the reporting of the first lift event is stopped.
In the touch screen control method disclosed by the embodiment of the application, when the touch screen identifies the first lifting operation, the first lifting event with preset times is reported, and compared with the case that the first lifting event is reported only once, the touch screen control method can prevent the terminal equipment from reading errors or losing the first lifting event. In the process of reporting the first lifting event, when the second pressing operation is detected, reporting of the first lifting event is stopped, so that the terminal equipment is ensured not to lose reading of the second lifting event, wherein the second lifting event is a lifting event corresponding to the second lifting operation after the second pressing operation. Meanwhile, the first lifting event is stopped from being reported, so that delay between continuous pressing and lifting caused by the fact that the first lifting event occupies a data transmission channel can be avoided, namely application response delay can be avoided, and user experience is improved.
The touch screen control method of the embodiment of the present disclosure is described in more detail below.
In step S310, after detecting the first pressing operation on the touch screen, if detecting the first lifting operation on the touch screen, a first lifting event is reported.
In the embodiment of the present disclosure, when a user performs a touch operation on a touch screen, the method may include: click operations, slide operations, and the like. And the clicking operation may specifically include: the pressing operation and the lifting operation, that is, the user performs the pressing operation first and then the lifting operation when performing the clicking operation, and the time intervals between the lifting operation and the pressing operation are generally short. Wherein the action of the user on the touch screen is defined as an operation.
When the user performs one-click operation, the touch screen can sequentially detect a first pressing operation and a first lifting operation, and report a first pressing event corresponding to the first pressing operation and a first lifting event corresponding to the first lifting operation to the terminal processor, and the terminal processor executes corresponding operations according to the first pressing event and the first lifting event. For example, the terminal processor may open an application, edit information, etc. according to the event described above. The action reported for the operation is defined as an event.
Wherein, the touch-sensitive screen includes: resistive touch screens, capacitive touch screens, infrared touch screens, and surface acoustic wave touch screens, different types of touch screens, the manner in which they detect the first pressing operation and the first lifting operation may be different. For example, for a capacitive touch screen, whether the first press operation is detected may be determined based on the capacitance data in the touch screen and the reference capacitance data, or whether the first lift operation is detected may be determined based on the capacitance data in the touch screen and the reference capacitance data. The reference capacitance data is capacitance data when no touch operation is detected. Since the capacitance data in the touch screen may be different at different times, in the embodiments of the present disclosure, the capacitance data in the touch screen refers to the capacitance data when the corresponding steps are performed.
For another example, with a resistive touch screen, it may be determined whether the first pressing operation or the first lifting operation is detected based on resistance data in the touch screen and reference resistance data. The reference resistance data is resistance data when no touch operation is detected. The present disclosure is illustrated with capacitive touch screens as an example.
In one implementation of the present disclosure, it may be determined that a first press operation is detected when capacitance data in the touch screen is converted from reference capacitance data to first capacitance data. The reference capacitance data in each region of the touch screen may be the same or different. When the capacitance data of the contact area changes when the user performs the pressing operation, it may be determined that the first pressing operation is detected when the capacitance data of any one area is detected to be different from the reference capacitance data corresponding to the area. The first capacitance data refers to capacitance data in which the capacitance data of any one area is not equal to the reference capacitance data corresponding to the area in all areas of the touch screen.
Of course, the contact coordinates and the contact area may also be determined from the capacitance data in the touch screen and the reference capacitance data. Specifically, in the same manner as the above-described determination of the first pressing operation, when it is detected that the capacitance data of any one region is different from the reference capacitance data corresponding to that region, the contact coordinates and the contact area may be determined according to the change condition of the capacitance data of that region. The touch screen may further include a memory, and the memory may store information such as a pressed-up state of the user's finger, corresponding contact coordinates, and a contact area. Wherein different fingers may correspond to different IDs.
Corresponding to the detection mode of the first pressing operation, when the capacitance data in the touch screen is converted from the second capacitance data to the reference capacitance data, it is determined that the first lifting operation is detected. That is, it may be determined that the first lifting operation is detected in the case where all fingers of the user are not contacted to the touch screen. The second capacitance data refers to capacitance data in which the capacitance data of any one area is not equal to the reference capacitance data corresponding to the area in all areas of the touch screen.
The method and the device can report the first pressing event for a plurality of times, and avoid failure of the terminal processor to read the first pressing event, so that the application does not respond. Here, the number of times the first pressing event is reported may be 3 times, 4 times, etc., and is not limited herein. Since the first lift-off event is reported after the first press-down event is reported. Therefore, in order to avoid the problem of delay in reporting the first lift event due to an excessive number of times of reporting the first push event, the number of times of reporting the first push event may be not more than 5.
The user may perform a sliding operation between the pressing operation and the lifting operation. If a sliding operation is detected, a sliding event is reported. Of course, the event reporting the sliding event is located between the reporting of the first pressing event and the first lifting event.
As described above, when the reference capacitance data is included in the changed capacitance data, the first pressing operation or the first lifting operation may be detected. Thus, in one implementation of the present disclosure, a method of detecting a sliding operation may be: when the capacitance data in the touch screen is changed and the changed capacitance data is not included in the reference capacitance data, it is determined that the sliding operation is detected.
For example, with the first pressing operation and the first lifting operation described above, when the user does not perform the sliding operation, the first capacitance data may be the same as the second capacitance data. When a user performs a sliding operation, the capacitance data in the touch screen may be continuously changed, and during the sliding process, the initial first capacitance data may be converted into final second capacitance data. The first capacitance data and the second capacitance data may be the same in the partial region, and the capacitance data in the partial region may be different.
In step S320, when the first lift-off event is reported, it is determined whether the second pressing operation is detected.
It should be noted that, if the first lifting event is reported once, the terminal processor may fail to read the first lifting event, so that the terminal processor only reads the first pressing event, but does not read the first lifting event, and the application responds the clicking operation as a long-press operation. Causing the application to respond to the error, affecting the user experience.
Thus, similar to the first press event, the present disclosure may report the first lift event multiple times, which may be a preset number of times, for example, may be 2 times, 3 times, etc. When the first lifting event is reported, the user may or may not perform the next pressing operation. Here, the corresponding operation may be determined according to the execution situation of the user. Specifically, if the second pressing operation is not detected, step S330 is performed; if the second pressing operation is detected, step S340 is performed. Wherein the second pressing operation represents a further pressing operation after the first pressing operation.
In step S330, the first lifting event is continuously reported, and it is determined whether the number of times of reporting the first lifting event reaches a preset number of times. If the preset number of times is not reached, the process returns to step S320. If the preset times are reached, the process is ended.
It will be appreciated that the first lift-off event may continue to be reported a preset number of times when the second press operation is not detected. In one implementation of the present disclosure, the first lift-off event may be periodically reported. That is, the touch screen may report the first lift event to the terminal processor according to the point rate period. The reporting rate period may be 100HZ, 200HZ, etc., and when the reporting rate period is 100HZ, the corresponding time period is 10ms, that is, the first lifting event is reported every 100 ms.
When the first lifting event is reported, if the number of times of reporting the first lifting event does not reach the preset number of times, the process may return to step S320 to execute the loop process.
In step S340, reporting of the first lift event is stopped.
And in the process of reporting the first lifting event, if a new pressing operation occurs, stopping reporting the first lifting event and reporting a plurality of second pressing events. In this way, the terminal processor will not lag in reading the second press event. When the second lifting operation is detected later, similar to the first lifting operation, a second lifting event with preset times can be reported, and the terminal processor can be ensured not to lose reading of the second lifting event. Meanwhile, the first lifting event is stopped from being reported, the occupied data transmission channel can be avoided, the delay between continuous pressing and lifting cannot be caused, and the user experience is improved.
For example, assume that the number of times of reporting the pressing event and the number of times of reporting the lifting event are 3, down1 represents the first pressing event, up1 represents the first lifting event, down2 represents the second pressing event, and Up2 represents the second lifting event.
In the process of reporting Up1 for 3 times, if no second pressing operation is detected, the reported event may be represented as follows:
Down1 Down1 Down1 Up1 Up1 Up1;Down2 Down2 Down2 Up2 Up2Up2。
if during reporting Up1 at time 2, a second pressing operation is detected, the reported event may be represented as follows:
Down1 Down1 Down1 Up1 Up1;Down2 Down2 Down2 Up2 Up2 Up2。
if during reporting Up1, a second pressing operation is detected, the reported event may be represented as follows:
Down1 Down1 Down1 Up1;Down2 Down2 Down2 Up2 Up2 Up2。
it can be seen that the time when the user performs the second pressing operation is different, and the number of events reported by the touch screen is also different. Therefore, the first lifting event can be reported as many times as possible while the reporting of the second pressing event is not influenced, and the situation that the application cannot read the first lifting event and responds to long pressing or no response can be avoided, so that the user experience can be improved.
It should be noted that although the steps of the methods in the present disclosure are depicted in the accompanying drawings in a particular order, this does not require or imply that the steps must be performed in that particular order, or that all illustrated steps be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform, etc.
Further, in this example embodiment, there is also provided a touch screen control apparatus 400, as shown in fig. 4, including:
a lift-up event reporting module 410, configured to report a first lift-up event if a first lift-up operation for the touch screen is detected after the first press operation for the touch screen is detected;
a judging module 420, configured to judge whether a second pressing operation is detected when the first lifting event is reported;
the lifting event repeated reporting module 430 is configured to, if the determination result of the determining module is that the second pressing operation is not detected, continue reporting the first lifting event, and return to the determining module until the number of times of reporting the first lifting event reaches a preset number of times;
the lift-up event stopping reporting module 440 is configured to stop reporting the first lift-up event if the determination result of the determining module is that the second pressing operation is detected.
In an exemplary embodiment of the present disclosure, the touch screen control apparatus further includes:
the pressing operation detection module is used for determining whether a first pressing operation is detected according to the capacitance data in the touch screen and reference capacitance data, wherein the reference capacitance data is the capacitance data when the touch operation is not detected;
the pressing operation detection module is specifically configured to determine that the first pressing operation is detected when the capacitance data in the touch screen is converted from the reference capacitance data to the first capacitance data. Wherein the first capacitance data is not equal to the reference capacitance data.
In an exemplary embodiment of the present disclosure, the touch screen control apparatus further includes:
the lifting operation detection module is used for determining whether the first pressing operation or the first lifting operation is detected according to the capacitance data in the touch screen and reference capacitance data, wherein the reference capacitance data is the capacitance data when the touch operation is not detected.
The lifting operation detection module is specifically used for determining that the first lifting operation is detected when the capacitance data in the touch screen is converted from the second capacitance data to the reference capacitance data; wherein the second capacitance data is not equal to the reference capacitance data.
In an exemplary embodiment of the present disclosure, the touch screen control apparatus further includes:
and the contact point coordinate and contact point contact area determining module is used for determining the contact point coordinate and the contact point contact area according to the capacitance data and the reference capacitance data in the touch screen.
In an exemplary embodiment of the present disclosure, the touch screen control apparatus further includes:
and the sliding event reporting module is used for reporting the sliding event if the sliding operation is detected.
In an exemplary embodiment of the present disclosure, the touch screen control apparatus further includes:
and the sliding operation detection module is used for determining that the sliding operation is detected when the capacitance data in the touch screen changes and the changed capacitance data does not contain the reference capacitance data.
In an exemplary embodiment of the present disclosure, the lift-off event repeated reporting module is specifically configured to periodically report the first lift-off event.
Specific details of each module or unit in the above apparatus have been described in the corresponding method, and thus are not described herein.
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of any of the above.
The computer readable storage medium shown in the present disclosure may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, radio frequency, and the like, or any suitable combination of the foregoing.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (9)

1. A touch screen control method, comprising:
after a first pressing operation on the touch screen is detected, if a first lifting operation on the touch screen is detected, reporting a first lifting event;
judging whether a second pressing operation is detected or not when the first lifting event is reported;
if the second pressing operation is not detected, continuing to report the first lifting event according to the point reporting rate period, and returning to the step of judging whether the second pressing operation is detected or not until the number of times of reporting the first lifting event reaches the preset lifting reporting number of times;
and if the second pressing operation is detected, stopping reporting the first lifting event, and reporting the second pressing event of the preset pressing reporting times.
2. The method of claim 1, wherein prior to detecting the first pressing operation, the method further comprises:
determining whether the first pressing operation is detected according to the capacitance data in the touch screen and reference capacitance data, wherein the reference capacitance data is the capacitance data when the touch operation is not detected;
the method of determining that the first pressing operation is detected includes:
when the capacitance data in the touch screen is converted from the reference capacitance data to first capacitance data, it is determined that the first pressing operation is detected, and the first capacitance data is not equal to the reference capacitance data.
3. The method of claim 2, wherein prior to detecting the first lifting operation, the method further comprises:
determining whether the first lifting operation is detected according to the capacitance data in the touch screen and the reference capacitance data;
a method of determining that the first lift operation is detected, comprising:
determining that the first lift-up operation is detected when capacitance data in the touch screen is converted from second capacitance data to the reference capacitance data; the second capacitance data is not equal to the reference capacitance data.
4. The method according to claim 2, wherein the method further comprises:
and determining the contact point coordinates and the contact point contact area according to the capacitance data in the touch screen and the reference capacitance data.
5. The method of claim 2, wherein after detecting the first pressing operation, before detecting the first lifting operation, the method further comprises:
and if the sliding operation is detected, reporting a sliding event.
6. The method of claim 5, wherein determining that the sliding operation is detected comprises:
and when the capacitance data in the touch screen changes and the reference capacitance data is not contained in the changed capacitance data, determining that the sliding operation is detected.
7. A touch screen control device, comprising:
the touch screen comprises a lifting event reporting module, a first lifting event reporting module and a second lifting event reporting module, wherein the lifting event reporting module is used for reporting a first lifting event if the first lifting operation for the touch screen is detected after the first pressing operation for the touch screen is detected;
the judging module is used for judging whether a second pressing operation is detected or not when the first lifting event is reported;
the lifting event repeated reporting module is used for continuously reporting the first lifting event according to the reporting rate period if the judging result of the judging module is that the second pressing operation is not detected, and returning to the judging module until the number of times of reporting the first lifting event reaches the preset lifting reporting number;
and the lifting event stopping reporting module is used for stopping reporting the first lifting event and reporting the second pressing event of the preset pressing reporting times if the judging result of the judging module is that the second pressing operation is detected.
8. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the method of any one of claims 1-6 via execution of the executable instructions.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the method of any one of claims 1-6.
CN202111518326.XA 2020-05-06 2020-05-06 Touch screen control method and device, electronic equipment and storage medium Active CN114237420B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111518326.XA CN114237420B (en) 2020-05-06 2020-05-06 Touch screen control method and device, electronic equipment and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111518326.XA CN114237420B (en) 2020-05-06 2020-05-06 Touch screen control method and device, electronic equipment and storage medium
CN202010373440.7A CN111625174B (en) 2020-05-06 2020-05-06 Touch screen control method and device, electronic equipment and storage medium

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN202010373440.7A Division CN111625174B (en) 2020-05-06 2020-05-06 Touch screen control method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114237420A CN114237420A (en) 2022-03-25
CN114237420B true CN114237420B (en) 2023-08-15

Family

ID=72269839

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202111518326.XA Active CN114237420B (en) 2020-05-06 2020-05-06 Touch screen control method and device, electronic equipment and storage medium
CN202010373440.7A Active CN111625174B (en) 2020-05-06 2020-05-06 Touch screen control method and device, electronic equipment and storage medium

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202010373440.7A Active CN111625174B (en) 2020-05-06 2020-05-06 Touch screen control method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (2) CN114237420B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114413441B (en) * 2022-01-04 2023-05-12 珠海格力电器股份有限公司 Key control method, key control device, computer equipment, storage medium and program product
CN115718555A (en) * 2022-11-16 2023-02-28 河南翔宇医疗设备股份有限公司 Control method of man-machine interaction and related assembly

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007052498A (en) * 2005-08-15 2007-03-01 Sony Corp Mouse device and allocation function change method
CN102346592A (en) * 2010-07-26 2012-02-08 苹果公司 Touch input transitions
CN102999239A (en) * 2012-12-06 2013-03-27 广东欧珀移动通信有限公司 Method for handling error response of capacitive touch screen
CN203366247U (en) * 2013-06-28 2013-12-25 马洪生 Multifunctional mouse with reused keys
CN104281295A (en) * 2013-07-01 2015-01-14 中兴通讯股份有限公司 Method and system for preventing false slide triggering on touch screen and electronic device
CN107735749A (en) * 2015-09-22 2018-02-23 意美森公司 Tactile based on pressure

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100526609B1 (en) * 2003-07-09 2005-11-08 삼성전자주식회사 Data transmission system, data transmission method, data processing device and pointer device
JP5280800B2 (en) * 2008-10-29 2013-09-04 京セラ株式会社 Portable device, operation detection method, and operation detection program
CN103677452B (en) * 2012-08-30 2017-05-24 华为终端有限公司 Capacitive touch screen calibration method and capacitive touch device
US11366586B2 (en) * 2016-11-18 2022-06-21 Google Llc Streaming application environment with recovery of lost or delayed input events
CN106681625A (en) * 2016-11-29 2017-05-17 珠海市魅族科技有限公司 Method and device for preventing misoperations
CN106502470A (en) * 2016-12-16 2017-03-15 广东欧珀移动通信有限公司 Prevent method, device and the terminal of touch key-press false triggering
CN107294522B (en) * 2017-07-05 2020-09-01 Oppo广东移动通信有限公司 Response method and device based on touch key, storage medium and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007052498A (en) * 2005-08-15 2007-03-01 Sony Corp Mouse device and allocation function change method
CN102346592A (en) * 2010-07-26 2012-02-08 苹果公司 Touch input transitions
CN102999239A (en) * 2012-12-06 2013-03-27 广东欧珀移动通信有限公司 Method for handling error response of capacitive touch screen
CN203366247U (en) * 2013-06-28 2013-12-25 马洪生 Multifunctional mouse with reused keys
CN104281295A (en) * 2013-07-01 2015-01-14 中兴通讯股份有限公司 Method and system for preventing false slide triggering on touch screen and electronic device
CN107735749A (en) * 2015-09-22 2018-02-23 意美森公司 Tactile based on pressure

Also Published As

Publication number Publication date
CN111625174B (en) 2022-01-04
CN111625174A (en) 2020-09-04
CN114237420A (en) 2022-03-25

Similar Documents

Publication Publication Date Title
CN103258171B (en) Prevent the method for mobile terminal touch screen error touch control, device and mobile terminal
CN114237420B (en) Touch screen control method and device, electronic equipment and storage medium
CN106125984B (en) A kind of the touch-control processing method and mobile terminal of mobile terminal
US20200133908A1 (en) Type-c interface controlling circuit, controlling method and mobile terminal
CN105183284A (en) Short message viewing method and user terminal
CN105786391A (en) Touch method and device as well as touch display equipment
CN102999291A (en) Method for waking up mobile terminal in standby state
CN104572322A (en) Method for operating terminal screen
CN103176670A (en) Touch display panel and driving method thereof
US20160026843A1 (en) Driving circuit, driving method, display apparatus and electronic apparatus
EP2955619A1 (en) Mobile terminal and application control method therefor
CN104572071A (en) Terminal
CN106502461B (en) Restore the method, device and mobile terminal of touch screen state before electrostatic resets
CN103376937A (en) Method for controlling noise processing circuit of touch panel and signal processing device
CN105022561A (en) Touch screen control apparatus and method and mobile terminal
CN104035702A (en) Method for preventing intelligent terminal operation error and intelligent terminal
CN104238794A (en) Method and terminal for responding to touch screen operation, and mobile terminal
CN104881174A (en) Method and device for dynamically adjusting sensitivity of touch screen
CN107402675A (en) A kind of response method of touch operation, device, storage medium and terminal
CN1323343C (en) Method for identifying single clicking action and controller
CN103620540A (en) Method for controlling device and touch device
CN105739886A (en) Video playing method and mobile terminal
CN107577404B (en) Information processing method and device and electronic equipment
CN105117157A (en) Corner mark switching method and terminal
CN105760104A (en) Message handling method and terminal

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
GR01 Patent grant
GR01 Patent grant