- [Windows] Qt digitizer support
- 28 Apr 2015 11:06:58 am
- Last edited by AHelper on 19 Jun 2016 05:05:45 pm; edited 3 times in total
After looking into WinTab, Qt's support for it, and Windows' ink API and real time stylus API, I have taken the initiative to add support for the real time stylus API into the windows platform plugin. Current Qt requires a WinTab driver to be installed to use digitizer data. This is not a requirement for getting tablet input since 2002 (reportedly when Tablet PC SDK and libs were included in XP Tablet PC edition). With the patch applied, I am able to use the tablet example project in Qt to draw from pen input.
Currently supported:
Todo:
Releases
<Old content below, new thread focus>
This issue is mainly with dealing with C, but C#, .NET, w/e would help. I have a program that is reading mouse data from a tablet. I am not using WM_TOUCH messages from the tablet, but rather the mouse position for a pen. I am having issues where there is a slight delay from when you first tap on the screen and when a mouse click message is sent. I have tried using the windows pen/tablet atom to disable automatic pen support to disable TABLET_DISABLE_PRESSANDHOLD | TABLET_DISABLE_PENTAPFEEDBACK | TABLET_DISABLE_PENBARRELFEEDBACK | TABLET_DISABLE_FLICKS, but there is still a delay.
Anyone with a surface (looking at Merth) or other touch device that can see if there is a delay and can be removed? (My testcase is drawing small w's, the beginning of the 'w' is missing. Also, 'I' will have issues with parts of the lines missing.)
I know about the Ink controls, but I am not able to use those controls, I am needing to get the mouse events without delays.
(I am really using Qt, but WM_TOUCH messages for pens are ignored in the windows QPA plugin).
Currently supported:
- Synchronous stylus plugin registered per-window in real time stylus API
- QTabletEvents emitted for in-air and on-surface movements
- Precise X/Y and pressure data used (button data digitial only. Need better hardware for verifying additional data)
Todo:
- Make packet handling robust to use dynamic packet format (windows thing...)
- Don't allow RTS handler to be created when WinTab handler is used
- Tap into the mouse handler to allow the tablet code to enable/disable a filter on fake mouse events.
- Clean up code, remove all warnings
- Find out proper methods for submitting feature requests/patches to Qt.
Releases
<Old content below, new thread focus>
This issue is mainly with dealing with C, but C#, .NET, w/e would help. I have a program that is reading mouse data from a tablet. I am not using WM_TOUCH messages from the tablet, but rather the mouse position for a pen. I am having issues where there is a slight delay from when you first tap on the screen and when a mouse click message is sent. I have tried using the windows pen/tablet atom to disable automatic pen support to disable TABLET_DISABLE_PRESSANDHOLD | TABLET_DISABLE_PENTAPFEEDBACK | TABLET_DISABLE_PENBARRELFEEDBACK | TABLET_DISABLE_FLICKS, but there is still a delay.
Anyone with a surface (looking at Merth) or other touch device that can see if there is a delay and can be removed? (My testcase is drawing small w's, the beginning of the 'w' is missing. Also, 'I' will have issues with parts of the lines missing.)
I know about the Ink controls, but I am not able to use those controls, I am needing to get the mouse events without delays.
(I am really using Qt, but WM_TOUCH messages for pens are ignored in the windows QPA plugin).