Skip to content

Raise WPF touch events using WM_TOUCH instead of the lag-prone default implementation

Notifications You must be signed in to change notification settings

fdsmax/WmTouchDevice

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WmTouchDevice

WmTouchDevice contains a basic implementation of WPF's TouchDevice class based on the data received in WM_TOUCH window messages rather than the Tablet PC API.

This is primarily intended to work around the WPF Touch Event Fires with Delay bug in WPF, particularly severe with multi-touch. However, this libary can be useful to enable other functions that require WM_TOUCH such as App-style focus tracking in Windows 8.

More information on this issue and solution is posted here.

Usage

  • Call MessageTouchDevice.RegisterTouchWindow(IntPtr hWnd) during or after your Window's SourceInitialized event
  • Call MessageTouchDevice.WndProc from a function you attach to your Window using HwndSource.AddHook

Contact

If you wish to contact me directly please use twitter https://twitter.com/jaytwotwit.

Contributing

I am open to pull requests, so you're very welcome to create them.

I haven't had time to add a sample project yet, but would like one.

About

Raise WPF touch events using WM_TOUCH instead of the lag-prone default implementation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%