CN108762554B - Touch event response method and device - Google Patents

Touch event response method and device Download PDF

Info

Publication number
CN108762554B
CN108762554B CN201810482557.1A CN201810482557A CN108762554B CN 108762554 B CN108762554 B CN 108762554B CN 201810482557 A CN201810482557 A CN 201810482557A CN 108762554 B CN108762554 B CN 108762554B
Authority
CN
China
Prior art keywords
touch
touch event
determining
precision
touch panel
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
CN201810482557.1A
Other languages
Chinese (zh)
Other versions
CN108762554A (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.)
Ke Technology
Original Assignee
Ke Technology
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 Ke Technology filed Critical Ke Technology
Priority to CN201810482557.1A priority Critical patent/CN108762554B/en
Publication of CN108762554A publication Critical patent/CN108762554A/en
Application granted granted Critical
Publication of CN108762554B publication Critical patent/CN108762554B/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/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/0412Digitisers structurally integrated in a display
    • 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

Abstract

The disclosure relates to a touch event response method and device. The method comprises the following steps: acquiring position related information of a touch object when the touch object executes a first touch event aiming at a touch panel; acquiring target moving precision adjusted according to the precision adjusting instruction; determining an actual moving distance corresponding to the position related information according to the target moving precision to obtain a second touch event; and responding to the second touch event, and determining the current touch focus position. According to the technical scheme, when the user executes the first touch event, the actual moving distance determined based on the pre-adjusted moving precision is correspondingly moved to determine the current touch focus position, so that the user can freely and flexibly adjust the moving precision corresponding to the touch focus according to the requirement, and the method is suitable for more scenes with different precision requirements.

Description

Touch event response method and device
Technical Field
The present disclosure relates to the field of terminal technologies, and in particular, to a touch event response method and apparatus.
Background
In the related art, more and more users prefer to use a device having a touch panel, such as a mobile phone having a touch screen, in order to facilitate various touch events on the touch panel, for example: the visual angle, the action and the like in the game can be adjusted in a sliding way on the touch control surface.
However, in the related art, the movement accuracy corresponding to the touch focus on the touch panel cannot be adjusted, and the focus position can only be determined by using the default movement accuracy of a manufacturer when the touch panel leaves a factory, so that the method cannot be applied to scenes with different accuracy requirements, and thus, not only is the movement accuracy corresponding to the focus limited, but also the user experience is influenced.
Disclosure of Invention
The embodiment of the disclosure provides a touch event response method and device. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a touch event response method, including:
acquiring position related information of a touch object when the touch object executes a first touch event aiming at the touch panel;
obtaining target moving precision adjusted according to a precision adjusting instruction, wherein a target unit moving distance of a touch focus position on the touch panel, which needs to move relative to the touch panel, is determined;
determining an actual moving distance corresponding to the position-related information according to the target moving precision to obtain a second touch event;
and responding to the second touch event, and determining the current touch focus position.
In one embodiment, the method further comprises:
acquiring original movement precision corresponding to the touch focus;
determining an actual moving distance corresponding to the position-related information according to the target moving precision to obtain a second touch event, including:
determining an original unit movement distance corresponding to the touch focus according to the original movement precision; and determining the actual moving distance according to the original unit moving distance and the target unit moving distance to obtain the second touch event.
In one embodiment, prior to obtaining the position-related information when the touch object performs the first touch event with respect to the touch panel, the method further comprises:
and intercepting the first touch event through an interception popup window covered on the touch panel.
In one embodiment, the interception pop-up window is a pop-up window with adjustable size and position;
and/or
The intercepting pop-up window is a pop-up window with preset transparency;
in one embodiment, prior to responding to the second touch event, the method further comprises:
sending the second touch event to an operating system of the device, and sending the second touch event to a current application running in a foreground by the operating system;
or
And sending the second touch event to a drive file corresponding to the touch panel, reading the second touch event from the drive file by an operating system of the equipment, and sending the second touch event to the current application running in the foreground.
In one embodiment, the location related information comprises: the current position of the touch object relative to the touch panel in the current detection period; and/or
The location related information includes: and the movement distance of the touch object relative to the touch panel in a preset time period.
In one embodiment, when the position-related information includes the current position, the determining an actual moving distance corresponding to the position-related information according to the target moving accuracy to obtain a second touch event includes:
determining the historical position of the touch object relative to the touch panel in the last detection period adjacent to the current detection period;
determining a position difference between the current position and the historical position;
and determining the actual moving distance according to the target moving precision and the position difference.
According to a second aspect of the embodiments of the present disclosure, there is provided a touch event response device, including:
the first acquisition module is used for acquiring position related information of a touch object when the touch object executes a first touch event aiming at the touch panel;
a second obtaining module, configured to obtain target movement accuracy adjusted according to an accuracy adjustment instruction, where the target movement accuracy is used to indicate a target unit movement distance of a touch focus on the touch panel relative to the touch panel when the touch object moves a unit distance relative to the touch panel;
the determining module is used for determining an actual moving distance corresponding to the position related information according to the target moving precision to obtain a second touch event;
and the response module is used for responding to the second touch event and moving the touch focus on the touch panel by the actual moving distance.
In one embodiment, the apparatus further comprises:
the third acquisition module is used for acquiring the original movement precision of the touch focus;
the determining module comprises:
the first determining submodule is used for determining an original unit moving distance corresponding to the touch focus according to the original moving precision; and determining the actual moving distance according to the original unit moving distance and the target unit moving distance to obtain the second touch event.
In one embodiment, the apparatus further comprises:
the intercepting module is used for intercepting a first touch event through an intercepting popup window covered on the touch panel before position related information of a touch object executing the first touch event aiming at the touch panel is acquired.
In one embodiment, the interception pop-up window is a pop-up window with adjustable size and position;
and/or
The intercepting pop-up window is a pop-up window with preset transparency;
in one embodiment, the apparatus further comprises:
the first sending module is used for sending the second touch event to an operating system of the equipment before responding to the second touch event, and the operating system sends the second touch event to a current application running in a foreground;
or
And the second sending module is used for sending the second touch event to a drive file corresponding to the touch panel, reading the second touch event from the drive file by an operating system of the equipment, and sending the second touch event to the current application running on the foreground.
In one embodiment, the location related information comprises: the current position of the touch object relative to the touch panel in the current detection period; and/or
The location related information includes: and the movement distance of the touch object relative to the touch panel in a preset time period.
In one embodiment, the determining module comprises:
a second determining sub-module, configured to determine, when the position-related information includes the current position, a historical position of the touch object with respect to the touch panel in a last detection period adjacent to the current detection period;
a third determining submodule for determining a position difference between the current position and the historical position;
and the fourth determining submodule is used for determining the actual moving distance according to the target moving precision and the position difference.
According to a third aspect of the embodiments of the present disclosure, there is provided a touch event response apparatus, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring position related information of a touch object when the touch object executes a first touch event aiming at the touch panel;
obtaining target movement precision adjusted according to a precision adjustment instruction, wherein the target movement precision is used for determining a target unit movement distance that a touch focus position on the touch panel needs to move relative to the touch panel when the touch object moves a unit distance relative to the touch panel;
determining an actual moving distance corresponding to the position-related information according to the target moving precision to obtain a second touch event;
and responding to the second touch event, and determining the current touch focus position.
According to a fourth aspect of embodiments of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions, wherein the instructions, when executed by a processor, implement the steps of the method of any one of the first aspect.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
according to the technical scheme provided by the embodiment of the disclosure, when the position related information is obtained, by obtaining the target moving precision adjusted according to the precision adjusting instruction, the actual moving distance corresponding to the position-related information can be determined according to the target moving precision to obtain a second touch event, so that when the user performs the first touch event, the actual movement distance determined based on the pre-adjusted movement accuracy is correspondingly moved, so as to determine the current touch focus position, thereby enabling the user to freely and flexibly adjust the movement precision corresponding to the touch focus according to the requirement, therefore, the method is suitable for more scenes with different requirements on the precision, for example, after the moving precision corresponding to the touch focus is improved, the touch focus position can be determined more accurately based on the movement precision adjusted by the user, which is also beneficial to further improving the use experience of the user on the application with higher requirement on the focus movement precision, such as games and the like.
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 present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow chart illustrating a touch event response method according to an exemplary embodiment.
FIG. 2 is a flow chart illustrating another touch event response method in accordance with an exemplary embodiment.
FIG. 3 is a block diagram illustrating a touch event responsive device in accordance with an exemplary embodiment.
FIG. 4 is a block diagram illustrating another touch event responsive device in accordance with an exemplary embodiment.
FIG. 5 is a block diagram illustrating yet another touch event responsive device in accordance with an exemplary embodiment.
FIG. 6 is a block diagram illustrating a device adapted for use in response to a touch event according to an exemplary 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 implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
In order to solve the above technical problem, an embodiment of the present disclosure provides a touch event response method, which can be used in a touch event response program, system or device, and an execution subject corresponding to the method can be a device such as a mobile phone with a touch panel. As shown in fig. 1, the method includes steps S101 to S104:
in step S101, position related information of a touch object executing a first touch event on a touch panel is obtained;
in step S102, obtaining a target movement precision adjusted according to the precision adjustment instruction, where the target movement precision is used to determine a touch focus on the touch panel when the touch object is moved by a unit distance relative to the touch panel, and the target movement precision is used to indicate that the touch object needs to be moved by the unit distance relative to the touch panel;
the precision adjustment instruction may be derived from a touch operation of a user, for example: the user can increase or decrease the movement precision corresponding to the touch focus through different operations on the interface on which the precision adjustment option is displayed, or directly input the desired movement precision, and no matter which way is adopted, the system can receive the precision adjustment instruction and adjust the precision to the target movement precision corresponding to the precision adjustment instruction. Before step S102 is executed, the movement precision of the touch focus can be freely adjusted according to the received touch focus movement precision adjustment instruction, so that the user can personally adjust the movement precision of the touch focus at any time according to personal needs.
Of course, a precision adjustment option may also be set, so that when the switch is turned on, the precision corresponding to the touch focus can be adjusted, otherwise, the precision cannot be adjusted.
The touch object may be a finger, a stylus, or the like.
In step S103, determining an actual movement distance corresponding to the position-related information according to the target movement precision, to obtain a second touch event;
in step S104, a current touch focus position is determined in response to the second touch event.
When the position-related information is acquired, by acquiring the target movement precision adjusted according to the precision adjustment instruction, the actual moving distance corresponding to the position-related information can be determined according to the target moving precision to obtain a second touch event, so that when the user performs the first touch event, the actual movement distance determined based on the pre-adjusted movement accuracy is correspondingly moved, so as to determine the current touch focus position, thereby enabling the user to freely and flexibly adjust the movement precision corresponding to the touch focus according to the requirement, therefore, the method is suitable for more scenes with different requirements on the precision, for example, after the moving precision corresponding to the touch focus is improved, the touch focus position can be determined more accurately based on the movement precision adjusted by the user, which is also beneficial to further improving the use experience of the user on the application with higher requirement on the focus movement precision, such as games and the like.
In one embodiment, the method further comprises:
acquiring original movement precision corresponding to a touch focus;
before the original movement accuracy, i.e. the touch accuracy is not adjusted, the manufacturer defaults to the movement accuracy corresponding to the touch focus.
In step S103 shown in fig. 1, determining an actual moving distance corresponding to the position-related information according to the target moving precision to obtain a second touch event, may be executed as:
determining an original unit moving distance corresponding to the touch focus according to the original moving precision;
and determining the actual moving distance according to the original unit moving distance and the target unit moving distance to obtain a second touch event.
By obtaining the original movement precision corresponding to the touch focus, the original unit movement distance corresponding to the touch focus can be determined (that is, when the touch object moves the unit distance, the distance that the touch focus should move is determined according to the original movement precision), and further, the actual movement distance is accurately determined according to the original unit movement distance and the target unit movement distance, so as to obtain the second touch event, so that the position of the touch focus can be more accurately determined based on the movement precision adjusted by the user, which is also beneficial to further improving the use experience of the user on applications such as games and the like with higher requirements on the focus movement precision.
The step of determining the actual movement distance according to the original unit movement distance and the target unit movement distance to obtain the second touch event may be performed as follows:
the first method is as follows: the original unit moving distance can be directly replaced by the target unit moving distance, so that the actual moving distance is determined only according to the target unit moving distance, and a second touch event is obtained.
Or
The second method comprises the following steps: and carrying out weighted summation on the original unit moving distance and the target unit moving distance to obtain a comprehensive unit moving distance, and then obtaining the second touch event according to the comprehensive unit moving distance.
For example: when the position-related information is the relative movement distance of the touch object with respect to the touch panel, if the first mode is performed, the relative movement distance is multiplied by the target unit movement distance, so that the actual movement distance of the touch focus can be obtained, that is, the second touch event is obtained. If the second touch event is performed, the relative movement distance may be multiplied by the integrated unit movement distance, so as to obtain the actual movement distance of the touch focus, i.e. obtain the second touch event.
In one embodiment, before obtaining the position-related information when the touch object performs the first touch event with respect to the touch panel, the method further comprises:
and intercepting the first touch event through an interception popup window covered on the touch panel.
Before the position related information is acquired, the first touch event can be automatically intercepted through an intercepting popup covered on the touch panel, so that the first touch event is prevented from being directly responded according to the original movement precision, and after the position related information of the first touch event is acquired, the actual movement distance of the touch focus can be calculated based on the adjusted target movement precision, so that the movement precision of the touch focus can be adjusted, and the use experience of a user on the application such as games and the like can be further improved.
In one embodiment, the interception popup is a popup with adjustable size and position;
and/or
The intercepting pop-up window is a pop-up window with preset transparency;
the intercepting popup is a special popup, the size and the position of the intercepting popup can be freely adjusted by a user, and when the size of the intercepting popup is smaller and the whole touch panel is not covered, the touch panel is equivalent to the moving precision of two touch focuses.
Of course, the transparency of the intercepting popup window can be freely adjusted, the value range of the intercepting popup window is [0,1], and the intercepting popup window can be set to be completely transparent in order to avoid influencing a user.
In one embodiment, prior to responding to the second touch event, the method further comprises:
sending the second touch event to an operating system of the equipment, and sending the second touch event to a current application running on a foreground by the operating system;
or
And sending the second touch event to a drive file corresponding to the touch panel, reading the second touch event from the drive file by an operating system of the device, and sending the second touch event to a current application running in a foreground, wherein the operating system can be an android operating system.
Before responding to the second touch event, the second touch event may be directly sent to the operating system of the device, and then the operating system sends the second touch event to the current application running on the foreground, or the second touch event is sent to the driver file corresponding to the touch panel, and then the operating system of the device reads the second touch event from the driver file and sends the second touch event to the current application running on the foreground, so that the foreground application directly responds to the second touch event, and the second touch event is prevented from being intercepted.
In one embodiment, the location-related information includes: the current position of the touch object relative to the touch panel in the current detection period; and/or
The position-related information includes: and the moving distance of the touch object relative to the touch panel in a preset time period.
The position-related information may be an absolute position, i.e., a current position, or a relative position, i.e., a moving distance of the touch object relative to the touch panel within a preset time period. The preset time period may be a duration of N detection cycles.
As shown in fig. 2, in an embodiment, when the position-related information includes the current position, step S103 shown in fig. 1, namely, determining the actual moving distance corresponding to the position-related information according to the target moving precision to obtain the second touch event, may include steps S201 to S203:
in step S201, determining a historical position of the touch object relative to the touch panel in a previous detection period adjacent to the current detection period;
in step S202, a position difference between the current position and the history position is determined;
in step S203, the actual movement distance is determined based on the target movement accuracy and the position difference.
When the position-related information is an absolute position, that is, the current position, the historical position of the touch object relative to the touch panel in the previous detection period adjacent to the current detection period may be determined, and then the position difference between the current position and the historical position may be determined, and according to the target movement precision and the position difference, the actual movement distance may be accurately determined (the actual movement distance is the target movement precision — the position difference), so as to more accurately determine the position of the touch focus based on the movement precision adjusted by the user, which is also beneficial to further improving the user experience of applications such as games, which have higher requirements on focus movement precision.
When the position-related information includes the current position, after the actual movement distance is calculated, and when the position of the touch focus (i.e., the current touch focus position) is obtained, the current touch focus position is determined by adding the actual movement distance to the latest historical focus position in the previous detection period, i.e., the historical focus position in the previous detection period.
When the position-related information includes a movement distance (i.e., a relative position) of the touch object with respect to the touch panel within a preset time period, an actual movement distance is equal to a target movement accuracy, the relative position is the target movement accuracy, and when the position of the touch focus (i.e., the current touch focus position) is obtained, the historical focus position at the starting time of the preset time period also needs to be combined, that is, the position determined by adding the actual movement distance to the historical focus position at the starting time of the preset time period is the current touch focus position.
The solution of the invention will be further described below with reference to fig. 3:
the touch event response apparatus 300 of the present invention may include: a parameter adjusting unit 301, a monitoring intercepting unit 302, a data processing unit 303 and an event injecting unit 304, wherein:
the parameter adjusting unit 301 is provided with a switch for adjusting the movement accuracy of the touch focus, and is used for the user to adjust the movement accuracy of the touch focus.
The monitoring intercepting unit 302 is configured to send data in the intercepted touch event (i.e., an absolute position or a relative position of the touch event with respect to the touch panel) to the data processing unit 303.
The data processing unit 303 is configured to calculate the data and the adjusted movement precision stored in the parameter adjusting unit 301 to regenerate a new touch event (where the new touch event is used to indicate that the touch focus is determined by moving a certain distance based on the adjusted movement precision), and then send the new touch event to the event injecting unit 304 for event injection.
The event injection unit 304 is configured to inject a new touch event, and specifically, may send the new touch event to a driver file, and the operating system reads the new touch event from the driver file and sends the new touch event to a foreground application for response; or sending the new touch event to the operating system, and sending the new touch event to the foreground application for response by the operating system.
The monitor intercepting unit 302 covers an area on the touch panel with a special pop-up window (i.e. a pop-up window with adjustable size, position and transparency), and then intercepts the touch event in the area. The event injection unit 304 performs injection using the android system api, and this unit needs to acquire a root authority of the system to complete the operation (i.e., the touch event response apparatus 300 is a system-level application). Due to the limitation of the android system, in order to prevent the injected event from being intercepted again by the popup, the touch event distribution module of the android system needs to be modified to ignore the popup (i.e. to enable the event injection unit 304 to perform the sending step).
As shown in fig. 4, according to a second aspect of the embodiments of the present disclosure, there is provided a touch event responding apparatus, including:
a first obtaining module 401 configured to obtain position-related information when a touch object performs a first touch event on a touch panel;
a second obtaining module 402, configured to obtain target movement precision adjusted according to the precision adjustment instruction, where the target movement precision is configured to determine a target unit movement distance that a touch focus position on the touch panel needs to move relative to the touch panel when a touch object moves a unit distance relative to the touch panel;
the determining module 403 is configured to determine an actual moving distance corresponding to the position-related information according to the target moving precision, so as to obtain a second touch event;
a response module 404 configured to determine a current touch focus position in response to the second touch event.
In one embodiment, the touch event responding apparatus further includes:
the third acquisition module is configured to acquire the original movement precision corresponding to the touch focus;
the determining module 403 may include:
the first determining submodule is configured to determine an original unit moving distance corresponding to the touch focus according to the original moving precision; and determining the actual moving distance according to the original unit moving distance and the target unit moving distance to obtain a second touch event.
In one embodiment, the touch event responding apparatus further includes:
the intercepting module is configured to intercept a first touch event through an intercepting popup window covered on the touch panel before position related information of a touch object executing the first touch event aiming at the touch panel is acquired.
In one embodiment, the interception popup is a popup with adjustable size and position;
and/or
The intercepting pop-up window is a pop-up window with preset transparency;
in one embodiment, the apparatus further comprises:
a first sending module configured to send the second touch event to an operating system of the device before responding to the second touch event, the operating system sending the second touch event to a current application running in a foreground;
or
And the second sending module is configured to send the second touch event to a driver file corresponding to the touch panel, read the second touch event from the driver file by an operating system of the device, and send the second touch event to the current application running in the foreground.
In one embodiment, the location-related information includes: the current position of the touch object relative to the touch panel in the current detection period; and/or
The position-related information includes: and the moving distance of the touch object relative to the touch panel in a preset time period.
As shown in fig. 5, in one embodiment, the determining module 403 may include:
a second determination submodule 4031 configured to determine, when the position-related information includes the current position, a historical position of the touch object with respect to the touch panel in a last detection period adjacent to the current detection period;
a third determination submodule 4032 configured to determine a position difference between the current position and the historical position;
a fourth determination submodule 4033 configured to determine an actual movement distance from the target movement accuracy and the position difference.
Finally, it is to be noted that: those skilled in the art can freely combine the embodiments of the present disclosure according to actual requirements, and details are not described herein.
According to a third aspect of the embodiments of the present disclosure, there is provided a touch event response apparatus, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring position related information of a touch object when the touch object executes a first touch event aiming at the touch panel;
obtaining target movement precision adjusted according to a precision adjustment instruction, wherein the target movement precision is used for determining a target unit movement distance that a touch focus position on the touch panel needs to move relative to the touch panel when the touch object moves a unit distance relative to the touch panel;
determining an actual moving distance corresponding to the position-related information according to the target moving precision to obtain a second touch event;
and responding to the second touch event, and moving the touch focus on the touch panel by the actual moving distance.
The processor may be further configured to:
the method further comprises the following steps:
acquiring original movement precision corresponding to the touch focus;
determining an actual moving distance corresponding to the position-related information according to the target moving precision to obtain a second touch event, including:
determining an original unit movement distance corresponding to the touch focus according to the original movement precision; and determining the actual moving distance according to the original unit moving distance and the target unit moving distance to obtain the second touch event.
The processor may be further configured to:
before obtaining position-related information when a touch object performs a first touch event with respect to the touch panel, the method further comprises:
and intercepting the first touch event through an interception popup window covered on the touch panel.
The processor may be further configured to:
the intercepting pop-up window is a pop-up window with adjustable size and position;
and/or
The intercepting pop-up window is a pop-up window with preset transparency;
the processor may be further configured to:
before responding to the second touch event, the method further comprises:
sending the second touch event to an operating system of the device, and sending the second touch event to a current application running in a foreground by the operating system;
or
And sending the second touch event to a drive file corresponding to the touch panel, reading the second touch event from the drive file by an operating system of the equipment, and sending the second touch event to the current application running in the foreground.
The processor may be further configured to:
the location related information includes: the current position of the touch object relative to the touch panel in the current detection period; and/or
The location related information includes: and the movement distance of the touch object relative to the touch panel in a preset time period.
The processor may be further configured to:
when the position-related information includes the current position, determining an actual moving distance corresponding to the position-related information according to the target moving precision to obtain a second touch event, including:
determining the historical position of the touch object relative to the touch panel in the last detection period adjacent to the current detection period;
determining a position difference between the current position and the historical position;
and determining the actual moving distance according to the target moving precision and the position difference.
Fig. 6 is a block diagram illustrating a touch event response apparatus 600, which is suitable for a terminal device, according to an exemplary embodiment. For example, the apparatus 600 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. 6, the apparatus 600 may include one or at least two of the following components: processing component 602, memory 604, power component 606, multimedia component 608, audio component 610, input/output (I/O) interface 612, sensor component 614, and communication component 616.
The processing component 602 generally controls overall operation of the device 600, such as operations associated with telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or at least two processors 620 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 602 can include one or at least two modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 can include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is configured to store various types of data to support operation at the device 600. Examples of such data include instructions for any stored object or method operating on device 600, contact user data, phonebook data, messages, pictures, videos, and so forth. The memory 604 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.
Power supply component 606 provides power to the various components of device 600. The power components 606 may include a power management system, one or at least two power sources, and other components associated with generating, managing, and distributing power for the apparatus 600.
The multimedia component 608 includes a screen that provides an output interface between the device 600 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 at least two 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 608 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 600 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 610 is configured to output and/or input audio signals. For example, audio component 610 includes a Microphone (MIC) configured to receive external audio signals when apparatus 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 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 assembly 614 includes one or at least two sensors for providing various aspects of condition assessment for the device 600. For example, the sensor component 614 may detect an open/closed state of the device 600, the relative positioning of components, such as the device and keypad of the apparatus 600, the sensor component 614 may also detect a change in position of the apparatus 600 or a component of the apparatus 600, the presence or absence of user contact with the apparatus 600, orientation or acceleration/deceleration of the apparatus 600, and a change in temperature of the apparatus 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 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 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is configured to facilitate communications between the apparatus 600 and other devices in a wired or wireless manner. The apparatus 600 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 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 600 may be implemented by one or at least two Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 604 comprising instructions, executable by the processor 620 of the apparatus 600 to perform the above-described 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.
A non-transitory computer readable storage medium having instructions therein, which when executed by a processor of the apparatus 600, enable the apparatus 600 to perform a touch event response method, comprising:
acquiring position related information of a touch object when the touch object executes a first touch event aiming at the touch panel;
obtaining target movement precision adjusted according to a precision adjustment instruction, wherein the target movement precision is used for determining a target unit movement distance that a touch focus position on the touch panel needs to move relative to the touch panel when the touch object moves a unit distance relative to the touch panel;
determining an actual moving distance corresponding to the position-related information according to the target moving precision to obtain a second touch event;
and responding to the second touch event, and determining the current touch focus position.
In one embodiment, the method further comprises:
acquiring original movement precision corresponding to the touch focus;
determining an actual moving distance corresponding to the position-related information according to the target moving precision to obtain a second touch event, including:
determining an original unit movement distance corresponding to the touch focus according to the original movement precision; and determining the actual moving distance according to the original unit moving distance and the target unit moving distance to obtain the second touch event.
In one embodiment, prior to obtaining the position-related information when the touch object performs the first touch event with respect to the touch panel, the method further comprises:
and intercepting the first touch event through an interception popup window covered on the touch panel.
In one embodiment, the interception pop-up window is a pop-up window with adjustable size and position;
and/or
The intercepting pop-up window is a pop-up window with preset transparency;
in one embodiment, prior to responding to the second touch event, the method further comprises:
sending the second touch event to an operating system of the device, and sending the second touch event to a current application running in a foreground by the operating system;
or
And sending the second touch event to a drive file corresponding to the touch panel, reading the second touch event from the drive file by an operating system of the equipment, and sending the second touch event to the current application running in the foreground.
In one embodiment, the location related information comprises: the current position of the touch object relative to the touch panel in the current detection period; and/or
The location related information includes: and the movement distance of the touch object relative to the touch panel in a preset time period.
In one embodiment, when the position-related information includes the current position, the determining an actual moving distance corresponding to the position-related information according to the target moving accuracy to obtain a second touch event includes:
determining the historical position of the touch object relative to the touch panel in the last detection period adjacent to the current detection period;
determining a position difference between the current position and the historical position;
and determining the actual moving distance according to the target moving precision and the position difference.
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 (12)

1. A touch event response method for a device having a touch panel, comprising:
acquiring position related information of a touch object when the touch object executes a first touch event aiming at the touch panel;
obtaining target movement precision adjusted according to a precision adjustment instruction, wherein the target movement precision is used for determining a target unit movement distance that a touch focus position on the touch panel needs to move relative to the touch panel when the touch object moves a unit distance relative to the touch panel;
determining an actual moving distance corresponding to the position-related information according to the target moving precision to obtain a second touch event;
responding to the second touch event, and determining the current touch focus position;
before obtaining position-related information when a touch object performs a first touch event with respect to the touch panel, the method further comprises:
intercepting the first touch event through an intercepting popup covered on the touch panel, wherein the intercepting popup is a popup with adjustable size and position.
2. The method of claim 1, further comprising:
acquiring original movement precision corresponding to the touch focus;
determining an actual moving distance corresponding to the position-related information according to the target moving precision to obtain a second touch event, including:
determining an original unit movement distance corresponding to the touch focus according to the original movement precision; and determining the actual moving distance according to the original unit moving distance and the target unit moving distance to obtain the second touch event.
3. The method of claim 1,
the intercepting pop-up window is a pop-up window with preset transparency.
4. The method of claim 1, wherein prior to responding to the second touch event, the method further comprises:
sending the second touch event to an operating system of the device, and sending the second touch event to a current application running in a foreground by the operating system;
or
And sending the second touch event to a drive file corresponding to the touch panel, reading the second touch event from the drive file by an operating system of the equipment, and sending the second touch event to the current application running in the foreground.
5. The method according to any one of claims 1 to 4,
the location related information includes: the current position of the touch object relative to the touch panel in the current detection period; and/or
The location related information includes: and the movement distance of the touch object relative to the touch panel in a preset time period.
6. The method of claim 5,
when the position-related information includes the current position, determining an actual moving distance corresponding to the position-related information according to the target moving precision to obtain a second touch event, including:
determining the historical position of the touch object relative to the touch panel in the last detection period adjacent to the current detection period;
determining a position difference between the current position and the historical position;
and determining the actual moving distance according to the target moving precision and the position difference.
7. A touch event response device for use with a device having a touch panel, comprising:
the first acquisition module is used for acquiring position related information of a touch object when the touch object executes a first touch event aiming at the touch panel;
a second obtaining module, configured to obtain target movement accuracy adjusted according to an accuracy adjustment instruction, where the target movement accuracy is used to determine a target unit movement distance that a touch focus position on the touch panel needs to move relative to the touch panel when the touch object moves a unit distance relative to the touch panel;
the determining module is used for determining an actual moving distance corresponding to the position related information according to the target moving precision to obtain a second touch event;
the response module is used for responding to the second touch event and determining the current touch focus position;
the device further comprises:
the intercepting module is used for intercepting a first touch event through an intercepting popup window covered on the touch panel before position related information of a touch object executing the first touch event aiming at the touch panel is acquired, wherein the intercepting popup window is a popup window with adjustable size and position.
8. The apparatus of claim 7, further comprising:
the third acquisition module is used for acquiring the original movement precision corresponding to the touch focus;
the determining module comprises:
the first determining submodule is used for determining an original unit moving distance corresponding to the touch focus according to the original moving precision; and determining the actual moving distance according to the original unit moving distance and the target unit moving distance to obtain the second touch event.
9. The apparatus of claim 7,
the intercepting pop-up window is a pop-up window with preset transparency.
10. The apparatus of claim 7, further comprising:
the first sending module is used for sending the second touch event to an operating system of the equipment before responding to the second touch event, and the operating system sends the second touch event to a current application running in a foreground;
or
And the second sending module is used for sending the second touch event to a drive file corresponding to the touch panel, reading the second touch event from the drive file by an operating system of the equipment, and sending the second touch event to the current application running on the foreground.
11. The apparatus according to any one of claims 7 to 10,
the location related information includes: the current position of the touch object relative to the touch panel in the current detection period; and/or
The location related information includes: and the movement distance of the touch object relative to the touch panel in a preset time period.
12. The apparatus of claim 11,
the determining module comprises:
a second determining sub-module, configured to determine, when the position-related information includes the current position, a historical position of the touch object with respect to the touch panel in a last detection period adjacent to the current detection period;
a third determining submodule for determining a position difference between the current position and the historical position;
and the fourth determining submodule is used for determining the actual moving distance according to the target moving precision and the position difference.
CN201810482557.1A 2018-05-18 2018-05-18 Touch event response method and device Active CN108762554B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810482557.1A CN108762554B (en) 2018-05-18 2018-05-18 Touch event response method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810482557.1A CN108762554B (en) 2018-05-18 2018-05-18 Touch event response method and device

Publications (2)

Publication Number Publication Date
CN108762554A CN108762554A (en) 2018-11-06
CN108762554B true CN108762554B (en) 2021-09-17

Family

ID=64008447

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810482557.1A Active CN108762554B (en) 2018-05-18 2018-05-18 Touch event response method and device

Country Status (1)

Country Link
CN (1) CN108762554B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110647281B (en) * 2019-09-20 2021-11-16 北京小米移动软件有限公司 False touch prevention method and device and storage medium
CN113031812A (en) * 2021-03-18 2021-06-25 Oppo广东移动通信有限公司 Touch event reporting method and device, terminal and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103164158A (en) * 2013-01-10 2013-06-19 深圳市欧若马可科技有限公司 Method, system and device of creating and teaching painting on touch screen
CN106293238A (en) * 2016-08-15 2017-01-04 北京小米移动软件有限公司 Touch accuracy control method, device and electronic equipment

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102214060A (en) * 2010-04-12 2011-10-12 宏碁股份有限公司 Touch electronic device and window control method thereof
KR20130010752A (en) * 2011-07-19 2013-01-29 삼성전자주식회사 Methods of controlling a window displayed at a display
KR101987694B1 (en) * 2012-10-15 2019-06-11 엘지전자 주식회사 Mobile terminal
CN102945341B (en) * 2012-10-23 2015-08-05 北京奇虎科技有限公司 A kind of method and apparatus of interceptor window
TWI528253B (en) * 2013-07-03 2016-04-01 原相科技股份有限公司 Touch position detecting method for touch panel
CN103353804B (en) * 2013-07-03 2016-06-22 深圳雷柏科技股份有限公司 A kind of cursor control method based on touch pad and device
CN107797841B (en) * 2017-11-21 2021-11-05 Oppo广东移动通信有限公司 Window control method and device, terminal equipment and storage medium
CN107908348B (en) * 2017-11-27 2019-07-26 维沃移动通信有限公司 The method and mobile terminal of display

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103164158A (en) * 2013-01-10 2013-06-19 深圳市欧若马可科技有限公司 Method, system and device of creating and teaching painting on touch screen
CN106293238A (en) * 2016-08-15 2017-01-04 北京小米移动软件有限公司 Touch accuracy control method, device and electronic equipment

Also Published As

Publication number Publication date
CN108762554A (en) 2018-11-06

Similar Documents

Publication Publication Date Title
CN108762839B (en) Interface display method and device of application program
EP3182716A1 (en) Method and device for video display
EP3249509A1 (en) Method and device for playing live videos
EP3173970A1 (en) Image processing method and apparatus
EP3163411A1 (en) Method, device and apparatus for application switching
US9800666B2 (en) Method and client terminal for remote assistance
EP3099063A1 (en) Video communication method and apparatus
CN106557201B (en) Pressure detection method and device
CN107102772B (en) Touch control method and device
EP3176776A1 (en) Luminance adjusting method and apparatus, computer program and recording medium
CN107943347B (en) Touch screen control method and device
US20190235745A1 (en) Method and device for displaying descriptive information
CN107562349B (en) Method and device for executing processing
US20170085781A1 (en) Method and apparatus for controlling positioning of camera device
CN107202574B (en) Motion trail information correction method and device
CN110059547B (en) Target detection method and device
US20170316805A1 (en) Method and apparatus for adjusting playing progress of media file
CN106095300B (en) Method and device for adjusting playing progress
CN107797662B (en) Viewing angle control method and device and electronic equipment
CN112905103A (en) False touch processing method and device and storage medium
CN108762554B (en) Touch event response method and device
CN106599858B (en) Fingerprint identification method and device and electronic equipment
CN106775210B (en) Wallpaper changing method and device
CN107656616B (en) Input interface display method and device and electronic equipment
CN106940653B (en) Method, apparatus and computer-readable storage medium for controlling application program

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