Skip to content

Instantly share code, notes, and snippets.

@ulatekh
ulatekh / DisableTouchConversionToMouse.cs
Last active May 13, 2022 03:48 — forked from vbfox/DisableTouchConversionToMouse.cs
Globally disable the conversion of touch events to mouse events in Windows 7
namespace BlackFox
{
using System;
using System.ComponentModel;
using System.Runtime.InteropServices;
using System.Security;
/// <summary>
/// As long as this object exists all mouse events created from a touch event for legacy support will be disabled.
/// Or, at least, that's the promise. But the system mouse-cursor still gets set to the position of the last