I am not familiar 100% with the idea of the trackpad, but I am assuming that the machine you are working with is a laptop, and what you are referring to is something otherwise known as "mousepad".
You can do a couple of things at least in windows. When you tap 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
- MouseClick
- MouseDoubleClick
You can time the Difference in time between MouseUp and MouseDown events and react to the resulting timespan ranges. For instance if you hold the mouse for 20 milliseconds then this is some morse-code character, while holding the mouse for 40 milliseconds is some other character.
In the case of the mousepad/trackpad this would be the equivalent of holding your finger on the pad itself.