Bug 382946 - Support Windows Ink directly
Summary: Support Windows Ink directly
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Tablets (tablet issues are only very rarely bugs in Krita!) (show other bugs)
Version: 3.1.4
Platform: Microsoft Windows Microsoft Windows
: NOR wishlist
Target Milestone: ---
Assignee: Alvin Wong
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-31 08:07 UTC by jancks
Modified: 2017-09-21 09:38 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 3.3.0


Attachments
No pressure in surface book (173.54 KB, image/jpeg)
2017-07-31 08:07 UTC, jancks
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jancks 2017-07-31 08:07:34 UTC
Created attachment 106980 [details]
No pressure in surface book

No support Surface Book pen?No pressure in surface book
Comment 1 Halla Rempt 2017-07-31 09:00:21 UTC
At least on the Surface Pro 3 and 4, installing the ntrig wintab drivers works. I haven't got access to a Surface Book, so I don't know whether those drivers work on the Book, though I assume they do.  

See: https://docs.krita.org/KritaFAQ#Microsoft_Surface_Pro_and_NTrig

Without a wintab driver, the pen will function like a mouse, not a pen. There is someone working on supporting the Windows Ink api directly, but I haven't seen results yet.
Comment 2 Scott Petrovic 2017-08-08 22:06:16 UTC
There was a person on IRC yesterday that had a new surface 2017. He said he needed to install the VC++ runtime which made it start working in addition to the wintab drivers.
Comment 3 Alvin Wong 2017-08-27 08:16:01 UTC
We have a test version with Windows Ink support: https://krita.org/en/item/angle-and-windows-ink-a-new-test-version-of-krita-for-windows/

It would be nice if you can test it and help fill in the short survey.
Comment 4 Alvin Wong 2017-09-05 13:13:16 UTC
Git commit 4bde92001b450272ed93152a067a9f669cf49cea by Alvin Wong.
Committed on 05/09/2017 at 13:11.
Pushed by alvinwong into branch 'krita/3.3'.

Add Win8+ Pointer Input Message for tablet support

This uses Pointer Input Messages for Windows Ink support, with
right-click button, 1024 levels of pressure, rotation and tilt support.

An option is added to enable this support. It cannot be used together
with WinTab at the moment.

Let's say it is EXPERIMENTAL.
Maniphest Tasks: T6807
Differential Revision: https://phabricator.kde.org/D7441

M  +22   -2    krita/main.cc
M  +1    -0    libs/ui/CMakeLists.txt
M  +22   -0    libs/ui/brushhud/kis_round_hud_button.cpp
M  +2    -0    libs/ui/brushhud/kis_round_hud_button.h
M  +33   -0    libs/ui/dialogs/kis_dlg_preferences.cc
M  +26   -3    libs/ui/forms/wdgtabletsettings.ui
A  +923  -0    libs/ui/input/wintab/kis_tablet_support_win8.cpp     [License: GPL (v2+)]
C  +15   -21   libs/ui/input/wintab/kis_tablet_support_win8.h [from: libs/ui/brushhud/kis_round_hud_button.h - 052% similarity]
M  +20   -0    libs/ui/kis_config.cc
M  +3    -0    libs/ui/kis_config.h
M  +20   -1    libs/ui/kis_popup_palette.cpp

https://commits.kde.org/krita/4bde92001b450272ed93152a067a9f669cf49cea
Comment 5 Alvin Wong 2017-09-05 13:39:57 UTC
Git commit 65cd76c5e817d0b9ac791c2cc50714e995135527 by Alvin Wong.
Committed on 05/09/2017 at 12:38.
Pushed by alvinwong into branch 'master'.

Add Win8+ Pointer Input Message for tablet support

This uses Pointer Input Messages for Windows Ink support, with
right-click button, 1024 levels of pressure, rotation and tilt support.

An option is added to enable this support. It cannot be used together
with WinTab at the moment.

Let's say it is EXPERIMENTAL.
Maniphest Tasks: T6807
Differential Revision: https://phabricator.kde.org/D7441

M  +22   -2    krita/main.cc
M  +1    -0    libs/ui/CMakeLists.txt
M  +22   -0    libs/ui/brushhud/kis_round_hud_button.cpp
M  +2    -0    libs/ui/brushhud/kis_round_hud_button.h
M  +33   -0    libs/ui/dialogs/kis_dlg_preferences.cc
M  +26   -3    libs/ui/forms/wdgtabletsettings.ui
A  +923  -0    libs/ui/input/wintab/kis_tablet_support_win8.cpp     [License: GPL (v2+)]
C  +15   -21   libs/ui/input/wintab/kis_tablet_support_win8.h [from: libs/ui/brushhud/kis_round_hud_button.h - 052% similarity]
M  +20   -0    libs/ui/kis_config.cc
M  +3    -0    libs/ui/kis_config.h
M  +20   -1    libs/ui/kis_popup_palette.cpp

https://commits.kde.org/krita/65cd76c5e817d0b9ac791c2cc50714e995135527
Comment 6 Alvin Wong 2017-09-21 09:38:40 UTC
Using Windows Ink through Pointer Input messages on Windows 8 or above is supported in 3.3.0-rc.1 (though not enabled by default): https://krita.org/en/item/krita-3-3-0-first-release-candidate/