CN113157197B - Touch pad control method and device - Google Patents

Touch pad control method and device Download PDF

Info

Publication number
CN113157197B
CN113157197B CN202110466544.7A CN202110466544A CN113157197B CN 113157197 B CN113157197 B CN 113157197B CN 202110466544 A CN202110466544 A CN 202110466544A CN 113157197 B CN113157197 B CN 113157197B
Authority
CN
China
Prior art keywords
touch
touch operation
current
type corresponding
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
Application number
CN202110466544.7A
Other languages
Chinese (zh)
Other versions
CN113157197A (en
Inventor
王忠光
张月川
魏新勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202110466544.7A priority Critical patent/CN113157197B/en
Publication of CN113157197A publication Critical patent/CN113157197A/en
Application granted granted Critical
Publication of CN113157197B publication Critical patent/CN113157197B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses a touch pad control method, which is used for determining whether the current touch of a user on a touch pad is false touch or not, and firstly acquiring first touch information corresponding to the current touch operation, wherein the first touch information can comprise position information and/or touch area. And determining whether the current touch operation is effective according to the second touch information and the first touch information of the previous effective touch operation. That is, when the current touch operation is judged to be an effective touch or an erroneous touch, the touch information of the previous effective touch operation is referred to, so that the judgment accuracy is increased, and the erroneous touch prevention capability is improved.

Description

Touch pad control method and device
Technical Field
The application relates to the technical field of computer processing, in particular to a touch pad control method and device.
Background
A touch pad (TouchPad) is an input device widely used in notebook computers, which controls the movement of a pointer by sensing the movement of a user's finger. When a user types through a keyboard, the anti-false touch of the touch control board is Chang Guangjian, if the touch control board is not provided with the anti-false touch or the anti-false touch algorithm is simpler, the position of a cursor is changed when the user types and touches the touch control board, and the false input condition is caused.
Disclosure of Invention
In view of the above, embodiments of the present application provide a method and apparatus for controlling a touch pad, so as to improve the capability of preventing erroneous touch.
In order to solve the above problems, the technical solution provided by the embodiment of the present application is as follows:
in a first aspect of the embodiment of the present application, a touch pad control method is provided, where the method may include:
acquiring first touch information corresponding to a current touch operation, wherein the first touch information comprises first position information;
Acquiring second touch information corresponding to the previous effective touch operation, wherein the second touch information comprises second position information;
And determining whether the current touch operation is an effective touch operation according to the second touch information and the first touch information.
In a specific implementation manner, the determining, according to the second touch information and the first touch information, whether the current touch operation is a valid touch operation includes:
determining a touch type corresponding to the current touch operation, wherein the touch type comprises finger touch and palm touch;
When the touch type corresponding to the current touch operation is that the finger touches, the second initial position of the previous effective touch operation is located in the center area of the touch pad, the second final position is located in the edge area of the touch pad, and the first initial position of the current touch operation is located in the edge area, the current touch operation is determined to be the effective touch operation, the first position information comprises the first initial position, the second position information comprises the second initial position and the second final position, and the center area and the edge area are preset.
In a specific implementation manner, when the touch type corresponding to the current touch operation is the finger touch, the second start position of the previous valid touch operation is located in the center area of the touch pad, the second end position is located in the edge area of the touch pad, and the first start position of the current touch operation is located in the edge area, determining that the current touch operation is a valid touch operation includes:
And when the touch type corresponding to the current touch operation is that the finger touches, the second initial position of the previous effective touch operation is positioned in the central area of the touch pad, the second end position of the current touch operation is positioned in the edge area of the touch pad, the first initial position of the current touch operation is positioned in the edge area, and the moving distance of the current touch operation in a first preset time threshold is greater than or equal to a first preset distance threshold, determining that the current touch operation is the effective touch operation.
In a specific implementation manner, the determining the touch type corresponding to the current touch operation includes:
and receiving the touch type reported by the touch pad.
In a specific implementation manner, when the first touch information includes a first touch area, the determining the touch type corresponding to the current touch operation includes:
and determining the touch type corresponding to the current touch operation according to the first touch area.
In a specific implementation, the method further includes:
when the touch type corresponding to the current touch operation is the palm touch, determining the touch type corresponding to the previous effective touch operation;
And when the touch type corresponding to the previous effective touch operation is the finger touch, determining the current touch operation as the effective touch operation.
In a specific implementation manner, when the touch type corresponding to the previous valid touch operation is the finger touch, determining that the current touch operation is the valid touch operation includes:
and determining that the current touch operation is an effective touch operation when the touch type corresponding to the previous effective touch operation is that the finger touches and the sliding distance of the previous effective touch operation is larger than a second preset distance threshold or the sliding time is larger than a second preset time threshold.
In a specific implementation, the method further includes:
And responding to the first end point position corresponding to the current touch operation as the edge area of the touch pad, determining that the current touch operation is an invalid touch operation, wherein the first position information comprises the first end point position.
In a specific implementation, the method further includes:
and responding to the current touch operation as an effective touch operation, and storing the corresponding relation between the first touch information and the current touch operation as the effective touch operation so as to judge the validity of a new touch operation by using the corresponding relation.
In a specific implementation, the finger touch includes a single-finger touch and a double-finger touch.
In a specific implementation manner, the determining, according to the second touch information and the first touch information, whether the current touch operation is a valid touch operation includes:
And when the touch type corresponding to the previous effective touch operation is the double-finger touch, the touch type corresponding to the current touch operation is the single-finger touch and the current touch operation does not move within a third preset time threshold, determining that the current touch operation is an ineffective touch operation.
In a specific implementation, the method further includes:
And when the touch type corresponding to the previous effective touch operation is the double-finger touch, the touch type corresponding to the current touch operation is the double-finger touch and the clicking action occurs in the current touch operation, determining that the clicking action in the current touch operation is an ineffective clicking action.
In a specific implementation manner, when the touch type corresponding to the previous valid touch operation is the double-finger touch, the touch type corresponding to the current touch operation is the double-finger touch, and the click behavior occurs in the current touch operation, determining that the click behavior in the current touch operation is an invalid click behavior includes:
And determining that the click behavior in the current touch operation is an invalid click behavior when the touch type corresponding to the previous effective touch operation is the double-finger touch, the touch type corresponding to the current touch operation is the double-finger touch, the click behavior occurs in the current touch operation, and the occurrence time of the click behavior is within a fourth preset time threshold from the ending time of the previous effective touch operation.
In a specific implementation, the method further includes:
and responding to the current touch operation, and determining that the current touch operation is a click operation when the movement distance of the click behavior in a fifth preset time threshold is smaller than a third preset distance threshold.
In a specific implementation, the method further includes:
And determining that the current touch operation is a click-drag operation in response to the movement distance of the click behavior within the fifth preset time threshold being greater than or equal to the third preset distance threshold.
In a second aspect of the embodiment of the present application, there is provided a touch pad control device, including:
The touch control device comprises a first acquisition unit, a second acquisition unit and a first control unit, wherein the first acquisition unit is used for acquiring first touch information corresponding to the current touch operation, and the first touch information comprises first position information;
the second acquisition unit is used for acquiring second touch information corresponding to the previous effective touch operation by the user, wherein the second touch information comprises second position information;
And the determining unit is used for determining whether the current touch operation is a valid touch operation according to the second touch information and the first touch information.
In a third aspect of the embodiment of the present application, there is provided an electronic device, including: a processor and a memory;
The memory is used for storing instructions or computer programs;
the processor is configured to execute the instructions or the computer program in the memory, so that the electronic device executes the touch pad control method according to the first aspect.
In a fourth aspect of the embodiments of the present application, there is provided a computer readable storage medium having stored therein instructions that, when executed on a device, cause the device to perform the touch pad control method of the first aspect.
From this, the embodiment of the application has the following beneficial effects:
In order to determine whether a user touches a touch pad currently, first touch information corresponding to a current touch operation is acquired, wherein the first touch information may include position information and/or touch area. And determining whether the current touch operation is effective according to the second touch information and the first touch information of the previous effective touch operation. That is, when the current touch operation is judged to be an effective touch or an erroneous touch, the touch information of the previous effective touch operation is referred to, so that the judgment accuracy is increased, and the erroneous touch prevention capability is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings may be obtained according to the drawings without inventive effort to those skilled in the art.
Fig. 1 is a flowchart of a touch pad control method according to an embodiment of the present application;
fig. 2 is a schematic view of dividing a touch pad area according to an embodiment of the present application;
Fig. 3 is a diagram illustrating a touch pad control device according to an embodiment of the present application;
fig. 4 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order that the above-recited objects, features and advantages of the present application will become more readily apparent, a more particular description of embodiments of the application will be rendered by reference to the appended drawings and appended drawings.
Fig. 1 is a schematic flow chart of a touch pad control method according to an embodiment of the present disclosure, where the method may be performed by a processing device of the touch pad, and the device may be implemented in software and/or hardware, and optionally, may be implemented by an electronic device, where the electronic device may be a PC terminal including a touch pad or a device including a touch screen formed by a plurality of touch pads.
As shown in fig. 1, the method may include:
s101: and acquiring first touch information corresponding to the current touch operation.
When the processor detects that the user touches the touch pad, first touch information corresponding to the current touch operation is acquired, wherein the first touch information can comprise first position information and/or a first touch area. The first position information refers to coordinate information of the touch position on the touch pad, and may include a first start position and a first end position. The first touch area refers to the contact area between the finger or palm of the user and the touch pad. The processor may construct coordinates of the touch pad in advance, and determine corresponding position coordinates according to the first touch position when detecting the touch of the user.
S102: and acquiring second touch information corresponding to the previous effective touch operation.
In this embodiment, the processor may record touch information corresponding to each valid touch operation, and to determine the validity of the current touch operation, the processor will read, from the local memory, touch information corresponding to the previous valid touch operation, that is, second touch information, where the second touch information may include second location information and/or a second touch area. The second position information may include a second start position and a second end position of the previous effective touch operation, where the second touch area represents a corresponding contact area when the touch pad is touched during the previous effective touch operation.
S103: and determining whether the current touch operation is a valid touch operation according to the second touch information and the first touch information.
In determining whether the current touch operation is a valid touch operation, the last valid touch operation processor determines whether the current touch operation is a valid touch operation based on the first touch information and the second touch information. I.e. the processor determines to mask the current touch operation or to respond to the current touch operation.
Specifically, for different scenarios, it may be determined whether the current touch operation is valid through different processing schemes:
In the current anti-false touch operation, the touch pad is generally divided into a center area and an edge area, and as shown in fig. 2, an area 10% from the left and right sides of the touch pad and 2.5% from the upper and lower sides of the touch pad is defined as the edge area. If the user falls within the center region, then a valid touch operation is considered. If the user falls to the edge area, it is considered an invalid touch operation. However, in some application scenarios, the user slides from the center region to the edge region in one touch operation; in the next touch operation, the user directly starts sliding from the edge area, and the current false touch prevention processing logic is regarded as invalid touch operation to influence the actual operation of the user. Based on this, the present embodiment provides a processing method, specifically: determining a touch type corresponding to the current touch operation, wherein the touch type can comprise finger touch or palm touch; and determining that the current touch operation is an effective touch operation when the touch type corresponding to the current touch operation is finger touch, the second initial position of the previous effective touch operation is positioned in the central area of the touch pad, the second end position is positioned in the edge area of the touch pad, and the first initial position of the current touch operation is positioned in the edge area. Wherein the central region and the edge region may be preset.
That is, it is first determined whether the current touch operation is a finger touch or a palm touch. When determining that the touch type corresponding to the current touch operation is finger touch or palm touch, the method can be realized in such a way that the touch pad determines the touch type corresponding to the current touch operation according to the first touch area and reports the touch type to electronic equipment connected with the touch pad, the electronic equipment is not required to determine, the computing resource is saved, and the processing speed is improved. Wherein the first touch information may include a touch type. And the electronic equipment automatically judges the touch type corresponding to the current touch operation according to the first touch area in the first touch information. Specifically, the electronic device may determine, according to the first touch area and the first preset area threshold, a touch type corresponding to the current touch operation. The first preset area threshold may be a preset fingerprint area of a finger, for example, a fingerprint area of an index finger, and when the first touch area in the first touch information is smaller than or equal to the first preset area threshold, it may be that the finger of the user touches the touch pad, and it is determined that the finger touches; when the first touch area in the first touch information is larger than the first preset area threshold, it is possible that the palm of the user touches the touch pad, and the palm touch is determined. When the touch type corresponding to the current touch operation is determined to be finger touch, if the previous effective touch operation is started from the central area and stopped at the edge area, and the current touch operation is started from the edge area, the convenience and the possibility of actual operation are considered, and the current touch operation is determined to be the user intended touch operation, and the current touch operation is considered to be the effective touch operation.
The finger touch may include a single-finger touch and a double-finger touch, and when determining the touch type corresponding to the current touch operation, the touch type corresponding to the current touch operation may be determined to be a single-finger touch or a double-finger touch according to the first touch area and the second preset area threshold in the first touch information. The second preset area threshold may be a fingerprint area of a single finger, such as a fingerprint area of an index finger.
Further, based on the processing manner, even if the touch type of the current touch operation is finger touch, the previous effective touch operation is started from the central area, stopped at the edge area and the current touch operation is started from the edge area, if the moving distance of the finger of the user in the first preset time threshold value is smaller than the first preset distance threshold value in the current touch operation, determining that the current touch operation is an ineffective touch operation; and if the moving distance of the finger of the user in the first preset time threshold is greater than or equal to the first preset distance threshold, determining that the current touch operation is an effective touch operation. The first preset time threshold and the first preset distance threshold may be set according to an actual application scenario. For example, the first preset time threshold is 150ms, the first preset distance threshold is 200px (pixel distance), and if the moving distance of the user in 150ms is less than 200px, the current touch operation is determined to be an invalid touch operation, and the finger sliding is shielded. It should be noted that, in the present embodiment, the unit of the moving distance may be defined according to practical situations, and the present embodiment includes, but is not limited to, representing the moving distance by using pixels as a unit of measure.
In the current false touch prevention processing, a user slides on a touch pad by using a finger in general, and when the touch type corresponding to the current touch operation is determined to be palm touch, the user is determined to be unintentional touching the touch pad, and then the invalid touch operation is determined to be the shielded palm touch sliding operation. However, in some application scenarios, the user may actually slide with the palm, and based on this, the present embodiment provides a processing manner, specifically: when the touch type corresponding to the current touch operation is palm touch, determining the touch type corresponding to the effective touch operation at the previous time; and when the touch type corresponding to the previous effective touch operation is finger touch, determining the current touch operation as the effective touch operation. That is, if the touch type corresponding to the previous valid touch operation is a finger touch, it is determined that the user wants to continue the touch sliding, and even if the touch type corresponding to the current touch operation is a palm touch, the current touch operation is determined to be the valid touch operation. That is, the processor responds to the current touch operation. The determining the touch type corresponding to the previous effective touch operation may be determining according to the second touch area, or reading the touch type corresponding to the previous effective touch operation from the local memory.
Optionally, to further improve the capability of preventing false touch, when the touch type corresponding to the previous effective touch operation is finger touch and the sliding distance of the previous effective touch operation is greater than the second preset distance threshold or the sliding time is greater than the second preset time threshold, determining that the current touch operation is the effective touch operation when the touch type corresponding to the current touch operation is palm touch. The second preset distance threshold and the second preset time threshold may be set according to actual application conditions. For example, the second preset distance threshold is 50px and the second preset time threshold is 150ms.
Optionally, to further improve the capability of preventing false touch, when the touch type corresponding to the current touch operation is palm touch and the touch type corresponding to the previous valid touch operation is finger touch, if the first end point position corresponding to the current touch operation is an edge area of the touch pad, determining that the current touch operation is an invalid touch operation.
It can be appreciated that, in practical application, even if the touch operation is a finger touch, there may be a single-finger touch or a double-finger touch scenario, and in order to handle the false touch operation under different scenarios, the present embodiment provides a scheme, specifically, when the touch type corresponding to the previous valid touch operation is a double-finger touch, the touch type corresponding to the current touch operation is a single-finger touch, and the current touch operation is not moved within a third preset time threshold, it is determined that the current touch operation is an invalid touch operation. That is, when the previous effective touch operation is a two-finger touch, the current touch operation has a high probability of being a two-finger touch, and when the current touch is detected as a single-finger touch, it is indicated that one finger of the user first falls on the touch pad. If the user does not move within the third preset time threshold under the condition of single-finger touch, the current touch operation can be determined to be double-finger touch, and the current single-finger touch is shielded to wait for the falling of the second finger, so that the problem of sliding and flying caused by the fact that a cursor on a screen is firstly landed by one finger is prevented. The third preset time threshold may be set according to an actual application situation, for example, the third preset time threshold is 300ms, and if the current touch operation is not moved within 300ms of the single finger falling, the current touch operation is determined to be invalid.
Further, when the touch type corresponding to the previous effective touch operation is a double-finger touch, the touch type corresponding to the current touch operation is a double-finger touch, and the click behavior occurs in the current touch operation, determining that the click behavior in the current touch operation is an invalid click behavior. That is, when the two fingers frequently and rapidly slide on the touch pad, a false pressing operation may occur, forming a clicked drag function, resulting in a cursor on the screen running off. For this scenario, if the previous effective touch operation is an effective two-finger touch, when a click behavior occurs in the current two-finger touch operation, the click behavior in the current touch operation is shielded, and the cursor is prevented from flying.
Further, to improve the error touch prevention capability, it may also be determined whether the difference between the occurrence time of the click behavior in the current touch operation and the ending time of the previous valid touch operation is within a fourth preset time threshold, and if so, it is determined that the click behavior in the current touch operation is an invalid click behavior; otherwise, determining the clicking behavior in the current touch operation as the effective clicking behavior. The fourth preset time threshold may be set according to an actual application situation, for example, the fourth preset time threshold is 500ms.
On the basis of the above schemes, if the current touch operation has click behavior, and the moving distance of the click behavior in the fifth preset time threshold is smaller than the third preset distance threshold, determining that the touch operation is the click operation. That is, when the user touches the touch pad, if the click is pressed and the moving distance within the fifth preset time threshold is less than the third preset distance threshold, the finger is considered to be pressed and not moved, and the current touch operation is determined to be the click operation. The fifth preset time threshold and the third preset distance threshold may be set according to actual application situations, for example, the fifth preset time threshold is 300ms, and the third preset distance threshold is 10px.
Optionally, in response to the movement distance of the clicking action within the fifth preset time threshold being greater than or equal to a third preset distance threshold, determining that the current touch operation is a clicking drag operation.
Optionally, after determining that the current touch operation is a valid touch operation, information related to the current touch operation may be saved, so as to facilitate a subsequent determination of the validity of the touch operation. Specifically, the first touch information and the current touch operation are saved as valid touch operations, so as to judge the validity of the new touch operation. In addition, the touch type corresponding to the current touch operation, such as a single-finger touch, a double-finger touch, or a palm touch, may also be stored.
As can be seen from the above description, to determine whether the current touch of the user on the touch pad is a false touch, first touch information corresponding to the current touch operation is acquired, where the first touch information may include first position information, and second touch information corresponding to the previous valid touch operation is acquired, where the second touch information may include second position information. And determining whether the current touch operation is the effective touch operation or not according to the second touch information and the first touch information of the previous effective touch operation. That is, when judging that the current touch operation is an effective touch operation or an ineffective touch operation, the touch information of the previous effective touch operation is referred to, so that the judgment accuracy is increased, and the false touch preventing capability is improved.
In addition, aiming at the anti-false touch processing of the touch pad when a user uses a keyboard to type, the embodiment provides a processing mode, which specifically comprises the following steps: and responding to the sixth preset time threshold value after the user presses and lifts the keys in the keyboard, and shielding the touch pad. If the sliding distance of the user on the touch pad is greater than the fourth preset distance threshold value within the sixth preset time threshold value, restarting the touch pad, and responding to the touch operation of the user. Further, after restarting the touch pad, the user may use the touch pad within a seventh preset time threshold, and after exceeding the seventh preset time threshold, disable the touch pad. The sixth preset time threshold, the fourth preset distance threshold and the seventh preset time threshold may be set according to actual application situations. For example, if the sixth preset time threshold is 300ms, the fourth preset distance threshold is 800px, and the seventh preset time threshold is 1.5s, the touch pad is disabled within 300ms after the key on the keyboard is pressed and lifted. If the sliding distance of the finger on the touch pad exceeds 800px, the processor restarts the touch pad, and the user can continuously use the touch pad within 1.5s after the touch pad is started, and continuously disable the touch pad within 1.5 s.
Based on the above method embodiments, the embodiments of the present application provide a touch pad control device, which will be described with reference to the accompanying drawings.
Referring to fig. 3, which illustrates a touch pad control device according to an embodiment of the present application, the device 300 may include a first acquiring unit 301, a second acquiring unit 302, and a determining unit 303.
A first obtaining unit 301, configured to obtain first touch information corresponding to a current touch operation, where the first touch information includes first location information;
A second obtaining unit 302, where the user obtains second touch information corresponding to the previous effective touch operation, where the second touch information includes second position information;
and a determining unit 303 configured to determine whether the current touch operation is a valid touch operation according to the second touch information and the first touch information.
In a specific implementation manner, the determining unit 303 is specifically configured to determine a touch type corresponding to the current touch operation, where the touch type includes a finger touch and a palm touch; when the touch type corresponding to the current touch operation is that the finger touches, the second initial position of the previous effective touch operation is located in the center area of the touch pad, the second final position is located in the edge area of the touch pad, and the first initial position of the current touch operation is located in the edge area, the current touch operation is determined to be the effective touch operation, the first position information comprises the first initial position, the second position information comprises the second initial position and the second final position, and the center area and the edge area are preset.
In a specific implementation manner, the determining unit 303 is specifically configured to determine that the current touch operation is an effective touch operation when the touch type corresponding to the current touch operation is the finger touch, the second start position of the previous effective touch operation is located in a center area of the touch pad, the second end position of the current touch operation is located in an edge area of the touch pad, the first start position of the current touch operation is located in the edge area, and the moving distance of the current touch operation within a first preset time threshold is greater than or equal to a first preset distance threshold.
In a specific implementation manner, the determining unit 303 is specifically configured to receive a touch type reported by the touch pad.
In a specific implementation manner, the determining unit 303 is specifically configured to determine, according to the first touch area, a touch type corresponding to the current touch operation.
In a specific implementation manner, the determining unit 303 is further configured to determine, when the touch type corresponding to the current touch operation is the palm touch, a touch type corresponding to the previous valid touch operation; and when the touch type corresponding to the previous effective touch operation is the finger touch, determining the current touch operation as the effective touch operation.
In a specific implementation manner, the determining unit 303 is specifically configured to determine that the current touch operation is an effective touch operation when the touch type corresponding to the previous effective touch operation is the finger touch and the sliding distance of the previous effective touch operation is greater than a second preset distance threshold or the sliding time is greater than a second preset time threshold.
In a specific implementation manner, the determining unit 303 is specifically configured to determine that the current touch operation is an invalid touch operation in response to a first end point position corresponding to the current touch operation being an edge area of the touch pad, where the first position information includes the first end point position.
In a specific implementation, the apparatus further includes: a memory unit (not shown in the figure);
And the storage unit is used for responding to the current touch operation as an effective touch operation, and storing the corresponding relation between the first touch information and the current touch operation as the effective touch operation so as to judge the validity of the new touch operation by utilizing the corresponding relation.
In a specific implementation, the finger touch includes a single-finger touch and a double-finger touch.
In a specific implementation manner, the determining unit 303 is specifically configured to determine that the current touch operation is an invalid touch operation when the touch type corresponding to the previous valid touch operation is the two-finger touch, the touch type corresponding to the current touch operation is the single-finger touch, and the current touch operation is not moved within a third preset time threshold.
In a specific implementation manner, the determining unit 303 is specifically configured to determine that the click behavior in the current touch operation is an invalid click behavior when the touch type corresponding to the previous valid touch operation is the two-finger touch, the touch type corresponding to the current touch operation is the two-finger touch, and the click behavior occurs in the current touch operation.
In a specific implementation manner, the determining unit 303 is specifically configured to determine that the click behavior in the current touch operation is an invalid click behavior when the touch type corresponding to the previous valid touch operation is the double-finger touch, the touch type corresponding to the current touch operation is the double-finger touch, the current touch operation has a click behavior, and the time of occurrence of the click behavior is within a fourth preset time threshold from the end time of the previous valid touch operation.
In a specific implementation manner, the determining unit 303 is specifically configured to determine that the current touch operation is a click operation when a click action occurs in response to the current touch operation and a movement distance of the click action within a fifth preset time threshold is smaller than a third preset distance threshold.
In a specific implementation manner, the determining unit 303 is specifically configured to determine that the current touch operation is a click-drag operation in response to a moving distance of the click behavior within the fifth preset time threshold being greater than or equal to the third preset distance threshold.
It should be noted that, the specific implementation of each unit in this embodiment may refer to the related description in the method embodiment shown in fig. 1, and this embodiment is not repeated herein.
Referring to fig. 4, a schematic diagram of a configuration of an electronic device (e.g., a terminal device or server in fig. 4) 400 suitable for use in implementing embodiments of the present disclosure is shown. The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 4 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 4, the electronic device 400 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 401, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 402 or a program loaded from a storage means 406 into a Random Access Memory (RAM) 403. In the RAM403, various programs and data necessary for the operation of the electronic device 400 are also stored. The processing device 401, the ROM 402, and the RAM403 are connected to each other by a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
In general, the following devices may be connected to the I/O interface 405: input devices 406 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 407 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 408 including, for example, magnetic tape, hard disk, etc.; and a communication device 409. The communication means 409 may allow the electronic device 400 to communicate with other devices wirelessly or by wire to exchange data. While fig. 4 shows an electronic device 400 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via communications device 409, or from storage 408, or from ROM 402. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing device 401.
The electronic device provided by the embodiment of the present disclosure and the touch pad control method provided by the above embodiment belong to the same inventive concept, and technical details not described in detail in the present embodiment can be seen in the above embodiment, and the present embodiment has the same beneficial effects as the above embodiment.
The embodiment of the disclosure provides a computer storage medium having a computer program stored thereon, which when executed by a processor, implements the touch pad control method provided by the above embodiment.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to:
acquiring first touch information corresponding to a current touch operation, wherein the first touch information comprises first position information;
Acquiring second touch information corresponding to the previous effective touch operation, wherein the second touch information comprises second position information;
And determining whether the current touch operation is an effective touch operation according to the second touch information and the first touch information.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. Where the names of the units/modules do not constitute a limitation of the units themselves in some cases.
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
It should be noted that, in the present description, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different manner from other embodiments, and identical and similar parts between the embodiments are all enough to refer to each other. For the system or device disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple, and the relevant points refer to the description of the method section.
It should be understood that in the present application, "at least one (item)" means one or more, and "a plurality" means two or more. "and/or" for describing the association relationship of the association object, the representation may have three relationships, for example, "a and/or B" may represent: only a, only B and both a and B are present, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b or c may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
It is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (14)

1. The touch pad control method is characterized by being applied to a PC end, wherein the PC end comprises a touch pad and a keyboard and comprises the following steps:
acquiring first touch information corresponding to a current touch operation, wherein the first touch information comprises first position information;
Acquiring second touch information corresponding to the previous effective touch operation, wherein the second touch information comprises second position information;
Determining whether the current touch operation is an effective touch operation according to the second touch information and the first touch information; wherein the determining whether the current touch operation is a valid touch operation according to the second touch information and the first touch information includes:
determining a touch type corresponding to the current touch operation, wherein the touch type comprises finger touch and palm touch;
When the touch type corresponding to the current touch operation is that the finger touches, a second initial position of the previous effective touch operation is located in a central area of the touch pad, a second end position of the current touch operation is located in an edge area of the touch pad, a first initial position of the current touch operation is located in the edge area, and a moving distance of the current touch operation within a first preset time threshold is greater than or equal to a first preset distance threshold, determining that the current touch operation is an effective touch operation, wherein the first position information comprises the first initial position, the second position information comprises the second initial position and the second end position, and the central area and the edge area are preset; or alternatively
When the touch type corresponding to the current touch operation is the palm touch, determining the touch type corresponding to the previous effective touch operation; and when the touch type corresponding to the previous effective touch operation is the finger touch, determining the current touch operation as the effective touch operation.
2. The method of claim 1, wherein the determining the touch type corresponding to the current touch operation comprises:
and receiving the touch type reported by the touch pad.
3. The method of claim 1, wherein when the first touch information includes a first touch area, the determining the touch type corresponding to the current touch operation includes:
and determining the touch type corresponding to the current touch operation according to the first touch area.
4. The method of claim 1, wherein determining that the current touch operation is an active touch operation when the touch type corresponding to the previous active touch operation is the finger touch comprises:
and determining that the current touch operation is an effective touch operation when the touch type corresponding to the previous effective touch operation is that the finger touches and the sliding distance of the previous effective touch operation is larger than a second preset distance threshold or the sliding time is larger than a second preset time threshold.
5. The method according to any one of claims 1-4, further comprising:
and responding to the current touch operation as an effective touch operation, and storing the first touch information and the current touch operation as the effective touch operation so as to judge the validity of a new touch operation.
6. The method of any of claims 1-4, wherein the finger touches comprise single-finger touches and double-finger touches.
7. The method of claim 6, wherein the determining whether the current touch operation is a valid touch operation based on the second touch information and the first touch information comprises:
And when the touch type corresponding to the previous effective touch operation is the double-finger touch, the touch type corresponding to the current touch operation is the single-finger touch and the current touch operation does not move within a third preset time threshold, determining that the current touch operation is an ineffective touch operation.
8. The method of claim 7, wherein the method further comprises:
And when the touch type corresponding to the previous effective touch operation is the double-finger touch, the touch type corresponding to the current touch operation is the double-finger touch and the clicking action occurs in the current touch operation, determining that the clicking action in the current touch operation is an ineffective clicking action.
9. The method of claim 8, wherein the determining that the click behavior in the current touch operation is an invalid click behavior when the touch type corresponding to the previous valid touch operation is the two-finger touch, the touch type corresponding to the current touch operation is the two-finger touch, and the click behavior occurs for the current touch operation comprises:
And determining that the click behavior in the current touch operation is an invalid click behavior when the touch type corresponding to the previous effective touch operation is the double-finger touch, the touch type corresponding to the current touch operation is the double-finger touch, the click behavior occurs in the current touch operation, and the occurrence time of the click behavior is within a fourth preset time threshold from the ending time of the previous effective touch operation.
10. The method according to any one of claims 1-4 or 7-9, wherein the method further comprises:
and responding to the current touch operation, and determining that the current touch operation is a click operation when the movement distance of the click behavior in a fifth preset time threshold is smaller than a third preset distance threshold.
11. The method according to claim 10, wherein the method further comprises:
And determining that the current touch operation is a click-drag operation in response to the movement distance of the click behavior within the fifth preset time threshold being greater than or equal to the third preset distance threshold.
12. A touch pad control device, the device comprising:
The touch control device comprises a first acquisition unit, a second acquisition unit and a first control unit, wherein the first acquisition unit is used for acquiring first touch information corresponding to the current touch operation, and the first touch information comprises first position information;
the second acquisition unit is used for acquiring second touch information corresponding to the previous effective touch operation, wherein the second touch information comprises second position information;
a determining unit, configured to determine a touch type corresponding to the current touch operation, where the touch type includes a finger touch and a palm touch; when the touch type corresponding to the current touch operation is that the finger touches, a second initial position of the previous effective touch operation is located in a central area of the touch pad, a second end position of the current touch operation is located in an edge area of the touch pad, a first initial position of the current touch operation is located in the edge area, and a moving distance of the current touch operation within a first preset time threshold is greater than or equal to a first preset distance threshold, determining that the current touch operation is an effective touch operation, wherein the first position information comprises the first initial position, the second position information comprises the second initial position and the second end position, and the central area and the edge area are preset; or determining the touch type corresponding to the previous effective touch operation when the touch type corresponding to the current touch operation is the palm touch; and when the touch type corresponding to the previous effective touch operation is the finger touch, determining the current touch operation as the effective touch operation.
13. An electronic device, the device comprising: a processor and a memory;
The memory is used for storing instructions or computer programs;
the processor is configured to execute the instructions or the computer program in the memory, so that the electronic device executes the touch pad control method according to any one of claims 1 to 11.
14. A computer readable storage medium having instructions stored therein which, when executed on a device, cause the device to perform the touch pad control method of any of claims 1-11.
CN202110466544.7A 2021-04-28 2021-04-28 Touch pad control method and device Active CN113157197B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110466544.7A CN113157197B (en) 2021-04-28 2021-04-28 Touch pad control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110466544.7A CN113157197B (en) 2021-04-28 2021-04-28 Touch pad control method and device

Publications (2)

Publication Number Publication Date
CN113157197A CN113157197A (en) 2021-07-23
CN113157197B true CN113157197B (en) 2024-05-10

Family

ID=76871832

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110466544.7A Active CN113157197B (en) 2021-04-28 2021-04-28 Touch pad control method and device

Country Status (1)

Country Link
CN (1) CN113157197B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102117140A (en) * 2009-12-30 2011-07-06 联想(北京)有限公司 Touch processing method and mobile terminal
CN102650912A (en) * 2011-02-23 2012-08-29 安国国际科技股份有限公司 Signal processing method and system of touch panel
CN103631443A (en) * 2010-09-21 2014-03-12 义隆电子股份有限公司 Touchpad capable of preventing careless touch, touchpad of touch type cell phone, and prevention method of careless touch
CN104679429A (en) * 2015-02-12 2015-06-03 深圳市中兴移动通信有限公司 Accidental-touch-prevention method and device
CN105807965A (en) * 2014-12-30 2016-07-27 联想(北京)有限公司 False trigger prevention method and apparatus
CN106855782A (en) * 2016-12-16 2017-06-16 广东欧珀移动通信有限公司 A kind of method for preventing false touch, device and terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102117140A (en) * 2009-12-30 2011-07-06 联想(北京)有限公司 Touch processing method and mobile terminal
CN103631443A (en) * 2010-09-21 2014-03-12 义隆电子股份有限公司 Touchpad capable of preventing careless touch, touchpad of touch type cell phone, and prevention method of careless touch
CN102650912A (en) * 2011-02-23 2012-08-29 安国国际科技股份有限公司 Signal processing method and system of touch panel
CN105807965A (en) * 2014-12-30 2016-07-27 联想(北京)有限公司 False trigger prevention method and apparatus
CN104679429A (en) * 2015-02-12 2015-06-03 深圳市中兴移动通信有限公司 Accidental-touch-prevention method and device
CN106855782A (en) * 2016-12-16 2017-06-16 广东欧珀移动通信有限公司 A kind of method for preventing false touch, device and terminal

Also Published As

Publication number Publication date
CN113157197A (en) 2021-07-23

Similar Documents

Publication Publication Date Title
CN107390923B (en) Screen false touch prevention method and device, storage medium and terminal
US20140210742A1 (en) Emulating pressure sensitivity on multi-touch devices
EP2825955B1 (en) Input data type profiles
CN109062464B (en) Touch operation method and device, storage medium and electronic equipment
US20150286283A1 (en) Method, system, mobile terminal, and storage medium for processing sliding event
CN111078108A (en) Screen display method and device, storage medium and mobile terminal
CN109492163B (en) List display recording method and device, terminal equipment and storage medium
WO2017067165A1 (en) Method and apparatus for recognising multi-finger sliding gesture and terminal device
CN107577404B (en) Information processing method and device and electronic equipment
CN112667103B (en) Correction method and device for writing device, terminal and storage medium
CN113157197B (en) Touch pad control method and device
CN113312122A (en) Virtual keyboard calling method and device, computer storage medium and electronic equipment
CN115269243A (en) Method, device and equipment for detecting process and storage medium
CN110874729A (en) Switching method and switching device for electronic red packet identification strategy and mobile terminal
CN110377362B (en) Method, device, terminal and storage medium for cleaning application program
CN114416264A (en) Message display method and device
CN110618776B (en) Picture scaling method, device, equipment and storage medium
CN111226190A (en) List switching method and terminal
CN113204305A (en) Holding mode detection method and device of mobile terminal, medium and mobile terminal
CN113253874A (en) Display device control method, device, terminal and storage medium
JP2023509002A (en) Method, device, computer device and readable recording medium for manipulating pages
WO2023116495A1 (en) Video switching method and apparatus, electronic device, and storage medium
CN112068734B (en) Touch screen control method, device, terminal and storage medium
CN111258475B (en) Information updating method and device and electronic equipment
CN107407982B (en) Input method of touch screen and terminal

Legal Events

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