Namespace NanoByte.Common.Controls.Touch
Provides support for multi-touch input in WinForms.
To use TouchEventSource:
- Override your control's
WndProcmethod and forward messages to ProcessMessage. - Register event handlers for the ManipulationStarted, ManipulationUpdated and ManipulationCompleted events. Taps are reported as regular mouse clicks.
Alternatively, you can use TouchForm or TouchPanel, which handle the message routing for you and expose the same set of events.
Classes
- ManipulationEventArgs
Event information about a manipulation gesture (translation, scaling and/or rotation by one or more contacts).
- TouchEventSource
Translates Windows pointer input on a Control into high-level touch gestures. Single finger taps are still reported as mouse click events.
- TouchForm
A window that reacts to touch gestures. Single finger taps are still reported as mouse click events.
- TouchPanel
A panel that reacts to touch gestures. Single finger taps are still reported as mouse click events.
Structs
- ManipulationDelta
A combined translation, scaling, rotation and expansion produced by a manipulation gesture.
- ManipulationVelocity
The velocities of an ongoing manipulation gesture.
Interfaces
- ITouchControl
A control that reacts to touch gestures.