Event detection method of touch input device, touchpad and touch input device
By configuring a first pressure value and a second pressure value in the touch input device, the touchpad outputs corresponding events in different pressure ranges, which solves the problem of difficulty in recognizing multiple events in the prior art and realizes simplified operation of the touch input device and reduced accidental touch rate.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-27
- Publication Date
- 2026-03-13
AI Technical Summary
Existing full-area pressure touch input devices use a single pressure threshold, making it difficult to recognize and output multiple events, resulting in complex operation and a high rate of accidental touches, especially when replacing a mouse, it is difficult to distinguish between left and right button events.
By configuring a first pressure value and a second pressure value, the touchpad outputs a first event (such as a left-click event) when the touch pressure is greater than or equal to the first pressure value and less than the second pressure value, and outputs a second event (such as a right-click event) when the touch pressure is greater than or equal to the second pressure value. The second event is then converted into a specific event code to trigger system-level functions without the need for additional drivers or upper-level gesture recognition.
It achieves accurate recognition and output of left and right button events on touch input devices, reducing the false touch rate and operation complexity, and improving compatibility and response speed.
Smart Images

Figure CN121657889A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of touch detection technology, specifically to an event detection method for a touch input device, a touchpad, and a touch input device. Background Technology
[0002] Currently, most existing full-area pressure-sensitive touch input devices use a single pressure threshold, which can only output a single button-triggered event, making it difficult to recognize and output multiple events. For example, when using a touch input device to replace a mouse, it is difficult to distinguish between the left and right mouse button events.
[0003] In existing technologies, a single touch is generally used to implement the left mouse button event, while a two-finger gesture or area logic is used to implement the right mouse button event. This results in complex operation of touch input devices and a relatively high rate of accidental touches. Summary of the Invention
[0004] In view of this, this application provides an event detection method, touchpad, and touch input device for a touch input device, which reduces the operational complexity of the touch input device, reduces the false touch rate of multi-event recognition, and eliminates the need for additional drivers or upper-level gesture recognition to output specific event codes for the right-click, thereby reducing latency and improving compatibility. The technical solution of this application is as follows: This application provides an event detection method for a touch input device, the touch input device including a touchpad, the event detection method comprising: in response to any area of the touchpad being touched, controlling the sampling rate of the touchpad to increase to a target sampling rate; in response to a touch pressure of any area of the touchpad being touched being greater than or equal to a first pressure value and less than a second pressure value, outputting a first event; in response to the touch pressure of any area of the touchpad being touched being greater than or equal to the second pressure value, outputting a second event; the first event including a left-click event, the second event including a right-click event; the touchpad converting the second event into a specific event code, the specific event code being used to trigger a system-level function.
[0005] In one embodiment of this application, the touch input device further includes a vibration motor; the event detection method further includes: in response to outputting the second event, controlling the vibration motor to vibrate for a first preset duration.
[0006] In one embodiment of this application, the step of outputting the second event when the touch pressure on any area of the touchpad is greater than or equal to the second pressure value includes: outputting the second event when the touch pressure on any area of the touchpad being touched is greater than or equal to the second pressure value and the duration is greater than a first time window.
[0007] In one embodiment of this application, the event detection method further includes: in response to outputting the first event or the second event, recording the ambient temperature and the pressure value of the touch pressure; and after a preset time interval, correcting the first pressure value and the second pressure value according to a plurality of ambient temperatures and a plurality of corresponding pressure values.
[0008] In one embodiment of this application, the event detection method further includes: in response to a touch pressure in any area of the touchpad being less than the first pressure value and the duration being greater than a second time window, outputting a touch ignore event.
[0009] In one embodiment of this application, the event detection method further includes: after power-on startup, obtaining the first pressure value and the second pressure value from a configuration file in a preset storage space.
[0010] In one embodiment of this application, the event detection method further includes: outputting a third event in response to a touch pressure greater than or equal to a third pressure value on any area of the touchpad being touched; wherein the third pressure value is greater than the second pressure value; and controlling the vibration motor to vibrate for a second preset duration in response to the output of the third event.
[0011] A second aspect of this application provides a touchpad, comprising: a pressure detection module for collecting touch pressure on any touch area of any touchpad; a pressure judgment module for judging whether the touch pressure meets a preset pressure value; outputting a first event when the touch pressure is greater than or equal to a first pressure value and less than a second pressure value; and outputting a second event when the touch pressure is greater than or equal to the second pressure value; and an event conversion module for converting the second event into a specific event code, wherein the specific event code is used to trigger a system-level function.
[0012] A third aspect of this application provides a touch input device, including a touchpad and a controller, wherein the controller is connected to the touchpad; the controller is used to perform the system-level functions described above.
[0013] In one embodiment of this application, the touch input device further includes a vibration motor, and the controller is connected to the vibration motor.
[0014] In one embodiment of this application, the touch input device further includes a processor and the touch input device, the processor being connected to the touchpad; the processor is configured to receive events output by the touchpad and execute related control logic in response to the events; the processor is also configured to receive a first pressure value and a second pressure value input by the user, and write the first pressure value and the second pressure value to a configuration file in a preset storage space.
[0015] This application configures a first pressure value and a second pressure value for the touch input device. When the touch pressure in any area of the touchpad is greater than or equal to the first pressure value and less than the second pressure value, the controller outputs a first event, including a left-click event. When the touch pressure in the entire area of the touchpad is greater than or equal to the second pressure value, the controller outputs a second event, including a right-click event. This enables the recognition and output of both left-click and right-click events on the touch input device, better distinguishes between the two types of events, reduces the false touch rate of multi-event recognition on the touch input device, and reduces the operational complexity of the touch input device. Furthermore, it eliminates the need for additional drivers or upper-level gesture recognition to output specific event codes for the right-click event, thereby reducing latency and improving compatibility. Attached Figure Description
[0016] Figure 1 This is a schematic block diagram of a touch input device provided in an embodiment of this application.
[0017] Figure 2 This is a flowchart illustrating an event detection method for a touch input device provided in an embodiment of this application.
[0018] Figure 3 This is a schematic block diagram of another touch input device provided in the embodiments of this application.
[0019] Figure 4 This is a flowchart illustrating the second event detection method for a touch input device provided in this application embodiment.
[0020] Figure 5 This is a flowchart illustrating the third event detection method for a touch input device provided in this application embodiment.
[0021] Figure 6 This is a flowchart illustrating the fourth event detection method for a touch input device provided in this application embodiment.
[0022] Figure 7 This is a flowchart illustrating the fifth event detection method for a touch input device provided in this application embodiment.
[0023] Figure 8 This is a schematic block diagram of a touchpad provided in an embodiment of this application.
[0024] Figure 9 This is a schematic block diagram of the third type of touch input device provided in the embodiments of this application. Detailed Implementation
[0025] It should be noted that in the embodiments of this application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone, where A and B can be singular or plural. The terms "first," "second," "third," "fourth," etc. (if present) in the specification, claims, and drawings of this application are used to distinguish similar objects, not to describe a specific order or sequence.
[0026] It should also be noted that the methods disclosed in the embodiments of this application or the methods shown in the flowcharts include one or more steps for implementing the method. Without departing from the scope of the claims, the execution order of multiple steps can be interchanged, and some steps can also be deleted.
[0027] Currently, most existing full-area pressure-sensitive touch input devices use a single pressure threshold, which can only output a single button-triggered event, making it difficult to recognize and output multiple events. For example, when using a touch input device to replace a mouse, it is difficult to distinguish between the left and right mouse button events.
[0028] In existing technologies, a single touch is generally used to implement the left mouse button event, while a two-finger gesture or area logic is used to implement the right mouse button event. This results in complex operation of touch input devices and a relatively high rate of accidental touches.
[0029] This application provides an event detection method, touchpad, and touch input device for a touch input device, which reduces the operational complexity of the touch input device and lowers the false touch rate of multi-event recognition in the touch input device.
[0030] Please refer to Figure 1 , Figure 1 This is a schematic block diagram of a touch input device provided in an embodiment of this application. The touch input device 100 includes a touch panel 110 and a controller 120, with the controller 120 connected to the touch panel 110.
[0031] In this embodiment, the touch input device 100 includes a standalone touchpad 110, a keyboard with a touchpad 110, an embedded touchpad 110, and industrial touch devices, etc. The standalone touchpad 110 includes products such as Apple's Magic Trackpad that communicate and interact with computer devices via wireless communication, while the embedded touchpad 110 includes touch devices found on various brands of laptops.
[0032] The touchpad 110 is used to detect touch pressure and transmit it to the controller 120. For example, the touchpad 110 of the touch input device 100 may include a pressure sensor to detect the user's touch pressure. Upon detecting a target touch pressure, the pressure sensor triggers an event output, enabling the computer device to receive the event and execute related control logic. For example, the touchpad 110 may include a piezoresistive pressure sensor, a piezoelectric pressure sensor, or a capacitive pressure sensor to detect touch pressure. The controller 120 is connected to the pressure sensor to acquire the touch pressure detected by the pressure sensor.
[0033] Next, combined Figure 1 This application provides an embodiment of an event detection method for a touch input device. Please refer to [link / reference]. Figure 2 Specifically, it includes the following steps: Step S21: In response to any area of the touchpad being touched, control the touchpad's sampling rate to increase to the target sampling rate.
[0034] Specifically, when the touchpad has not detected any touch operation for an extended period, the controller can put the touchpad into a sleep state. In sleep mode, the touchpad maintains a lower sleep sampling rate to conserve power, thereby reducing the power consumption of electronic devices equipped with touch input devices. The sleep sampling rate is lower than the aforementioned target sampling rate.
[0035] When the touchpad detects a touch operation, the controller can instruct the touchpad to increase its current sampling rate to a target sampling rate, allowing the touchpad to more accurately detect the magnitude of the touch pressure. For example, the aforementioned sleep sampling rate can be less than or equal to 60Hz, while the target sampling rate can be greater than or equal to 130Hz.
[0036] Step S22: When the touch pressure of any area of the touchpad being touched is greater than or equal to the first pressure value and less than the second pressure value, output the first event.
[0037] In this embodiment, after detecting touch pressure, the touchpad can convert the touch pressure into a digital signal and transmit it to the controller. Simultaneously, the touchpad can also transmit information about the area where the touch pressure occurred to the controller. Upon receiving the digital signal of the touch pressure and the area information, the controller first identifies the magnitude of the pressure value based on the digital signal. When the controller determines that the touch pressure is greater than or equal to a first pressure value and less than a second pressure value, it outputs a first event.
[0038] Step S23: When the touch pressure of any area of the touchpad is greater than or equal to the second pressure value, output the second event.
[0039] In this embodiment of the application, after receiving the digital signal of the touch pressure and the area information, the controller determines that the second touch pressure is greater than the second pressure value, and outputs the second event. That is, when the touch pressure in any area of the touchpad is greater than the second pressure value, the controller directly outputs the second event.
[0040] The first event includes a left-click event, and the second event includes a right-click event. Alternatively, the first event includes a right-click event, and the second event includes a left-click event, thus enabling the touch input device to output mouse left-click events while also outputting mouse right-click events across the entire area.
[0041] Step S24: The touchpad converts the second event into a specific event code, which is used to trigger system-level functions.
[0042] In this embodiment of the application, for example, when the touch input device is applied to a Windows system computer, the firmware in the touchpad can convert the second event into a specific event code including HID Usage 0x9002 in the Windows Precision TouchPad protocol. HID Usage 0x9002 is used to trigger the right-click function of the Windows system, so that the touch input device does not need additional drivers or upper-level gesture recognition to output the specific event code of the right click, thereby reducing latency and improving compatibility.
[0043] It is understood that this application configures a first pressure value and a second pressure value for the touch input device. When the touch pressure in any area of the touchpad is greater than or equal to the first pressure value and less than the second pressure value, the controller outputs a first event, including a left-click event. When the touch pressure in the entire area of the touchpad is greater than or equal to the second pressure value, the controller outputs a second event, including a right-click event. This enables the recognition and output of both left-click and right-click events on the touch input device, better distinguishes between the two types of events, reduces the false touch rate of multi-event recognition on the touch input device, and reduces the operational complexity of the touch input device.
[0044] Please refer to Figure 3 , Figure 3 This is a schematic block diagram of another touch input device provided in an embodiment of this application, wherein the touch input device 100 further includes a vibration motor 130, and the vibration motor is connected to a controller 120.
[0045] The vibration motor 130 is used to output a vibration feedback signal. For example, after the controller 120 outputs a first event or a second event, it can control the vibration motor 130 to output a vibration feedback signal and maintain the response time to remind the user of the touch input device 100 that the operation was successful.
[0046] Next, combined Figure 3This application introduces a second event detection method for a touch input device, as described in its embodiments. Please refer to [link / reference needed]. Figure 4 Specifically, it includes the following steps: Step S41: After power-on startup, obtain the first pressure value and the second pressure value from the configuration file in the preset storage space.
[0047] In this embodiment, a configuration file for the touch input device can be stored in a preset storage space within the computer device. This configuration file stores the aforementioned first pressure value and second pressure value. After power-on, the touch input device establishes a communication connection with the computer device. The controller 120 of the touch input device can access the configuration file in the computer device to obtain the first pressure value and the second pressure value.
[0048] In some embodiments, a user can adjust a first pressure value and a second pressure value in a configuration file by operating a computer device. Furthermore, different users can have different configuration files. For example, when user A logs into the computer device, the controller 120 of the touch input device can access configuration file A in the computer device, while when user B logs into the computer device, the controller 120 of the touch input device can access configuration file B in the computer device, thereby enabling personalized pressure value settings for the touch input device.
[0049] Step S42: In response to any area of the touchpad being touched, control the touchpad's sampling rate to be increased to the target sampling rate.
[0050] Step S43: When the touch pressure of any area of the touchpad being touched is greater than or equal to the first pressure value and less than the second pressure value, output the first event.
[0051] Step S44: When the touch pressure of any area of the touchpad being touched is greater than or equal to the second pressure value, output the second event.
[0052] Step S45: The touchpad converts the second event into a specific event code, which is used to trigger system-level functions.
[0053] Step S46: In response to the output of the second event, control the vibration motor to vibrate for a first preset duration.
[0054] In this embodiment, when the controller outputs the second event, it controls the vibration motor to vibrate for a first preset duration to output a vibration feedback signal for the first preset duration. For example, when the second event is a right-click event, the controller controls the vibration motor to vibrate for the first preset duration to inform the user that the right-click function has been successfully triggered.
[0055] Please refer to Figure 5 , Figure 5A flowchart illustrating the third event detection method for a touch input device provided in this application embodiment, specifically including the following steps: Step S51: In response to any area of the touchpad being touched, control the touchpad's sampling rate to be increased to the target sampling rate.
[0056] Step S52: When the touch pressure of any area of the touchpad being touched is greater than or equal to the first pressure value and less than the second pressure value, output the first event.
[0057] Step S53: When the touch pressure of any area of the touchpad being touched is greater than or equal to the second pressure value and the duration is greater than the first time window, output the second event.
[0058] Step S54: The touchpad converts the second event into a specific event code, which is used to trigger system-level functions.
[0059] It is understandable that the controller outputs the second event only when it determines that the touch pressure in any area of the touchpad is greater than the second pressure value and the duration is greater than the first time window, so as to reduce the false touch rate of the second event.
[0060] Please refer to Figure 6 , Figure 6 A flowchart illustrating the fourth event detection method for a touch input device provided in this application embodiment, specifically including the following steps: Step S61: In response to any area of the touchpad being touched, control the touchpad's sampling rate to increase to the target sampling rate.
[0061] Step S62: When the touch pressure of any area of the touchpad being touched is greater than or equal to the first pressure value and less than the second pressure value, output the first event.
[0062] Step S63: When the touch pressure of any area of the touchpad being touched is greater than or equal to the second pressure value, output the second event.
[0063] Step S64: The touchpad converts the second event into a specific event code, which is used to trigger system-level functions.
[0064] Step S65: In response to the output of the first event or the second event, record the ambient temperature and the pressure value of the touch pressure.
[0065] In this embodiment of the application, a temperature sensor may also be provided in the touch input device. When the controller outputs the first event or the second event, the controller may also obtain the ambient temperature through the temperature sensor and record and store the corresponding pressure value associated with the ambient temperature.
[0066] Step S66: After a preset time interval, correct the first pressure value and the second pressure value based on multiple ambient temperatures and corresponding multiple pressure values.
[0067] In this embodiment of the application, after a preset time interval, that is, after the touch input device has been used for a preset time interval, the controller corrects the first pressure value and the second pressure value based on the recorded multiple ambient temperatures and corresponding multiple pressure values. For example, it can correct the detection error of the pressure value caused by environmental factors by sliding average filtering and temperature baseline compensation.
[0068] Please refer to Figure 7 , Figure 7 A flowchart illustrating the fifth event detection method for a touch input device provided in this application embodiment, specifically including the following steps: Step S71: In response to any area of the touchpad being touched, control the touchpad's sampling rate to be increased to the target sampling rate.
[0069] Step S72: When the touch pressure of any area of the touchpad being touched is greater than or equal to the first pressure value and less than the second pressure value, output the first event.
[0070] Step S73: When the touch pressure of any area of the touchpad being touched is greater than or equal to the second pressure value, output the second event.
[0071] Step S74: The touchpad converts the second event into a specific event code, which is used to trigger system-level functions.
[0072] Step S75: When the touch pressure of any area of the touchpad being touched is greater than or equal to the third pressure value, output the third event.
[0073] Step S76: In response to the output of the third event, control the vibration motor to vibrate for a second preset duration.
[0074] In this embodiment, the third pressure value is greater than the second pressure value, and the second pressure value is greater than the first pressure value. The first event can be a left mouse button event, the second event can be a right mouse button event, and the third event can be a user-defined event. For example, a user can configure the aforementioned custom event through the configuration program of the touch input device in a computer device. This custom event can be, for example, various shortcut commands, and the computer device executes the corresponding shortcut command in response to the third event.
[0075] Please refer to Figure 8 , Figure 8 A schematic block diagram of a touchpad provided in an embodiment of this application, wherein the touchpad 110 includes: The pressure detection module 111 is used to collect the touch pressure of any touch area on any touchpad.
[0076] The pressure judgment module 112 is used to determine whether the touch pressure meets the preset pressure value. When the touch pressure is greater than or equal to the first pressure value and less than the second pressure value, a first event is output. When the touch pressure is greater than or equal to the second pressure value, a second event is output.
[0077] Event conversion module 113 is used to convert the second event into a specific event code, which is used to trigger system-level functions.
[0078] Please refer to Figure 9 , Figure 9 A schematic block diagram of a third type of touch input device provided in the embodiments of this application, and... Figure 3 The touch input device 100 shown is first compared to... Figure 9 The touch input device 100 shown also includes a processor 140, which is connected to the touch panel 110.
[0079] In this embodiment, the processor 140 is used to receive events output by the touchpad 110 and execute related control logic in response to the events. The processor 140 is also used to receive a first pressure value and a second pressure value input by the user, and write the first pressure value and the second pressure value to a configuration file in a preset storage space.
[0080] It is understood that the beneficial effects of the touchpad 110 in this embodiment can be referred to the beneficial effects of the event detection method in the foregoing embodiments, and will not be repeated here.
[0081] This application also provides a computer storage medium storing a computer program that, when executed by a processor, causes the processor to execute the event detection method for the touch input device described above.
[0082] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially as a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer storage medium or transmitted through the computer storage medium. The computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., Digital Versatile Discs (DVDs)), or semiconductor media (e.g., solid-state disks (SSDs)).
[0083] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the methods described above. The aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks. Unless otherwise specified, the technical features of this embodiment and its implementation can be combined arbitrarily.
[0084] The embodiments described above are merely preferred embodiments of this application and are not intended to limit the scope of this application. Any modifications and improvements made by those skilled in the art to the technical solutions of this application without departing from the spirit of this application should fall within the protection scope defined by the claims of this application.
Claims
1. An event detection method for a touch input device, characterized in that, The touch input device includes a touchpad, and the event detection method includes: In response to any area of the touchpad being touched, the sampling rate of the touchpad is controlled to be increased to the target sampling rate; When the touch pressure on any area of the touchpad is greater than or equal to a first pressure value and less than a second pressure value, a first event is output; When the touch pressure on any area of the touchpad is touched is greater than or equal to the second pressure value, a second event is output; The first event includes a left-click event, and the second event includes a right-click event; The touchpad converts the second event into a specific event code, which is used to trigger system-level functions.
2. The event detection method as described in claim 1, characterized in that, The touch input device also includes a vibration motor; The event detection method further includes: In response to the output of the second event, the vibration motor is controlled to vibrate for a first preset duration.
3. The event detection method as described in claim 1, characterized in that, When the touch pressure applied to any area of the touchpad is greater than or equal to the second pressure value, the second event is output, including: The second event is output when the touch pressure on any area of the touchpad being touched is greater than or equal to the second pressure value and the duration is greater than the first time window.
4. The event detection method as described in claim 1, characterized in that, Also includes: In response to the output of the first event or the second event, the ambient temperature and the pressure value of the touch pressure are recorded; After a preset time interval, the first pressure value and the second pressure value are corrected based on the multiple ambient temperatures and the corresponding multiple pressure values.
5. The event detection method as described in claim 1, characterized in that, Also includes: When the touch pressure on any area of the touchpad is less than the first pressure value and the duration is greater than the second time window, a touch ignore event is output.
6. The event detection method as described in claim 1, characterized in that, Also includes: After power-on startup, the first pressure value and the second pressure value are obtained from the configuration file in the preset storage space.
7. The event detection method as described in claim 2, characterized in that, Also includes: A third event is output when the touch pressure on any area of the touchpad being touched is greater than or equal to a third pressure value; wherein the third pressure value is greater than the second pressure value; In response to the output of the third event, the vibration motor is controlled to vibrate for a second preset duration.
8. A touchpad, characterized in that, include: The pressure detection module is used to collect the touch pressure of any touch area on any touchpad. The pressure judgment module is used to determine whether the touch pressure meets the preset pressure value. When the touch pressure is greater than or equal to the first pressure value and less than the second pressure value, a first event is output. When the touch pressure is greater than or equal to the second pressure value, the second event is output; The event conversion module is used to convert a second event into a specific event code, which is used to trigger system-level functions.
9. A touch input device, characterized in that, Includes a touchpad and a controller, wherein the controller is connected to the touchpad; The controller is used to perform the system-level functions as described in claim 1.
10. The touch input device as claimed in claim 9, characterized in that, It also includes a vibration motor, and the controller is connected to the vibration motor.
11. The touch input device as claimed in claim 9, characterized in that, It also includes a processor, which is connected to the touchpad; The processor is used to receive events output by the touchpad and execute related control logic in response to the events; The processor is also used to receive a first pressure value and a second pressure value input by the user, and write the first pressure value and the second pressure value to a configuration file in a preset storage space.