Add Win8+ "Pointer Input Message" support
Open, NormalPublic

Description

MSDN: https://msdn.microsoft.com/en-us/library/windows/desktop/hh454916(v=vs.85).aspx
MSDN (Pointer Device Input Stack): https://msdn.microsoft.com/en-us/library/windows/desktop/hh802883(v=vs.85).aspx

It seems to be related to Windows Ink in some way because if I disable Windows Ink from Wacom's settings it does not send these events at all. It also does not work in Wacom's mouse mode.

When the window is out of focus and you press and hold inside the window using the tablet pen, it does not show the annoying nagging circle. It also sends the pressure data properly (unlike with wintab where pressure doesn't work with the first stroke).

Support can be added by filtering Windows messages and injecting QTabletEvent, just like how the current WinTab forked from Qt is working.

Restricted Application added a subscriber: woltherav. · View Herald TranscriptAug 17 2017, 2:27 PM
alvinhochun updated the task description. (Show Details)Aug 17 2017, 4:28 PM
This comment was removed by alvinhochun.
This comment was removed by alvinhochun.
This comment was removed by alvinhochun.
alvinhochun renamed this task from Investigate Win8+ "Pointer Input Message" to Add Win8+ "Pointer Input Message" support.Aug 22 2017, 5:21 PM
alvinhochun updated the task description. (Show Details)
rempt added a subscriber: rempt.Aug 23 2017, 10:07 AM
This comment was removed by alvinhochun.
alvinhochun added a comment.EditedSep 5 2017, 3:40 PM

Points to note:

  • It is not enabled by default even if no WinTab driver can be loaded (should look into enabling it by default after it's confirmed working smoothly even on the latest surface devices)
  • It cannot be used with WinTab together (this is technically possible to implement, but I'll leave it for later)
  • It is supposedly only available on Windows 8 and newer (not actually tested on Windows 8/8.1 yet)
  • It is EXPERIMENTAL

(Added 2017-09-06)

I think these points should also be noted to users:

  • For users with Wacom Intuos (Pro) tablets it's recommended to use WinTab
  • For N-Trig devices (including Surface devices) they should try Windows Ink to see if there are any differences
  • For any other devices there is no recommendation
  • If their tablets doesn't work properly with Krita using WinTab (the default), they can try switching to Windows Ink to see if it works
  • If they found any issues with the Windows Ink support, they should report them on bugs.kde.org