CN112965653B - Touch position reporting method and device and electronic equipment - Google Patents
Touch position reporting method and device and electronic equipment Download PDFInfo
- Publication number
- CN112965653B CN112965653B CN201911285310.1A CN201911285310A CN112965653B CN 112965653 B CN112965653 B CN 112965653B CN 201911285310 A CN201911285310 A CN 201911285310A CN 112965653 B CN112965653 B CN 112965653B
- Authority
- CN
- China
- Prior art keywords
- touch
- radius
- length
- current
- determining
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction 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/0488—Interaction 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
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/20—Input arrangements for video game devices
- A63F13/21—Input arrangements for video game devices characterised by their sensors, purposes or types
- A63F13/214—Input arrangements for video game devices characterised by their sensors, purposes or types for locating contacts on a surface, e.g. floor mats or touch pads
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/80—Special adaptations for executing a specific game genre or game mode
- A63F13/837—Shooting of targets
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0416—Control or interface arrangements specially adapted for digitisers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction 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/04842—Selection of displayed objects or displayed text elements
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2203/00—Indexing scheme relating to G06F3/00 - G06F3/048
- G06F2203/041—Indexing scheme relating to G06F3/041 - G06F3/045
- G06F2203/04104—Multi-touch detection in digitiser, i.e. details about the simultaneous detection of a plurality of touching locations, e.g. multiple fingers or pen and finger
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Multimedia (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The disclosure relates to a touch position reporting method and device and electronic equipment. The method comprises the following steps: acquiring touch information under the condition that touch operation is detected, wherein the touch information comprises an initial touch point position, a current touch point position and a current touch area, the initial touch point position is the position of a first touch point detected in the touch operation occurrence process, and the current touch point position is the position of a touch point detected at the current moment in the touch operation occurrence process; determining the radius of a target lock point according to the current touch area; and determining a reporting position corresponding to the current touch point position based on the initial touch point position, the current touch point position and the target lock point radius, and reporting the reporting position. The method and the device can improve the accuracy of reporting the touch position, avoid the condition that the display picture shakes, and further improve the experience of a user.
Description
Technical Field
The present disclosure relates to the field of terminal technologies, and in particular, to a method and an apparatus for reporting a touch position, and an electronic device.
Background
In recent years, mobile games are widely popular with users due to the characteristic of being more flexible than end games. More and more users will consider the game playing capability of the mobile phone when purchasing the mobile phone.
The game mobile phone has high requirements on screen display quality and color expression, and also has high requirements on the aspects of mobile phone touch performance and the like. In the related art, the entire screen may be shaken during the playing of a multi-finger operation game or the like. For example, when a user plays a shooting game on a mobile phone, if the picture suddenly shakes, the user cannot aim normally, the aiming accuracy is reduced, and the user experience is affected.
Disclosure of Invention
In order to overcome the problems in the related art, embodiments of the present disclosure provide a method and an apparatus for reporting a touch position, and an electronic device, so as to solve the defects in the related art.
According to a first aspect of the embodiments of the present disclosure, a method for reporting a touch position is provided, including:
acquiring touch information under the condition that touch operation is detected, wherein the touch information comprises an initial touch point position, a current touch point position and a current touch area, the initial touch point position is the position of a first touch point detected in the touch operation occurrence process, the current touch point position is the position of a touch point detected at the current moment in the touch operation occurrence process, and the current touch area is the contact area between a touch body and a screen of the touch operation at the current moment;
determining the radius of a target lock point according to the current touch area;
and determining a reporting position corresponding to the current touch point position based on the initial touch point position, the current touch point position and the target lock point radius, and reporting the reporting position.
In an embodiment, the determining a target lock point radius according to the current touch area includes:
if the current touch area is larger than a set area threshold, determining the length of the target lock point radius as a first radius length;
if the current touch area is smaller than or equal to the set area threshold, determining the length of the target lock point radius as a second radius length, wherein the first radius length is larger than the second radius length.
In an embodiment, the determining a target lock point radius according to the current touch area includes:
determining a touch type of the touch operation;
and determining the radius of the target lock point according to the touch type and the current touch area.
In an embodiment, the touch information further includes a current touch duration, where the current touch duration is a contact duration between a touch object and a screen of the touch operation until a current time;
the determining the touch type of the touch operation comprises:
determining the touch type based on the initial touch point position, the current touch point position and the current touch duration.
In an embodiment, the determining the touch type based on the initial touch point position, the current touch point position, and the current touch duration includes:
if the distance between the current touch point position and the initial touch point position is smaller than or equal to a preset distance threshold value, and the current touch duration is smaller than a set duration threshold value, determining that the touch type is a click type;
if the distance between the current touch point position and the initial touch point position is smaller than or equal to a preset distance threshold value, and the current touch duration is larger than or equal to the set duration threshold value, determining that the touch type is a long press type;
and if the distance between the current touch point position and the initial touch point position is larger than the preset distance threshold, determining that the touch type is a sliding type.
In an embodiment, the determining the target lock point radius according to the touch type and the current touch area includes:
if the touch type is a click type and the current touch area is larger than the set area threshold, determining the length of the target lock point radius as a first sub-radius length; if the touch type is a click type and the current touch area is smaller than or equal to the set area threshold, determining the length of the target lock point radius as a second sub-radius length; wherein the first sub-radius length is greater than the second sub-radius length;
if the touch type is a long press type and the current touch area is larger than the set area threshold, determining the length of the target lock point radius as a third sub-radius length; if the touch type is a long press type and the current touch area is smaller than or equal to the set area threshold, determining the length of the target lock point radius as a fourth sub-radius length, wherein the third sub-radius length is larger than the fourth sub-radius length;
if the touch type is a sliding type and the current touch area is larger than the set area threshold, determining the length of the target lock point radius as a fifth sub-radius length; if the touch type is a sliding type and the current touch area is smaller than or equal to the set area threshold, determining the length of the target lock point radius as a sixth sub-radius length, wherein the fifth sub-radius length is larger than the sixth sub-radius length;
wherein the first sub-radius length is greater than the third sub-radius length, which is greater than the fifth sub-radius length; the second sub-radius length is greater than the fourth sub-radius length, which is greater than the sixth sub-radius length.
In an embodiment, the method further comprises:
when other touch points which are moved out of the lock point range corresponding to the target lock point radius are detected, determining the touch area when the other touch points are detected as a first touch area;
if the first touch area is larger than the set area threshold, reporting the positions of other touch points according to the length of the radius of the locking point as a third radius length, wherein the third radius length is smaller than the first radius length.
According to a second aspect of the embodiments of the present disclosure, there is provided a touch position reporting apparatus, including:
the touch information acquisition module is used for acquiring touch information under the condition that touch operation is detected, wherein the touch information comprises an initial touch point position, a current touch point position and a current touch area, the initial touch point position is the position of a first touch point detected in the touch operation occurrence process, the current touch point position is the position of a touch point detected at the current moment in the touch operation occurrence process, and the current touch area is the contact area between a touch body and a screen of the touch operation at the current moment;
the lock point radius determining module is used for determining a target lock point radius according to the current touch area;
and the touch position reporting module is used for determining a reporting position corresponding to the current touch point position based on the initial touch point position, the current touch point position and the target lock point radius, and reporting the reporting position.
In an embodiment, the lock point radius determination module is further configured to:
when the current touch area is larger than a set area threshold, determining the length of the target lock point radius as a first radius length;
when the current touch area is smaller than or equal to the set area threshold, determining the length of the target lock point radius as a second radius length, wherein the first radius length is larger than the second radius length.
In one embodiment, the lock point radius determination module includes:
the touch type determining unit is used for determining the touch type of the touch operation;
and the lock point radius determining unit is used for determining the target lock point radius according to the touch type and the current touch area.
In an embodiment, the touch information further includes a current touch duration, where the current touch duration is a duration of contact between a touch object and a screen of the touch operation until a current moment;
the touch type determining unit is further configured to determine the touch type based on the initial touch point position, the current touch point position, and the current touch duration.
In an embodiment, the touch type determining unit is further configured to:
when the distance between the current touch point position and the initial touch point position is smaller than or equal to a preset distance threshold and the current touch duration is smaller than a set duration threshold, determining that the touch type is a click type;
when the distance between the position of the current touch point and the position of the initial touch point is smaller than or equal to a preset distance threshold and the current touch duration is larger than or equal to a set duration threshold, determining that the touch type is a long press type;
and when the distance between the current touch point position and the initial touch point position is greater than the preset distance threshold, determining that the touch type is a sliding type.
In an embodiment, the lock point radius determination unit is further configured to:
when the touch type is a click type and the current touch area is larger than the set area threshold, determining the length of the target lock point radius as a first sub-radius length; when the touch type is a click type and the current touch area is smaller than or equal to the set area threshold, determining the length of the target lock point radius as a second sub-radius length; wherein the first sub-radius length is greater than the second sub-radius length;
when the touch type is a long press type and the current touch area is larger than the set area threshold, determining the length of the target lock point radius as a third sub-radius length; when the touch type is a long press type and the current touch area is smaller than or equal to the set area threshold, determining the length of the target lock point radius as a fourth sub-radius length, wherein the third sub-radius length is larger than the fourth sub-radius length;
when the touch type is a sliding type and the current touch area is larger than the set area threshold, determining the length of the target lock point radius as a fifth sub-radius length; when the touch type is a sliding type and the current touch area is smaller than or equal to the set area threshold, determining the length of the target lock point radius as a sixth sub-radius length, wherein the fifth sub-radius length is larger than the sixth sub-radius length;
wherein the first sub-radius length is greater than the third sub-radius length, which is greater than the fifth sub-radius length; the second sub-radius length is greater than the fourth sub-radius length, which is greater than the sixth sub-radius length.
In an embodiment, the lock point radius determination module is further configured to:
when other touch points which are moved out of the lock point range corresponding to the target lock point radius are detected, determining the touch area when the other touch points are detected as a first touch area;
the touch position reporting module is further configured to report the positions of the other touch points according to a length of a radius of a lock point as a length of a third radius when the first touch area is larger than the set area threshold, where the length of the third radius is smaller than the length of the first radius.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor, and a memory for storing processor-executable instructions;
wherein the processor is configured to execute any touch location reporting method of the first aspect.
According to a fourth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of any touch location reporting method in the first aspect.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
the method comprises the steps of acquiring touch information under the condition that touch operation is detected, wherein the touch information comprises an initial touch point position, a current touch point position and a current touch area, the initial touch point position is the position of a first touch point detected in the process of generating the touch operation, the current touch point position is the position of a touch point detected at the current moment in the process of generating the touch operation, the current touch area is the contact area between a touch body and a screen of the touch operation at the current moment, a target lock point radius is determined according to the current touch area, a report position corresponding to the current touch point position is determined based on the initial touch point position, the current touch point position and the target lock point radius, and the report position is reported, so that the accuracy of the report touch position can be improved, therefore, the accuracy of the visual field direction in the subsequent application scene of the target based on the reported touch position control can be improved, the situation that the display picture shakes due to frequent change of the reported touch position can be avoided, and the user experience can be 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 invention and together with the description, serve to explain the principles of the invention.
Fig. 1A is a flowchart illustrating a method for reporting a touch location according to an exemplary embodiment;
FIG. 1B is a diagram of touch Diff, shown in an exemplary embodiment;
FIG. 1C is a schematic diagram of a touch finger ID and a touch area in accordance with an exemplary embodiment;
FIG. 2 is a flow chart illustrating how a target lock point radius is determined based on the current touch area in accordance with an exemplary embodiment;
FIG. 3 is a flow chart illustrating how a target lock point radius is determined based on the current touch area in accordance with yet another exemplary embodiment;
FIG. 4 is a flowchart illustrating how a target lock point radius is determined based on the current touch area in accordance with another exemplary embodiment;
FIG. 5 is a flowchart illustrating how the touch type is determined based on the initial touch point position, the current touch point position, and the current touch duration in accordance with an exemplary embodiment;
FIG. 6A is a flowchart illustrating how the target lock point radius is determined based on the type of click touch and the current touch area in accordance with an exemplary embodiment;
FIG. 6B is a flowchart illustrating how the target lock point radius is determined based on the long press touch type and the current touch area in accordance with an exemplary embodiment;
FIG. 6C is a flowchart illustrating how the target lock point radius is determined based on a sliding touch type and the current touch area in accordance with an exemplary embodiment;
fig. 7A is a flowchart illustrating a touch location reporting method according to yet another exemplary embodiment;
FIG. 7B is a diagram illustrating a game scenario, according to an exemplary embodiment;
fig. 8 is a block diagram illustrating a touch location reporting apparatus according to an exemplary embodiment;
fig. 9 is a block diagram of another touch location reporting device according to an example embodiment;
FIG. 10 is a block diagram of an electronic device shown in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 1A is a flowchart illustrating a touch location reporting method according to a first exemplary embodiment; the touch position reporting method can be applied to electronic equipment with a touch screen, such as a smart phone, a tablet computer and the like. As shown in fig. 1A, the touch position reporting method includes the following steps S101 to S103:
in step S101: and acquiring touch information under the condition that the touch operation is detected.
For example, when a user touches a screen of a terminal device in a target scene, the terminal device may obtain corresponding touch information.
In this embodiment, the touch information may include an initial touch point position, a current touch point position, and a current touch area.
The initial touch point position may be a position of a first touch point detected in the touch operation occurrence process, the current touch point position may be a position of a touch point detected at a current moment in the touch operation occurrence process, and the current touch area may be a contact area between a touch body and a screen of the touch operation at the current moment.
For example, a user may touch a screen of the terminal device with a left thumb and a right thumb, and then a touch device on the screen of the terminal device may detect a touch Diff (capacitance change amount), and may further obtain an initial touch point position, a current touch point position, and a current touch area based on the touch Diff.
For example, FIG. 1B is a diagram illustrating touch Diff in an exemplary embodiment; fig. 1C is a schematic diagram of a touch finger ID and a touch area according to an exemplary embodiment. As shown in fig. 1B, if the touch Diff of a node is greater than the touch threshold TP _ TH (e.g., 50), it may be considered that the node is pressed by a finger, and information such as a corresponding touch area may be counted based on each currently pressed node. As shown in FIG. 1C, the touch area for finger ID0 is 8 pixels and the touch area for finger ID1 is 13 pixels.
In step S102: and determining the radius of a target lock point according to the current touch area.
In this embodiment, after the touch information is obtained, the radius of the target lock point may be determined according to the current touch area.
The target lock point radius may be a jitter parameter for characterizing the stability of touch report points.
For example, a report point in a circular range with a radius R may be reported as the same point, i.e., the coordinates (x, y) of the report point are unchanged, and are taken as the center of a circle (i.e., the coordinates of the initial touch position); the report points outside the circular range are reported as a new coordinate point (e.g., the actual position coordinates of the touch point), that is, the coordinates (x, y) of the report points are changed. Wherein, the radius R is the jitter parameter.
It can be understood that if the target lock point radius is set too small, the image may be jittered due to frequent changes of finger touch points; conversely, if the target lock point radius is set too large, it may cause a reduction in the sensitivity of the sliding operation for the screen.
In this embodiment, after the touch information is obtained, the touch information may be processed, and then a corresponding target lock point radius may be set based on the obtained processing result, so that the set target lock point radius may not be too large or too small.
In another embodiment, the above-mentioned manner of determining the target lock point radius according to the current touch area can be referred to the following embodiment shown in fig. 2, which is not described in detail herein.
In step S103: and determining a reporting position corresponding to the current touch point position based on the initial touch point position, the current touch point position and the target lock point radius, and reporting the reporting position.
In this embodiment, after the target lock point radius is determined according to the current touch area, a reporting position corresponding to the current touch point position may be determined based on the initial touch point position, the current touch point position, and the target lock point radius, and the reporting position may be reported, so that the view (e.g., a display screen) in a target scene may be controlled based on the reported touch position.
As can be seen from the above description, in this embodiment, when a touch operation is detected, touch information is obtained, a target lock point radius is determined according to the current touch area, and then a reporting position corresponding to the current touch point position is determined based on the initial touch point position, the current touch point position and the target lock point radius, and the reporting position is reported, because the target lock point radius is determined according to the touch information obtained when the touch operation is detected, and the reporting position corresponding to the current touch point position is determined based on the initial touch point position, the current touch point position and the target lock point radius, the accuracy of reporting the touch position can be improved, the accuracy of controlling the field direction in a target application scene based on the reported touch position can be improved, and the situation that a display image is jittered due to frequent change of the reported touch position can be avoided, and further, the experience of the user can be improved.
FIG. 2 is a flow chart illustrating how a target lock point radius is determined based on the current touch area in accordance with an exemplary embodiment; based on the above embodiments, the present embodiment exemplarily illustrates how to determine the target lock point radius according to the current touch area. As shown in fig. 2, the determining the target lock point radius according to the current touch area in step S102 may include the following steps S201 to S203:
in step S201, it is determined whether the current touch area is greater than a set area threshold: if yes, go to step S202; if not, go to step S203.
In step S202, the length of the target lock point radius is determined as a first radius length.
In step S203, the length of the target lock point radius is determined as a second radius length.
In this embodiment, after determining the current touch area based on the acquired touch information, the current touch area may be compared with a set area threshold, and further, when it is determined that the current touch area is greater than the set area threshold, the length of the target lock point radius may be determined as a first radius length; when it is determined that the current touch area is smaller than or equal to the set area threshold, the length of the target lock point radius may be determined as a second radius length, where the first radius length is greater than the second radius length. That is, when it is determined that the current touch area is greater than the set area threshold, the length of the target lock point radius may be set longer, and when it is determined that the current touch area is less than or equal to the set area threshold, the length of the target lock point radius may be set shorter.
According to the embodiment, under the condition that the current touch area is large, if the target lock point radius is set to be too small, the picture may shake due to slight change of the finger touch report point, so that the length of the target lock point radius can be set to be as long as possible; on the contrary, in the case that the current touch area is small, if the target lock point radius is set too large, the sensitivity of the sliding operation performed on the screen may be reduced, and thus the length of the target lock point radius may be set as short as possible.
As can be seen from the above description, in this embodiment, when the current touch area is greater than the set area threshold, the length of the target lock point radius is determined as the first radius length, and when the current touch area is less than or equal to the set area threshold, the length of the target lock point radius is determined as the second radius length, and the first radius length is greater than the second radius length, so that the target lock point radius can be reasonably determined according to the current touch area, which is beneficial to subsequently determining the reporting position corresponding to the current touch point position based on the initial touch point position, the current touch point position and the target lock point radius, and can improve the accuracy of reporting the touch position.
FIG. 3 is a flowchart illustrating how a target lock point radius is determined based on the current touch area in accordance with yet another exemplary embodiment; the present embodiment takes how to determine the target lock point radius according to the current touch area as an example based on the above embodiments. As shown in fig. 3, the determining the target lock point radius according to the current touch area in step S102 may include the following steps S301 to S302:
in step S301, a touch type of the touch operation is determined.
In this embodiment, after the touch information is acquired, the touch type of the touch operation may be determined based on the acquired touch information.
For example, after the touch information is obtained, the touch type may be determined based on information such as the initial touch point position and the current touch point position. The touch type may include a click type, a long press type, a slide type, and the like.
In another embodiment, the manner of determining the touch type of the touch operation can also be referred to the following embodiment shown in fig. 4, which is not described in detail herein.
In step S302, the target lock point radius is determined according to the touch type and the current touch area.
In this embodiment, after the touch type of the touch operation is determined, the target lock point radius may be determined according to the touch type and the current touch area.
For example, after determining the touch type of the touch operation, a corresponding target lock point radius may be set for each touch area size, such as a larger target lock point radius when determining that the touch area is larger, and a smaller target lock point radius when determining that the touch area is smaller.
In another embodiment, the above-mentioned manner of determining the target lock point radius according to the touch type and the current touch area may also refer to the embodiments shown in fig. 6A to 6C, which will not be described in detail herein.
As can be seen from the above description, in this embodiment, by determining the touch type of the touch operation and determining the target lock point radius according to the touch type and the current touch area, the target lock point radius can be accurately determined according to the current touch area, so as to lay an accurate foundation for subsequently determining the reporting position corresponding to the current touch point position based on the initial touch point position, the current touch point position, and the target lock point radius, and improve the accuracy of reporting the touch position.
FIG. 4 is a flowchart illustrating how a target lock point radius is determined based on the current touch area in accordance with another exemplary embodiment; as shown in fig. 4, the determining the target lock point radius according to the current touch area in step S102 may include the following steps S401 to S402:
in step S401, the touch type is determined based on the initial touch point position, the current touch point position, and the current touch duration.
In this embodiment, after the touch information is obtained, the touch type of the touch operation may be determined based on the obtained touch information, for example, the touch type is determined based on the initial touch point position, the current touch point position, and the current touch duration.
The touch information may further include a current touch duration, where the current touch duration is a contact duration between a touch body and a screen of the touch operation until a current moment.
For example, when a user touches the screen of the terminal device with the left and right thumbs, the touch device on the screen of the terminal device may detect a corresponding touch Diff (capacitance change amount), and further may obtain an initial touch point position and a current touch point position based on the touch Diff, and further may count a current touch area and a current touch duration.
In another embodiment, the manner of determining the touch type of the touch operation can also be referred to the following embodiment shown in fig. 5, which is not described in detail herein.
In step S402, the target lock point radius is determined according to the touch type and the current touch area.
For the explanation and explanation of step S402, reference may be made to the above embodiments, which are not described herein again.
As can be seen from the above description, in this embodiment, the touch type is determined based on the initial touch point position, the current touch point position, and the current touch duration, and the target lock point radius is determined according to the touch type and the current touch area, so that the target lock point radius is determined according to the current touch area, the accuracy of determining the target lock point radius can be improved, and further, the reporting position corresponding to the current touch point position is determined based on the initial touch point position, the current touch point position, and the target lock point radius in the following process, so that the accuracy of reporting the touch position can be improved.
FIG. 5 is a flowchart illustrating how the touch type is determined based on the initial touch point position, the current touch point position, and the current touch duration in accordance with an exemplary embodiment; based on the above embodiments, the present embodiment exemplarily illustrates how to determine the touch type based on the initial touch point position, the current touch point position, and the current touch duration. As shown in fig. 5, the determining the touch type based on the initial touch point position, the current touch point position and the current touch duration in step S401 may include the following steps S501 to S505:
in step S501, it is determined whether the distance between the current touch point position and the initial touch point position is less than or equal to a preset distance threshold: if yes, go to step S502; if not, step S505 is executed.
In step S502, it is determined whether the current touch duration is less than a set duration threshold: if yes, go to step S503; if not, go to step S504.
In step S503, it is determined that the touch type is a click type.
In step S504, it is determined that the touch type is a long press type.
In step S505, it is determined that the touch type is a sliding type.
In this embodiment, after the current touch point position and the initial touch point position are obtained, the distance between the current touch point position and the initial touch point position may be calculated, and then the distance may be compared with a preset distance threshold, and the current touch duration may be compared with a set duration threshold, and further, based on the comparison result, the following three touch types may be determined:
the first method comprises the following steps: when it is determined that the distance between the current touch point position and the initial touch point position is smaller than or equal to a preset distance threshold and the current touch duration is smaller than a set duration threshold, determining that the touch type is a click type;
and the second method comprises the following steps: and when the distance between the position of the current touch point and the position of the initial touch point is less than or equal to a preset distance threshold and the current touch duration is greater than or equal to the set duration threshold, determining that the touch type is a long press type.
And the third is that: and when the distance between the current touch point position and the initial touch point position is greater than the preset distance threshold, determining that the touch type is a sliding type.
As can be seen from the above description, in this embodiment, when it is determined that the distance between the current touch point position and the initial touch point position is less than or equal to a preset distance threshold, and the current touch duration is less than a set duration threshold, it is determined that the touch type is a click type; when the distance between the current touch point position and the initial touch point position is smaller than or equal to a preset distance threshold and the current touch duration is greater than or equal to the set duration threshold, determining that the touch type is a long press type; and when the distance between the current touch point position and the initial touch point position is greater than the preset distance threshold, determining that the touch type is a sliding type, so that the touch type can be accurately determined based on the initial touch point position, the current touch point position and the current touch duration, and an accurate basis is provided for subsequently determining the target lock point radius according to the touch type and the current touch area.
FIG. 6A is a flowchart illustrating how the target lock point radius is determined based on the type of click touch and the current touch area in accordance with an exemplary embodiment; FIG. 6B is a flowchart illustrating how the target lock point radius is determined based on the long press touch type and the current touch area in accordance with an exemplary embodiment; FIG. 6C is a flowchart illustrating how the target lock point radius is determined based on a sliding touch type and the current touch area in accordance with an exemplary embodiment; the present embodiment is exemplified by how to determine the target lock point radius according to the touch type and the current touch area on the basis of the above embodiments. As shown in fig. 6A, the determining the target lock point radius according to the touch type and the current touch area in step S302 may include the following steps S601-S604:
in step S601, if the touch type is determined to be the click type, step S602 is executed.
In step S602, it is determined whether the current touch area is greater than the set area threshold: if yes, go to step S603; if not, go to step S604.
In step S603, the length of the target lock point radius is determined as a first sub-radius length.
In step S604, the length of the target lock point radius is determined as a second sub-radius length.
In this embodiment, after the touch type is determined to be the click type, the current touch area may be compared with a set area threshold, and further, when it is determined that the current touch area is greater than the set area threshold, the length of the target lock point radius may be determined as a first sub-radius length; when it is determined that the current touch area is smaller than or equal to the set area threshold, the length of the target lock point radius may be determined as a second sub-radius length, where the first sub-radius length is greater than the second sub-radius length. That is, when it is determined that the current touch area is greater than the set area threshold, the length of the target lock point radius may be set longer, and when it is determined that the current touch area is less than or equal to the set area threshold, the length of the target lock point radius may be set shorter.
In another embodiment, as shown in fig. 6B, the determining the target lock point radius according to the touch type and the current touch area in step S302 may include the following steps S605 to S608:
in step S605, if the touch type is determined to be the click type, step S606 is executed.
In step S606, it is determined whether the current touch area is greater than the set area threshold: if yes, go to step S607; if not, go to step S608.
In step S607, the length of the target lock point radius is determined as a third sub-radius length.
In step S608, the length of the target lock point radius is determined as a fourth sub-radius length.
In this embodiment, after the touch type is determined to be the long press type, the current touch area may be compared with a set area threshold, and further, when it is determined that the current touch area is greater than the set area threshold, the length of the target lock point radius may be determined as a third sub-radius length (the third sub-radius length is less than the second sub-radius length); when it is determined that the current touch area is smaller than or equal to the set area threshold, the length of the target lock point radius may be determined as a fourth sub-radius length, where the third sub-radius length is greater than the fourth sub-radius length. That is, when it is determined that the current touch area is greater than the set area threshold, the length of the target lock point radius may be set longer, and when it is determined that the current touch area is less than or equal to the set area threshold, the length of the target lock point radius may be set shorter.
Similarly, in another embodiment, as shown in fig. 6C, the determining the target lock point radius according to the touch type and the current touch area in step S302 may include the following steps S609 to S612:
in step S609, if the touch type is determined to be the click type, step S610 is executed.
In step S610, it is determined whether the current touch area is greater than the set area threshold: if yes, go to step S611; if not, go to step S612.
In step S611, the length of the target lock point radius is determined as a third sub-radius length.
In step S612, the length of the target lock point radius is determined as a fourth sub-radius length.
In this embodiment, after the touch type is determined to be the sliding type, the current touch area may be compared with a set area threshold, and further, when it is determined that the current touch area is greater than the set area threshold, the length of the target lock point radius may be determined as a fifth sub-radius length (the fifth sub-radius length is smaller than the fourth sub-radius length); when it is determined that the current touch area is smaller than or equal to the set area threshold, the length of the target lock point radius may be determined as a sixth sub-radius length, where the fifth sub-radius length is greater than the sixth sub-radius length. That is, when it is determined that the current touch area is greater than the set area threshold, the length of the target lock point radius may be set longer, and when it is determined that the current touch area is less than or equal to the set area threshold, the length of the target lock point radius may be set shorter.
It can be understood that, after determining the current touch type, if the current touch area is large, if the radius of the target lock point is set too small, the image may be jittered due to a slight change of the finger touch report point, and thus the length of the radius of the target lock point may be set as long as possible; on the contrary, in the case that the current touch area is small, if the target lock point radius is set too large, the sensitivity of the operation performed on the screen may be reduced, and thus the length of the target lock point radius may be set as short as possible.
Fig. 7A is a flowchart illustrating a touch location reporting method according to yet another exemplary embodiment; the touch position reporting method can be applied to electronic equipment with a touch screen, such as a smart phone, a tablet computer and the like. As shown in fig. 7A, the touch position reporting method includes the following steps S701 to S703:
in step S701: and acquiring touch information under the condition that the touch operation is detected.
For example, when a user touches a screen of a terminal device in a target scene, the terminal device may obtain corresponding touch information.
In this embodiment, the touch information may include an initial touch point position, a current touch point position, and a current touch area.
The initial touch point position may be a position of a first touch point detected in the touch operation occurrence process, the current touch point position may be a position of a touch point detected at a current moment in the touch operation occurrence process, and the current touch area may be a contact area between a touch body and a screen of the touch operation at the current moment.
In step S702: and determining the radius of a target lock point according to the current touch area.
For the explanation and explanation of steps S701 to S702, reference may be made to the above embodiments, which are not described herein again.
In step S703: and when other touch points which are moved out of the lock point range corresponding to the target lock point radius are detected, determining the touch area when the other touch points are detected as a first touch area.
In step S704: if the first touch area is larger than a set area threshold, reporting the positions of other touch points according to the length of the radius of the lock point as a third radius length, wherein the third radius length is smaller than the first radius length.
In this embodiment, after the target lock point radius is determined according to the current touch area, if other touch points that move out of the lock point range corresponding to the target lock point radius are detected, the touch area when the touch point is detected can be determined, and the touch area is used as the first touch area. On the basis, the first touch area can be compared with a set area threshold; further, if it is determined that the first touch area is larger than the set area threshold, the length of the current target lock point radius may be set to a third radius length, and then the positions of the other touch points are reported, where the third radius length is smaller than the first radius length.
As can be seen from the above description, in this embodiment, when other touch points that move out of the lock point range corresponding to the target lock point radius are detected, the touch area when the other touch points are detected is determined as the first touch area, and then when the first touch area is greater than the set area threshold, the positions of the other touch points are reported according to the length of the lock point radius as the length of the third radius, where the length of the third radius is smaller than the length of the first radius, so that the lock point range corresponding to the target lock point radius can be used for reporting touch points outside the range, the accuracy of reporting the touch position can be improved, the accuracy of controlling the field direction in the target application scene based on the reported touch position can be improved, and the situation that the display screen shakes due to frequent variation of the reported touch position can be avoided, and further, the experience of the user can be improved.
For example, FIG. 7B is a diagram illustrating a game scenario, according to an exemplary embodiment. As shown in fig. 7B, when a touch operation is detected in a game scene, touch information may be obtained, where the touch information may include an initial touch point position, a current touch point position, and a current touch area, where the initial touch point position is a position of a first touch point detected in an occurrence process of the touch operation, the current touch point position is a position of a touch point detected at a current moment in the occurrence process of the touch operation, the current touch area is a contact area between a touch object and a screen of the touch operation at the current moment, a target lock point radius may be determined according to the current touch area, and a reporting position corresponding to the current touch point position may be determined based on the initial touch point position, the current touch point position, and the target lock point radius, and the reporting position may be reported, on this basis, the touch node for controlling the view key 100 on the screen of the terminal device may be determined based on the reported touch position.
As can be seen from the above description, in this embodiment, because the target lock point radius is determined based on the touch information on the screen of the terminal device, and the touch node for controlling the view key on the screen of the terminal device is determined based on the target lock point radius, the accuracy of controlling the view direction of the game scene can be improved based on a manner of improving the reporting accuracy of the touch position, the situation that the game picture shakes due to frequent change of the touch node can be avoided, and the experience of the game player can be further improved.
Fig. 8 is a block diagram illustrating a touch location reporting apparatus according to an exemplary embodiment; as shown in fig. 8, the apparatus includes: a touch information obtaining module 110, a lock point radius determining module 120, and a touch position reporting module 130, wherein:
a touch information obtaining module 110, configured to obtain touch information when a touch operation is detected, where the touch information includes an initial touch point position, a current touch point position, and a current touch area, where the initial touch point position is a position of a first touch point detected in an occurrence process of the touch operation, the current touch point position is a position of a touch point detected at a current moment in the occurrence process of the touch operation, and the current touch area is a contact area between a touch object and a screen of the touch operation at the current moment;
a lock point radius determination module 120, configured to determine a target lock point radius according to the current touch area;
a touch position reporting module 130, configured to determine a reporting position corresponding to the current touch point position based on the initial touch point position, the current touch point position, and the target lock point radius, and report the reporting position.
As can be seen from the above description, in this embodiment, when a touch operation is detected, touch information is obtained, a target lock point radius is determined according to the current touch area, and then a reporting position corresponding to the current touch point position is determined based on the initial touch point position, the current touch point position and the target lock point radius, and the reporting position is reported, because the target lock point radius is determined according to the touch information obtained when the touch operation is detected, and the reporting position corresponding to the current touch point position is determined based on the initial touch point position, the current touch point position and the target lock point radius, the accuracy of reporting the touch position can be improved, the accuracy of controlling the field direction in a target application scene based on the reported touch position can be improved, and the situation that a display image is jittered due to frequent change of the reported touch position can be avoided, and further, the experience of the user can be improved.
Fig. 9 is a block diagram of another touch location reporting device according to an example embodiment; the touch information obtaining module 210, the lock point radius determining module 220, and the touch position reporting module 230 have the same functions as the touch information obtaining module 110, the lock point radius determining module 120, and the touch position reporting module 130 in the embodiment shown in fig. 8, and are not described herein again.
As shown in fig. 9, the locking point radius determination module 220 may be further configured to:
when the current touch area is larger than a set area threshold, determining the length of the target lock point radius as a first radius length;
when the current touch area is smaller than or equal to the set area threshold, determining the length of the target lock point radius as a second radius length, wherein the first radius length is larger than the second radius length.
In an embodiment, the locking point radius determining module 220 may further include:
a touch type determining unit 221, configured to determine a touch type of the touch operation;
a lock point radius determining unit 222, configured to determine the target lock point radius according to the touch type and the current touch area.
In an embodiment, the touch information may further include a current touch duration, where the current touch duration is a contact duration between a touch object and a screen of the touch operation until a current time;
the touch type determining unit 221 may be further configured to determine the touch type based on the initial touch point position, the current touch point position, and the current touch duration.
In an embodiment, the touch type determining unit 220 may further be configured to:
when the distance between the current touch point position and the initial touch point position is smaller than or equal to a preset distance threshold and the current touch duration is smaller than a set duration threshold, determining that the touch type is a click type;
when the distance between the position of the current touch point and the position of the initial touch point is smaller than or equal to a preset distance threshold and the current touch duration is larger than or equal to a set duration threshold, determining that the touch type is a long press type;
and when the distance between the current touch point position and the initial touch point position is greater than the preset distance threshold, determining that the touch type is a sliding type.
In an embodiment, the lock point radius determination unit 222 may be further configured to:
when the touch type is a click type and the current touch area is larger than the set area threshold, determining the length of the target lock point radius as a first sub-radius length; when the touch type is a click type and the current touch area is smaller than or equal to the set area threshold, determining the length of the target lock point radius as a second sub-radius length; wherein the first sub-radius length is greater than the second sub-radius length;
when the touch type is a long press type and the current touch area is larger than the set area threshold, determining the length of the target lock point radius as a third sub-radius length; when the touch type is a long press type and the current touch area is smaller than or equal to the set area threshold, determining the length of the target lock point radius as a fourth sub-radius length, wherein the third sub-radius length is larger than the fourth sub-radius length;
when the touch type is a sliding type and the current touch area is larger than the set area threshold, determining the length of the target lock point radius as a fifth sub-radius length; when the touch type is a sliding type and the current touch area is smaller than or equal to the set area threshold, determining the length of the target lock point radius as a sixth sub-radius length, wherein the fifth sub-radius length is larger than the sixth sub-radius length;
wherein the first sub-radius length is greater than the third sub-radius length, which is greater than the fifth sub-radius length; the second sub-radius length is greater than the fourth sub-radius length, which is greater than the sixth sub-radius length.
In an embodiment, the lock point radius determination module 222 may be further configured to:
when other touch points which are moved out of the lock point range corresponding to the target lock point radius are detected, determining the touch area when the other touch points are detected as a first touch area;
the touch position reporting module is further configured to report the positions of the other touch points according to a length of a radius of a lock point as a length of a third radius when the first touch area is larger than the set area threshold, where the length of the third radius is smaller than the length of the first radius.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
FIG. 10 is a block diagram illustrating an electronic device in accordance with an example embodiment. For example, the apparatus 900 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 10, the apparatus 900 may include one or more of the following components: processing component 902, memory 904, power component 906, multimedia component 908, audio component 910, input/output (I/O) interface 912, sensor component 914, and communication component 916.
The processing component 902 generally controls overall operation of the device 900, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing element 902 may include one or more processors 920 to execute instructions to perform all or a portion of the steps of the methods described above. Further, processing component 902 can include one or more modules that facilitate interaction between processing component 902 and other components. For example, the processing component 902 can include a multimedia module to facilitate interaction between the multimedia component 908 and the processing component 902.
The memory 904 is configured to store various types of data to support operation at the device 900. Examples of such data include instructions for any application or method operating on device 900, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 904 may be implemented by any type or combination of volatile or non-volatile 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 disks.
The multimedia component 908 comprises a screen providing an output interface between the device 900 and a 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 an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 900 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 910 is configured to output and/or input audio signals. For example, audio component 910 includes a Microphone (MIC) configured to receive external audio signals when apparatus 900 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 904 or transmitted via the communication component 916. In some embodiments, audio component 910 also includes a speaker for outputting audio signals.
I/O interface 912 provides an interface between processing component 902 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 914 includes one or more sensors for providing status assessment of various aspects of the apparatus 900. For example, sensor assembly 914 may detect an open/closed state of device 900, the relative positioning of components, such as a display and keypad of device 900, the change in position of device 900 or a component of device 900, the presence or absence of user contact with device 900, the orientation or acceleration/deceleration of device 900, and the change in temperature of device 900. The sensor assembly 914 may also include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 914 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 914 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 916 is configured to facilitate communications between the apparatus 900 and other devices in a wired or wireless manner. The apparatus 900 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, 4G or 5G or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 916 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 900 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 components for executing the above-mentioned touch location reporting method.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 904 comprising instructions, executable by the processor 920 of the apparatus 900, to perform the touch location reporting method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
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 variations, 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 will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (14)
1. A touch position reporting method is characterized by comprising the following steps:
acquiring touch information under the condition that touch operation is detected, wherein the touch information comprises an initial touch point position, a current touch point position and a current touch area, the initial touch point position is the position of a first touch point detected in the touch operation generating process, the current touch point position is the position of a touch point detected at the current moment in the touch operation generating process, and the current touch area is the contact area between a touch body and a screen of the touch operation at the current moment;
determining the radius of a target lock point according to the current touch area;
determining a reporting position corresponding to the current touch point position based on the initial touch point position, the current touch point position and the target lock point radius, and reporting the reporting position;
the determining a target lock point radius according to the current touch area includes:
if the current touch area is larger than a set area threshold, determining the length of the target lock point radius as a first radius length;
if the current touch area is smaller than or equal to the set area threshold, determining the length of the target lock point radius as a second radius length, wherein the first radius length is larger than the second radius length.
2. The method of claim 1, wherein determining a target lock point radius according to the current touch area comprises:
determining a touch type of the touch operation;
and determining the radius of the target lock point according to the touch type and the current touch area.
3. The method according to claim 2, wherein the touch information further includes a current touch duration, wherein the current touch duration is a duration of contact between a touch object and a screen of the touch operation until a current time;
the determining the touch type of the touch operation comprises:
determining the touch type based on the initial touch point position, the current touch point position and the current touch duration.
4. The method of claim 3, wherein the determining the touch type based on the initial touch point position, the current touch point position, and the current touch duration comprises:
if the distance between the current touch point position and the initial touch point position is smaller than or equal to a preset distance threshold value, and the current touch duration is smaller than a set duration threshold value, determining that the touch type is a click type;
if the distance between the current touch point position and the initial touch point position is smaller than or equal to a preset distance threshold value, and the current touch duration is larger than or equal to the set duration threshold value, determining that the touch type is a long press type;
and if the distance between the current touch point position and the initial touch point position is greater than the preset distance threshold, determining that the touch type is a sliding type.
5. The method of claim 4, wherein the determining the target lock point radius according to the touch type and the current touch area comprises:
if the touch type is a click type and the current touch area is larger than the set area threshold, determining the length of the target lock point radius as a first sub-radius length; if the touch type is a click type and the current touch area is smaller than or equal to the set area threshold, determining the length of the target lock point radius as a second sub-radius length; wherein the first sub-radius length is greater than the second sub-radius length;
if the touch type is a long press type and the current touch area is larger than the set area threshold, determining the length of the target lock point radius as a third sub-radius length; if the touch type is a long press type and the current touch area is smaller than or equal to the set area threshold, determining the length of the target lock point radius as a fourth sub-radius length, wherein the third sub-radius length is larger than the fourth sub-radius length;
if the touch type is a sliding type and the current touch area is larger than the set area threshold, determining the length of the target lock point radius as a fifth sub-radius length; if the touch type is a sliding type and the current touch area is smaller than or equal to the set area threshold, determining the length of the target lock point radius as a sixth sub-radius length, wherein the fifth sub-radius length is larger than the sixth sub-radius length;
wherein the first sub-radius length is greater than the third sub-radius length, which is greater than the fifth sub-radius length; the second sub-radius length is greater than the fourth sub-radius length, which is greater than the sixth sub-radius length.
6. The method of claim 1, further comprising:
when other touch points which are moved out of the lock point range corresponding to the target lock point radius are detected, determining the touch area when the other touch points are detected as a first touch area;
if the first touch area is larger than the set area threshold, reporting the positions of other touch points according to the length of the radius of the lock point as a third radius length, wherein the third radius length is smaller than the first radius length.
7. A touch position reporting device, the device comprising:
the touch information acquisition module is used for acquiring touch information under the condition that touch operation is detected, wherein the touch information comprises an initial touch point position, a current touch point position and a current touch area, the initial touch point position is the position of a first touch point detected in the touch operation occurrence process, the current touch point position is the position of a touch point detected at the current moment in the touch operation occurrence process, and the current touch area is the contact area between a touch body and a screen of the touch operation at the current moment;
the lock point radius determining module is used for determining a target lock point radius according to the current touch area;
a touch position reporting module, configured to determine a reporting position corresponding to the current touch point position based on the initial touch point position, the current touch point position, and the target lock point radius, and report the reporting position;
the lock point radius determination module is further configured to:
when the current touch area is larger than a set area threshold, determining the length of the target lock point radius as a first radius length;
when the current touch area is smaller than or equal to the set area threshold, determining the length of the target lock point radius as a second radius length, wherein the first radius length is larger than the second radius length.
8. The apparatus of claim 7, wherein the lock point radius determination module comprises:
the touch type determining unit is used for determining the touch type of the touch operation;
and the lock point radius determining unit is used for determining the target lock point radius according to the touch type and the current touch area.
9. The apparatus according to claim 8, wherein the touch information further comprises a current touch duration, wherein the current touch duration is a duration of contact between a touch object and a screen of the touch operation until a current moment;
the touch type determining unit is further configured to determine the touch type based on the initial touch point position, the current touch point position, and the current touch duration.
10. The apparatus of claim 9, wherein the touch type determination unit is further configured to:
when the distance between the current touch point position and the initial touch point position is smaller than or equal to a preset distance threshold and the current touch duration is smaller than a set duration threshold, determining that the touch type is a click type;
when the distance between the position of the current touch point and the position of the initial touch point is smaller than or equal to a preset distance threshold and the current touch duration is larger than or equal to a set duration threshold, determining that the touch type is a long press type;
and when the distance between the current touch point position and the initial touch point position is greater than the preset distance threshold, determining that the touch type is a sliding type.
11. The apparatus of claim 10, wherein the lock point radius determination unit is further configured to:
when the touch type is a click type and the current touch area is larger than the set area threshold, determining the length of the target lock point radius as a first sub-radius length; when the touch type is a click type and the current touch area is smaller than or equal to the set area threshold, determining the length of the target lock point radius as a second sub-radius length; wherein the first sub-radius length is greater than the second sub-radius length;
when the touch type is a long press type and the current touch area is larger than the set area threshold, determining the length of the target lock point radius as a third sub-radius length; when the touch type is a long press type and the current touch area is smaller than or equal to the set area threshold, determining the length of the target lock point radius as a fourth sub-radius length, wherein the third sub-radius length is larger than the fourth sub-radius length;
when the touch type is a sliding type and the current touch area is larger than the set area threshold, determining the length of the target lock point radius as a fifth sub-radius length; when the touch type is a sliding type and the current touch area is smaller than or equal to the set area threshold, determining the length of the target lock point radius as a sixth sub-radius length, wherein the fifth sub-radius length is larger than the sixth sub-radius length;
wherein the first sub-radius length is greater than the third sub-radius length, which is greater than the fifth sub-radius length; the second sub-radius length is greater than the fourth sub-radius length, which is greater than the sixth sub-radius length.
12. The apparatus of claim 7, wherein the lock point radius determination module is further configured to:
when other touch points which are moved out of the lock point range corresponding to the target lock point radius are detected, determining the touch area when the other touch points are detected as a first touch area;
the touch position reporting module is further configured to report the positions of the other touch points according to a length of a radius of a lock point as a length of a third radius when the first touch area is larger than the set area threshold, where the length of the third radius is smaller than the length of the first radius.
13. An electronic device, comprising:
a processor, and a memory for storing processor-executable instructions;
wherein the processor is configured to perform the touch location reporting method of any one of claims 1-6.
14. A computer-readable storage medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the steps of the touch location reporting method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911285310.1A CN112965653B (en) | 2019-12-13 | 2019-12-13 | Touch position reporting method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911285310.1A CN112965653B (en) | 2019-12-13 | 2019-12-13 | Touch position reporting method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112965653A CN112965653A (en) | 2021-06-15 |
CN112965653B true CN112965653B (en) | 2022-08-12 |
Family
ID=76270805
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911285310.1A Active CN112965653B (en) | 2019-12-13 | 2019-12-13 | Touch position reporting method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112965653B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115686252B (en) * | 2021-09-24 | 2023-10-20 | 荣耀终端有限公司 | Position information calculation method in touch screen and electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103246412A (en) * | 2012-02-08 | 2013-08-14 | 索尼移动通信日本株式会社 | Method for detecting a contact |
CN105320316A (en) * | 2014-06-17 | 2016-02-10 | 中兴通讯股份有限公司 | Method and device for debouncing of touch screen and terminal |
CN106598335A (en) * | 2016-12-16 | 2017-04-26 | 广东欧珀移动通信有限公司 | Touch screen control method and apparatus for mobile terminal, and mobile terminal |
CN110275636A (en) * | 2019-06-11 | 2019-09-24 | 广州小鹏汽车科技有限公司 | A kind of touch-control anti-fluttering method, device, system, terminal device and vehicle |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5306266B2 (en) * | 2010-03-15 | 2013-10-02 | キヤノン株式会社 | Imaging apparatus and control method thereof |
-
2019
- 2019-12-13 CN CN201911285310.1A patent/CN112965653B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103246412A (en) * | 2012-02-08 | 2013-08-14 | 索尼移动通信日本株式会社 | Method for detecting a contact |
CN105320316A (en) * | 2014-06-17 | 2016-02-10 | 中兴通讯股份有限公司 | Method and device for debouncing of touch screen and terminal |
CN106598335A (en) * | 2016-12-16 | 2017-04-26 | 广东欧珀移动通信有限公司 | Touch screen control method and apparatus for mobile terminal, and mobile terminal |
CN110275636A (en) * | 2019-06-11 | 2019-09-24 | 广州小鹏汽车科技有限公司 | A kind of touch-control anti-fluttering method, device, system, terminal device and vehicle |
Also Published As
Publication number | Publication date |
---|---|
CN112965653A (en) | 2021-06-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3173970A1 (en) | Image processing method and apparatus | |
CN107102772B (en) | Touch control method and device | |
CN106557201B (en) | Pressure detection method and device | |
CN107480785B (en) | Convolutional neural network training method and device | |
CN107635074B (en) | Method, apparatus and computer-readable storage medium for controlling alarm | |
CN107562349B (en) | Method and device for executing processing | |
CN105242837B (en) | Five application page acquisition methods and terminal | |
CN104850643B (en) | Picture comparison method and device | |
CN111880681A (en) | Touch screen sampling rate adjusting method and device and computer storage medium | |
JP2021531519A (en) | Touch signal processing methods, devices and media | |
CN112965653B (en) | Touch position reporting method and device and electronic equipment | |
CN111506234B (en) | Method and device for preventing false touch of edge of touch screen, storage medium and electronic equipment | |
CN111383296B (en) | Method and device for displaying drawn track and storage medium | |
CN104112460B (en) | Method and device for playing audio data | |
CN108762554B (en) | Touch event response method and device | |
CN103973883B (en) | A kind of method and device controlling voice-input device | |
CN107203315B (en) | Click event processing method and device and terminal | |
CN109922203B (en) | Terminal, screen off method and device | |
CN112954596B (en) | Data sharing method, device, equipment and storage medium | |
CN114442789A (en) | Dark screen control method, device, equipment and storage medium | |
CN114296587A (en) | Cursor control method and device, electronic equipment and storage medium | |
CN115145415A (en) | Touch control method and device, electronic equipment and storage medium | |
CN109813295B (en) | Orientation determination method and device and electronic equipment | |
CN112187326A (en) | Antenna control method, device, equipment and storage medium | |
CN111538447A (en) | Information display method, device, equipment and storage medium |
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 |