TouchHook ClassDelta Engine Documentation
Native hook on the windows messaging pipeline to grab touch input data. View code on GitHub
Inheritance Hierarchy

System Object
  DeltaEngine.Input.Windows WindowsHook
    DeltaEngine.Input.Windows TouchHook

Namespace: DeltaEngine.Input.Windows
Assembly: DeltaEngine.Input.Windows (in DeltaEngine.Input.Windows.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public class TouchHook : WindowsHook

The TouchHook type exposes the following members.

Constructors

  NameDescription
Public methodTouchHook
Initializes a new instance of the TouchHook class
Top
Methods

  NameDescription
Public methodDispose
Releases all resources used by the TouchHook
(Overrides WindowsHook Dispose .)
Top
Fields

  NameDescription
Protected fieldmessageAction (Inherited from WindowsHook.)
Top
Remarks

Tests: DeltaEngine.Input.Windows.Tests.TouchHookTests
Examples

1 unit tests call DeltaEngine.Input.Windows.TouchHook
[Test]
public void GetTouchDataFromHandleWithInvalidHandle()
{
    Assert.IsEmpty(hook.nativeTouches);
    var nativeTouches = TouchHook.GetTouchDataFromHandle(1, IntPtr.Zero);
    Assert.Null(nativeTouches);
}
See Also