CN112925466B - Touch control method and device - Google Patents

Touch control method and device Download PDF

Info

Publication number
CN112925466B
CN112925466B CN201911242930.7A CN201911242930A CN112925466B CN 112925466 B CN112925466 B CN 112925466B CN 201911242930 A CN201911242930 A CN 201911242930A CN 112925466 B CN112925466 B CN 112925466B
Authority
CN
China
Prior art keywords
current
touch point
point coordinate
displacement
historical
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
CN201911242930.7A
Other languages
Chinese (zh)
Other versions
CN112925466A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201911242930.7A priority Critical patent/CN112925466B/en
Publication of CN112925466A publication Critical patent/CN112925466A/en
Application granted granted Critical
Publication of CN112925466B publication Critical patent/CN112925466B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/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/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/0418Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment

Abstract

The disclosure provides a touch control method and device. The method comprises the following steps: under the condition that the sliding screen operation is detected, current touch point coordinates and historical touch point coordinates are obtained, current displacement and historical displacement of the sliding screen operation are determined, the current touch point coordinates are corrected based on the current displacement, the historical displacement and the historical touch point coordinates, current reporting point coordinates are determined based on correction results, the sliding screen operation is responded based on the current reporting point coordinates, and the reporting point coordinates obtained according to the method are closer to the actual touch point coordinates, so that the degree of touch delay is reduced, and the touch experience of a user is improved.

Description

Touch control method and device
Technical Field
The disclosure relates to the technical field of computer communication, and in particular relates to a touch control method and device.
Background
As the role played by terminals such as mobile phones in life becomes more and more important, the requirements of users on the touch performance of mobile phones are also higher and higher, wherein the requirements on touch delay are included.
Based on the limitation of the existing algorithm, system processing flow and other factors, after the terminal detects the screen sliding operation, the problem that the response position is behind the touch position can occur, so that visual delay is caused, and the screen sliding experience of a user is seriously affected.
Disclosure of Invention
In view of this, the disclosure provides a touch control method and apparatus, by correcting a current touch point coordinate based on a current displacement, a historical displacement and a historical touch point coordinate of a sliding screen operation, determining a current reporting point coordinate based on a correction result, where the obtained current reporting point coordinate is closer to the current touch point coordinate, thereby reducing a degree of touch delay.
According to a first aspect of an embodiment of the present disclosure, there is provided a touch control method, including:
under the condition that the sliding screen operation is detected, acquiring the current touch point coordinates and the historical touch point coordinates;
determining the current displacement and the historical displacement of the screen sliding operation;
correcting the current touch point coordinate based on the current displacement, the historical displacement and the historical touch point coordinate, and determining the current reporting point coordinate based on a correction result;
and responding to the screen sliding operation based on the current reporting point coordinates.
Optionally, the correcting the current touch point coordinate based on the current displacement and the historical displacement, and determining the current reporting point coordinate based on the correction result, includes:
calculating the coordinates of the current reporting point through the following formula:
Figure GDA0002426617940000021
M=S n +S n-1 +……+S n-s
wherein, the X' n The coordinates of the current reporting point are obtained; the X is n The current touch point coordinates; the X is n-s The s-th historical touch point coordinate before the current touch point coordinate; s is S n Is the current displacement; s is S n-s The historical displacement between the (s+1) th historical touch point coordinate before the current touch point coordinate and the (s+1) th historical touch point coordinate before the current touch point coordinate; and s is a positive integer greater than or equal to 1.
Optionally, the determining the current displacement of the sliding operation includes:
acquiring a previous reporting point coordinate adjacent to the current reporting point coordinate;
and calculating the difference value between the current touch point coordinate and the previous reported point coordinate to obtain the current displacement.
Optionally, the determining the current displacement of the sliding operation includes:
acquiring a previous touch point coordinate adjacent to the current touch point coordinate;
and calculating the difference value between the current touch point coordinate and the previous touch point coordinate to obtain the current displacement.
Optionally, s=2.
Optionally, the determining the historical displacement of the sliding screen operation includes:
and obtaining the difference value between every two adjacent historical touch point coordinates as the historical displacement.
According to a second aspect of embodiments of the present disclosure, there is provided a touch control device, the device including:
the acquisition module is configured to acquire current touch point coordinates and historical touch point coordinates under the condition that the sliding screen operation is detected;
a first determination module configured to determine a current displacement and a historical displacement of the slide operation;
the second determining module is configured to correct the current touch point coordinate based on the current displacement, the historical displacement and the historical touch point coordinate, and determine the current reporting point coordinate based on a correction result;
and the response module is configured to respond to the screen sliding operation based on the current reporting point coordinates.
Optionally, the second determining module is configured to calculate the current reporting point coordinate by the following formula:
Figure GDA0002426617940000031
M=S n +S n-1 +……+S n-s
wherein, the X' n The coordinates of the current reporting point are obtained; the X is n The current touch point coordinates; the X is n-s The s-th historical touch point coordinate before the current touch point coordinate; s is S n Is the current displacement; s is S n-s The historical displacement between the (s+1) th historical touch point coordinate before the current touch point coordinate and the (s+1) th historical touch point coordinate before the current touch point coordinate; and s is a positive integer greater than or equal to 1.
Optionally, the first determining module includes:
the first acquisition sub-module is configured to acquire the coordinates of the previous reporting point adjacent to the coordinates of the current reporting point;
and the first calculating sub-module is configured to calculate the difference value between the current touch point coordinate and the previous reported point coordinate to obtain the current displacement.
Optionally, the first determining module includes:
a second obtaining sub-module configured to obtain a previous touch point coordinate adjacent to the current touch point coordinate;
and the second calculating sub-module is configured to calculate the difference value between the current touch point coordinate and the previous touch point coordinate to obtain the current displacement.
Optionally, s=2.
Optionally, the first determining module includes:
and the third acquisition submodule is configured to acquire the difference value between every two adjacent historical touch point coordinates as the historical displacement.
According to a third aspect of embodiments of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method of any of the first aspects described above.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a touch control device, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to implement the steps of the method of any of the above first aspects.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
in the embodiment of the disclosure, under the condition that the sliding screen operation is detected, correcting the current touch point coordinate of the sliding screen operation based on the current displacement, the historical displacement and the historical touch point coordinate of the sliding screen operation, determining the current reporting point coordinate based on the correction result, and enabling the reporting point coordinate obtained according to the method to be closer to the actual touch point coordinate, so that the degree of touch delay is reduced, and the touch experience of a user 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
FIG. 1 is a flowchart of a touch control method according to an exemplary embodiment;
FIG. 2 is a schematic diagram of a touch point shown according to an exemplary embodiment;
FIG. 3 is a block diagram of a touch control device according to an exemplary embodiment;
fig. 4 is a schematic diagram illustrating a structure for a touch control device according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in this disclosure to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "responsive to a determination", depending on the context.
The disclosure provides a touch control method, which can be applied to a terminal, wherein the terminal is provided with a display screen with a touch control function, and the display screen can be a mobile phone, a tablet personal computer, a personal digital assistant and the like.
Fig. 1 is a flowchart of a touch control method according to an exemplary embodiment, where the touch control method shown in fig. 1 includes the following steps:
in step 101, under the condition that a sliding screen operation is detected, current touch point coordinates and historical touch point coordinates are obtained.
The terminal is internally provided with a processing system and a touch control chip, the touch control chip is used for detecting a touch control point on the touch control screen, after the touch control chip detects a touch control point, a preset algorithm is used for calculating coordinates of a reporting point corresponding to the touch control point, namely reporting point coordinates, the calculated reporting point coordinates are reported to the processing system, and the processing system responds to touch control operation according to the reporting point coordinates. For example, the processing system sends the reporting point coordinates to the active gaming application so that the gaming application responds based on the reporting point, such as drawing a sliding track, moving a game object, and so forth.
The current touch point is the touch point detected at the current moment, and in the process of sliding the screen, the current touch point is the touch point with the latest sliding screen operation at the current moment; the historical touch point is the touch point detected before the current moment in the (same) screen sliding process.
In step 102, the current displacement and the historical displacement of the slide operation are determined.
The current displacement is the displacement of the sliding screen operation in the current period. The historical touch point is a touch point detected before the current touch point, and the current displacement may be equal to a difference between the current touch point coordinates and the historical touch point coordinates. Preferably, the touch chip may acquire a previous reporting point coordinate adjacent to the current reporting point coordinate, and calculate a difference between the current touch point coordinate and the previous reporting point coordinate as the current displacement.
Or, the touch chip may acquire the previous touch point coordinate adjacent to the current touch point coordinate, and calculate the difference between the current touch point coordinate and the previous touch point coordinate as the current displacement.
The history displacement is the displacement of the sliding screen operation in the history period. The historical touch points are touch points detected at historical moments before the current moment, and the touch chip can acquire at least two adjacent historical touch point coordinates and acquire the difference value between every two adjacent historical touch point coordinates as historical displacement.
When the touch chip acquires two historical touch point coordinates, the historical displacement is equal to the difference value of the two historical touch point coordinates. When the touch chip acquires a plurality of historical touch point coordinates, acquiring difference values between every two adjacent historical touch point coordinates, and acquiring historical displacement based on the acquired plurality of difference values.
In step 103, the current touch point coordinates are corrected based on the current displacement, the historical displacement and the historical touch point coordinates, and the current reporting point coordinates are determined based on the correction result.
Under ideal conditions, in the screen sliding process, the coordinates of the touch points detected by the touch chip are the same as the coordinates of the reported reporting points, and the terminal can accurately respond to the screen sliding operation. However, in actual situations, based on the limitations of the algorithm and the system processing flow, the reported point coordinates are generally smaller than the detected touch point coordinates, so that the response position of the sliding operation is behind the touch point position.
In order to solve the problems, the method and the device use the current displacement, the historical displacement and the historical touch point coordinates to correct the current touch point coordinates, and determine the current reporting point coordinates based on the correction result, so that the current reporting point coordinates are closer to the current touch point coordinates, the degree of touch delay is reduced, and the touch experience of a user is improved.
Alternatively, the current reporting point coordinates may be calculated by the following formula:
Figure GDA0002426617940000061
M=S n +S n-1 +……+S n-s formula (2)
Wherein X 'is' n The coordinates of the current reporting point are obtained; x is X n Sit for the current touch pointMarking; x is X n-s Is X n The former s-th historical touch point coordinate; s is S n Is the current displacement; s is S n-s Is X n Previous s-th historical touch point coordinates and X n Historical displacement between the previous (s+1) th historical touch point coordinates; s is a positive integer greater than or equal to 1.
Preferably, when the difference between the current touch point coordinate and the previous report point coordinate is taken as the current displacement, and s=2, the current report point coordinate may be calculated by the following formula:
Figure GDA0002426617940000071
M=S n +S n-1 +S n-2 formula (4)
S n =X n -X′ n-1 Formula (5)
S n-1 =X n-1 -X n-2 Formula (6)
S n-2 =X n-2 -X n-3 Formula (7)
Wherein X 'is' n The coordinates of the current reporting point are obtained; x'. n-1 Reporting the point coordinates for the previous one; x is X n The current touch point coordinates; x is X n-1 Is X n The first previous historical touch point coordinates; x is X n-2 Is X n A first historical touch point coordinate; x is X n-3 Is X n The first third historical touch point coordinates.
In the above embodiment, s=2 is adopted, so that the reported point coordinate is ensured to be closer to the actual touch point coordinate, and the data processing efficiency is effectively improved.
In the process of accelerating the sliding screen, based on the sliding screen speed change, the sliding screen distances in the preset interval duration are different, and the method and the device directly adjust the weight value of the coordinates of the touch point according to the sliding screen speed indirectly and the sliding screen speed according to the preset interval duration, can reduce the response hysteresis quality of the touch operation, and reduce the response delay degree in the sliding screen process.
In the related art, a touch chip generally sets a fixed weight value to determine a current reporting point coordinate, for example, the current reporting point coordinate may be calculated by the following formula:
Figure GDA0002426617940000072
wherein X 'is' n The coordinates of the current reporting point are obtained; x is X n The current touch point coordinates; x is X n-1 Is X n The first previous historical touch point coordinates; x is X n-1 Is X n-2 The first second historical touch point coordinates.
Because the weight value of each touch point coordinate in the formula (8) is one third of a fixed value, the difference between the reported point coordinate reported to the processing system and the actual touch point coordinate is larger and larger in the process of accelerating screen sliding, and the accumulated delay is larger and larger, so that the chiral experience of a user is poorer and worse.
Since in formula (3) of the present disclosure, (X) n -X′ n-1 )>X n -X n-1 Always hold, so the current touch point coordinate X n The weight value of (2) is always more than one third in the process of sliding the screen at a constant speed and in the process of accelerating the screen. Using a larger weight value to X n The weight addition calculation is carried out, so that larger X 'can be obtained' n ,X′ n Will be closer to the actual X n The response position of the sliding screen operation is closer to the actual touch position.
Fig. 2 is a schematic diagram of a touch point shown according to an example embodiment. In FIG. 2, the solid origin represents the actual touch point, X 0 、X 1 、X 2 、X 3 、X 4 And X 5 The actual touch point coordinates are detected according to the equal interval duration. S is S 0 Is X 0 And X 1 A sliding distance therebetween; s is S 1 Is X 1 And X 2 A sliding distance therebetween; s is S 2 Is X 2 And X 3 A sliding distance therebetween; s is S 3 Is X 3 And X 4 A sliding distance therebetween; s is S 4 Is X 4 And X 5 Sliding distance between the two. The open origin represents the reporting point determined by using the formula (8), S ' represents the distance between two adjacent reporting points, and S ' is respectively ' 0 、S′ 1 、S′ 2 、S′ 3 、S′ 4 . Triangles represent reported points determined using equation (3), denoted as X ', X ' respectively ' 0 、X′ 1 、X′ 2 、X′ 3 、X′ 4 And X' 5
In fig. 2, for the actual touch point coordinates in the process of accelerating the screen, the report point coordinates calculated by using the formula (8) are later than the report point coordinates calculated by using the formula (3), and the report point coordinates calculated by using the formula (3) are closer to the actual touch point coordinates.
In step 104, the slide operation is responded to based on the current reporting point coordinates.
And the touch control chip sends the current reporting point coordinates to the processing system, and the processing system responds to the screen sliding operation according to the current reporting point coordinates. For example, the processing system sends the current reporting point coordinates to the active gaming application so that the gaming application responds based on the current reporting point coordinates, such as drawing a sliding track, moving a game object, and so forth.
In the embodiment of the disclosure, under the condition that the sliding screen operation is detected, correcting the current touch point coordinate of the sliding screen operation based on the current displacement, the historical displacement and the historical touch point coordinate of the sliding screen operation, determining the current reporting point coordinate based on the correction result, and enabling the current reporting point coordinate obtained according to the method to be closer to the current touch point coordinate, so that the degree of touch delay is reduced, and the touch experience of a user is improved.
For the foregoing method embodiments, for simplicity of explanation, the methodologies are shown as a series of acts, but one of ordinary skill in the art will appreciate that the present disclosure is not limited by the order of acts described, as some steps may occur in other orders or concurrently in accordance with the disclosure.
Further, those skilled in the art will also appreciate that the embodiments described in the specification are all alternative embodiments, and that the acts and modules referred to are not necessarily required by the present disclosure.
Corresponding to the embodiment of the application function implementation method, the disclosure also provides an embodiment of the application function implementation device and a corresponding terminal.
Fig. 3 is a block diagram of a touch control device according to an exemplary embodiment, the device comprising: an acquisition module 21, a first determination module 22, a second determination module 23, and a response module 24; wherein, the obtaining module 21 is configured to obtain the current touch point coordinate and the historical touch point coordinate when the sliding screen operation is detected;
the first determining module 22 is configured to determine a current displacement and a historical displacement of the sliding screen operation;
the second determining module 23 is configured to correct the current touch point coordinate based on the current displacement, the historical displacement and the historical touch point coordinate, and determine a current reporting point coordinate based on a correction result;
the response module 24 is configured to respond to the slide operation based on the current reporting point coordinates.
In an alternative embodiment, based on the touch control device shown in fig. 3, the second determining module 23 may be configured to calculate the current reporting point coordinate by the following formula:
Figure GDA0002426617940000091
M=S n +S n-1 +……+S n-s
wherein, the X' n The coordinates of the current reporting point are obtained; the X is n The current touch point coordinates; the X is n-s The s-th historical touch point coordinate before the current touch point coordinate; s is S n Is the current displacement; s is S n-s The historical displacement between the (s+1) th historical touch point coordinate before the current touch point coordinate and the (s+1) th historical touch point coordinate before the current touch point coordinate; the saids is a positive integer greater than or equal to 1.
In an alternative embodiment, the first determining module 22 may include: the first acquisition sub-module and the first calculation sub-module; wherein, the liquid crystal display device comprises a liquid crystal display device,
the first acquisition sub-module is configured to acquire a previous reporting point coordinate adjacent to the current reporting point coordinate;
and the first calculation submodule is configured to calculate the difference value between the current touch point coordinate and the previous reported point coordinate to obtain the current displacement.
In an alternative embodiment, the first determining module 22 may include: a second acquisition sub-module and a second calculation sub-module; wherein, the liquid crystal display device comprises a liquid crystal display device,
the second obtaining sub-module is configured to obtain a previous touch point coordinate adjacent to the current touch point coordinate;
and the second calculating sub-module is configured to calculate the difference value between the current touch point coordinate and the previous touch point coordinate to obtain the current displacement.
In an alternative embodiment, s=2.
In an alternative embodiment, the first determining module 22 may include: a third acquisition sub-module; wherein, the liquid crystal display device comprises a liquid crystal display device,
the third obtaining submodule is configured to obtain the difference value between every two adjacent historical touch point coordinates as the historical displacement.
For the device embodiments, reference is made to the description of the method embodiments for the relevant points, since they essentially correspond to the method embodiments. The apparatus embodiments described above are merely illustrative, wherein the elements described above as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the objectives of the disclosed solution. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
Accordingly, in one aspect, an embodiment of the present disclosure provides a touch control device, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to:
under the condition that the sliding screen operation is detected, acquiring the current touch point coordinates and the historical touch point coordinates;
determining the current displacement and the historical displacement of the screen sliding operation;
correcting the current touch point coordinate based on the current displacement, the historical displacement and the historical touch point coordinate, and determining the current reporting point coordinate based on a correction result;
and responding to the screen sliding operation based on the current reporting point coordinates.
Fig. 4 is a schematic diagram illustrating a structure of a touch control device 1600 according to an exemplary embodiment. For example, apparatus 1600 may be a user device, which may be embodied as a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, wearable device such as a smart watch, smart glasses, smart bracelet, smart running shoe, or the like.
Referring to fig. 4, apparatus 1600 may include one or more of the following components: a processing component 1602, a memory 1604, a power component 1606, a multimedia component 1608, an audio component 1610, an input/output (I/O) interface 1612, a sensor component 1614, and a communication component 1616.
The processing component 1602 generally controls overall operation of the device 1600, such as operations associated with display, telephone call, data communication, camera operation, and recording operations. The processing component 1602 may include one or more processors 1620 to execute instructions to perform all or part of the steps of the methods described above. In addition, the processing component 1602 may include one or more modules that facilitate interactions between the processing component 1602 and other components. For example, the processing component 1602 may include a multimedia module to facilitate interactions between the multimedia component 1608 and the processing component 1602.
The memory 1604 is configured to store various types of data to support operations at the device 1600. Examples of such data include instructions for any application or method operating on device 1600, contact data, phonebook data, messages, pictures, video, and the like. The memory 1604 may be implemented by any type of volatile or nonvolatile memory device or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
A power supply component 1606 provides power to the various components of the device 1600. Power supply component 1606 can include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 1600.
The multimedia component 1608 includes a screen that provides an output interface between the device 1600 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only a boundary of a touch or a sliding action but also a duration and a pressure related to the touch or the sliding operation. In some embodiments, the multimedia component 1608 includes a front-facing camera and/or a rear-facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 1600 is in an operational mode, such as an adjustment mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 1610 is configured to output and/or input audio signals. For example, the audio component 1610 includes a Microphone (MIC) configured to receive external audio signals when the device 1600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 1604 or transmitted via the communication component 1616. In some embodiments, the audio component 1610 further includes a speaker for outputting audio signals.
The I/O interface 1612 provides an interface between the processing component 1602 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 1614 includes one or more sensors for providing status assessment of various aspects of the device 1600. For example, the sensor assembly 1614 may detect the on/off state of the device 1600, the relative positioning of the components, such as the display and keypad of the device 1600, the sensor assembly 1614 may also detect the change in position of the device 1600 or a component of the device 1600, the presence or absence of user contact with the device 1600, the orientation or acceleration/deceleration of the device 1600, and the change in temperature of the device 1600. The sensor assembly 1614 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 1614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1614 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1616 is configured to facilitate communication between the apparatus 1600 and other devices, either wired or wireless. The device 1600 may access a wireless network based on a communication standard, such as WiFi,2G, or 3G, or a combination thereof. In one exemplary embodiment, the communication component 1616 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 1616 described above further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 1600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, there is also provided a non-transitory computer readable storage medium, such as memory 1604 including instructions that, when executed by processor 1620 of apparatus 1600, enable apparatus 1600 to perform a touch control method comprising: under the condition that the sliding screen operation is detected, current touch point coordinates and historical touch point coordinates are obtained, current displacement and historical displacement of the sliding screen operation are determined, the current touch point coordinates are corrected based on the current displacement, the historical displacement and the historical touch point coordinates, current reporting point coordinates are determined based on correction results, and response is made to the sliding screen operation based on the current reporting point coordinates.
The non-transitory computer readable storage medium may be a ROM, random-access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
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 disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general 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 (12)

1. A touch control method, the method comprising:
under the condition that the sliding screen operation is detected, acquiring the current touch point coordinates and the historical touch point coordinates;
determining the current displacement and the historical displacement of the screen sliding operation;
correcting the current touch point coordinate based on the current displacement, the historical displacement and the historical touch point coordinate, and determining the current reporting point coordinate based on a correction result;
responding to the screen sliding operation based on the current reporting point coordinates;
wherein said determining the current displacement of the slide operation comprises:
acquiring a previous reporting point coordinate adjacent to the current reporting point coordinate;
and calculating the difference value between the current touch point coordinate and the previous reported point coordinate to obtain the current displacement.
2. The method of claim 1, wherein the correcting the current touch point coordinates based on the current displacement, the historical displacement, and the historical touch point coordinates, and determining the current reporting point coordinates based on the correction results, comprises:
calculating the coordinates of the current reporting point through the following formula:
Figure FDA0004053596970000011
M=S n +S n-1 +……+S n-s
wherein, the X' n The coordinates of the current reporting point are obtained; the X is n The current touch point coordinates; the X is n-s The s-th historical touch point coordinate before the current touch point coordinate; s is S n Is the current displacement; s is S n-s The s-th calendar before the current touch point coordinateHistory displacement between the history touch point coordinates and the (s+1) th history touch point coordinates before the current touch point coordinates; and s is a positive integer greater than or equal to 1.
3. The method of claim 1 or 2, wherein the determining the current displacement of the slide operation comprises:
acquiring a previous touch point coordinate adjacent to the current touch point coordinate;
and calculating the difference value between the current touch point coordinate and the previous touch point coordinate to obtain the current displacement.
4. The method according to claim 2, characterized in that s = 2.
5. The method of claim 1 or 2, wherein the determining the historical displacement of the slide operation comprises:
and obtaining the difference value between every two adjacent historical touch point coordinates as the historical displacement.
6. A touch control device, the device comprising:
the acquisition module is configured to acquire current touch point coordinates and historical touch point coordinates under the condition that the sliding screen operation is detected;
a first determination module configured to determine a current displacement and a historical displacement of the slide operation;
the second determining module is configured to correct the current touch point coordinate based on the current displacement, the historical displacement and the historical touch point coordinate, and determine the current reporting point coordinate based on a correction result;
the response module is configured to respond to the screen sliding operation based on the current reporting point coordinates;
wherein the first determining module includes:
the first acquisition sub-module is configured to acquire the coordinates of the previous reporting point adjacent to the coordinates of the current reporting point;
and the first calculating sub-module is configured to calculate the difference value between the current touch point coordinate and the previous reported point coordinate to obtain the current displacement.
7. The apparatus of claim 6, wherein the second determination module is configured to calculate the current reporting point coordinates by:
Figure FDA0004053596970000021
M=S n +S n-1 +……+S n-s
wherein, the X' n The coordinates of the current reporting point are obtained; the X is n The current touch point coordinates; the X is n-s The s-th historical touch point coordinate before the current touch point coordinate; s is S n Is the current displacement; s is S n-s The historical displacement between the (s+1) th historical touch point coordinate before the current touch point coordinate and the (s+1) th historical touch point coordinate before the current touch point coordinate; and s is a positive integer greater than or equal to 1.
8. The apparatus according to claim 6 or 7, wherein the first determining module comprises:
a second obtaining sub-module configured to obtain a previous touch point coordinate adjacent to the current touch point coordinate;
and the second calculating sub-module is configured to calculate the difference value between the current touch point coordinate and the previous touch point coordinate to obtain the current displacement.
9. The apparatus of claim 7, wherein s = 2.
10. The apparatus according to claim 6 or 7, wherein the first determining module comprises:
and the third acquisition submodule is configured to acquire the difference value between every two adjacent historical touch point coordinates as the historical displacement.
11. A non-transitory computer readable storage medium having stored thereon a computer program, characterized in that the program when executed by a processor realizes the steps of the method according to any of claims 1 to 5.
12. A touch control device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
under the condition that the sliding screen operation is detected, acquiring the current touch point coordinates and the historical touch point coordinates;
determining the current displacement and the historical displacement of the screen sliding operation;
correcting the current touch point coordinate based on the current displacement, the historical displacement and the historical touch point coordinate, and determining the current reporting point coordinate based on a correction result;
responding to the screen sliding operation based on the current reporting point coordinates;
the processor, when configured to determine a current displacement of the slide operation, is configured to:
acquiring a previous reporting point coordinate adjacent to the current reporting point coordinate;
and calculating the difference value between the current touch point coordinate and the previous reported point coordinate to obtain the current displacement.
CN201911242930.7A 2019-12-06 2019-12-06 Touch control method and device Active CN112925466B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911242930.7A CN112925466B (en) 2019-12-06 2019-12-06 Touch control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911242930.7A CN112925466B (en) 2019-12-06 2019-12-06 Touch control method and device

Publications (2)

Publication Number Publication Date
CN112925466A CN112925466A (en) 2021-06-08
CN112925466B true CN112925466B (en) 2023-04-25

Family

ID=76161707

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911242930.7A Active CN112925466B (en) 2019-12-06 2019-12-06 Touch control method and device

Country Status (1)

Country Link
CN (1) CN112925466B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114415857B (en) * 2022-01-19 2024-02-09 惠州Tcl移动通信有限公司 Terminal operation method and device, terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101930319A (en) * 2010-09-08 2010-12-29 敦泰科技有限公司 Touch information reporting method of touch screen
KR20130136313A (en) * 2012-06-04 2013-12-12 (주)더게이트테크놀러지스 Touch screen system using touch pen and touch recognition metod thereof
CN103677416A (en) * 2013-12-13 2014-03-26 广东欧珀移动通信有限公司 Method and device for preventing interface from shaking in sliding process
CN108459770A (en) * 2018-03-09 2018-08-28 北京硬壳科技有限公司 Method for correcting coordinate and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101930319A (en) * 2010-09-08 2010-12-29 敦泰科技有限公司 Touch information reporting method of touch screen
KR20130136313A (en) * 2012-06-04 2013-12-12 (주)더게이트테크놀러지스 Touch screen system using touch pen and touch recognition metod thereof
CN103677416A (en) * 2013-12-13 2014-03-26 广东欧珀移动通信有限公司 Method and device for preventing interface from shaking in sliding process
CN108459770A (en) * 2018-03-09 2018-08-28 北京硬壳科技有限公司 Method for correcting coordinate and device

Also Published As

Publication number Publication date
CN112925466A (en) 2021-06-08

Similar Documents

Publication Publication Date Title
EP3032821B1 (en) Method and device for shooting a picture
CN107493500B (en) Multimedia resource playing method and device
EP3162284A1 (en) Communication method, apparatus and system for wearable device
EP3173970A1 (en) Image processing method and apparatus
CN107330868B (en) Picture processing method and device
CN111128092B (en) Screen brightness adjusting method, screen brightness adjusting device and computer storage medium
US20170154604A1 (en) Method and apparatus for adjusting luminance
EP3024211B1 (en) Method and device for announcing voice call
CN107635074B (en) Method, apparatus and computer-readable storage medium for controlling alarm
CN111128091B (en) Screen brightness adjusting method, screen brightness adjusting device and computer storage medium
CN108200279B (en) Backlight adjusting method, device and equipment
CN110059547B (en) Target detection method and device
CN111880681A (en) Touch screen sampling rate adjusting method and device and computer storage medium
CN108629814B (en) Camera adjusting method and device
CN112925466B (en) Touch control method and device
CN107203315B (en) Click event processing method and device and terminal
CN106775246B (en) Screen brightness adjusting method and device
CN107122356B (en) Method and device for displaying face value and electronic equipment
CN108769513B (en) Camera photographing method and device
CN107665340B (en) Fingerprint identification method and device and electronic equipment
CN111854721A (en) Geomagnetic data correction method and device and electronic equipment
CN113138036B (en) Temperature detection method and device and electronic equipment
CN113551768B (en) Method and device for determining ambient brightness
CN112462928B (en) Operation execution method, device and storage medium
CN109670432B (en) Action recognition method and device

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