I am not 100% familiar with the idea of a trackpad, but I assume that the machine you are working with is a laptop, and what you are talking about is what is otherwise known as a "mouse pad."
You can do a couple of things, at least in the windows. When you click with your finger, you are actually sending click events to the Windows runtime. If you hold
In .NET, any object (Forms / UserControls) that inherits from System.Windows.Forms.Control can subscribe to the following events:
- Mousedown
- Mouseup
- Mouseenter
- Mouseleave
- Mouse click
- Mousedoubleclick
You can separate the difference between MouseUp and MouseDown events and respond to the received time range ranges. For example, if you hold the mouse for 20 milliseconds, then this is the symbol of some Morse code, while holding the mouse for 40 milliseconds is some other symbol.
In the case of a mouse / trackpad, this will be equivalent to holding your finger on the pad itself.
bleepzter
source share