Use a temporal filter. Do not report a "Tip Switch" (finger down) until the signal remains stable for at least two consecutive I2C read cycles.
Adjusting to temperature shifts or moisture on the screen. kmdf hid minidriver for touch i2c device calibration best
For high-report-rate touch screens, configure a WDFIOTARGET with a continuous reader to pre-fetch touch data into a ring buffer. Use a temporal filter
Establishing a rock-solid calibration routine for a KMDF (Kernel-Mode Driver Framework) HID minidriver on an I2C touch device is the difference between a premium user experience and a frustratingly "jumpy" interface. When you are operating at the kernel level, your driver acts as the bridge between raw silicon data and the Windows Input Stack. Before passing HID input reports to the class
Before passing HID input reports to the class driver, subtract the reference baseline stored in the device's non-volatile memory or calculated during idle periods. 2. Coordinate Mapping and Scaling