Windows 10 Pen input #57538

Closed
opened 2018-10-31 14:22:48 +01:00 by Bug Reporter · 7 comments

System Information
Windows 10 Home build 17134
Toshiba convertible with touch/pen screen (Wacom 0x056A, 0x50A2, driver/utility 6.3.31-4 aka 7.3.4.48, wintab.dll 1.0.5.9)

Blender Version
Broken: 2.79b f4dc9f9d68 (2.80 alpha also)

Short description of error
Grease pencil stroke does not start on touch, but only after some time or distance (not clear)

Exact steps for others to reproduce the error
Start blender
Open default
Draw with any grease pencil (radial strokes from one starting point, or zig zag lines

Details
I have been digging around a little and found a few other reports of similar issues (also see further down, some blender issue reports):

https://blender.stackexchange.com/questions/118019/stylus-delay-in-grease-pencil
https://blender.stackexchange.com/questions/120009/painting-problem-when-using-pen-in-blender

The latter points to https://www.reddit.com/r/Windowsink/comments/8508fi/controlling_pen_behavior_in_windows_10/ from March 2018 where Microsoft inform about a Windows update where a registry "hack" can affect (revert?) the changed behaviour (LegacyPenInteractionModel).

Controlling Pen Behavior in Windows 10

Greetings to the Windows Ink Community!

In response to overwhelming feedback from our Windows Insiders, the Windows 10 Fall Creator’s Update changed how the pen behaves when it isn’t doing its primary function of laying down ink. The pen now scrolls/pans content, but the previous behavior of lasso/text selection is still accessible by depressing the barrel button before making contact with the screen.

To deliver a consistent experience we also changed the behavior for legacy Win32 applications that weren’t specifically designed for pen. These applications instead rely on Windows to convert pen input into another form of compatible input, such as mouse. While we try to test as many of the most popular applications used with pen before releasing, there is a chance that one of your favorite applications wasn’t covered as part of our validation, relies on input conversion, and may not function as intended after this change.

While we closely monitor application compatibility issues and work with our developer community to resolve them, we understand that in the interim you need to use that app. Starting with Windows 10 build 17110, we’re putting you in control of your pen experience with legacy applications.

By executing the following from an elevated command line, the next time any legacy application starts it will get the prior pen behavior from the Windows 10 Anniversary Update: “reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Pen /v LegacyPenInteractionModel /t REG_DWORD /d 1 /f”

Anytime you want to switch legacy applications back to the behavior introduced in the Windows 10 Fall Creator’s Update, execute this: “reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Pen /v LegacyPenInteractionModel /t REG_DWORD /d 0 /f”

The Windows Ink team is working on improving the UX for controlling this via our settings UI in a future flight and we’ll keep you posted as this progresses. We really appreciate your feedback and would love to receive more of it! For our Windows Ink fans, please check out the most natural way to enter text with your pen with inline handwriting in the latest insider builds. You can now handwrite directly in to the text boxes of UWP applications with your pen; simply tap in the text field and start writing!

 Thanks,  David

WindowsInk@microsoft.com

However, this did not work for me (in addition to disable some Flick and other Pen options as well as Blender's Continuous Grab and trying newer/older Wacom divers).
So I can't use the pen input I'd like to use very much for Grease Pencil (unless I boot Ubuntu and do it there...).

I found other reports that might be related, notably
https://developer.blender.org/T55589 Microsoft Surface pens does not send first events when moves
and others
https://developer.blender.org/T53601 Microlag on tablet pc.
https://developer.blender.org/T53621 Surface Book 2 pen pressure sensitivity issue
https://developer.blender.org/T57151 Graphics Tablet Problem

So it might be that Windows broke something, but blame is not helping, so I would like to ask if someone could revisit the pen input handling to figure out the current "state of the art" - whether this is really a bug by Microsoft and a workaround is available or maybe some API has changed that should be supported by Blender (WinTab apparently is at V1.0.5.9). Other programs seem to have no problem with the changes - are they using a workaround or new API?

Of course I'd be glad contribute mouse/touch/pen event logs etc. for my hardware if you let me know how (don't have a build environment).

I was not able to find a program to test mouse/touch/pen events, but came across some API links and further bug reports.

https://docs.microsoft.com/en-us/windows/desktop/tablet/system-events-and-mouse-messages

https://docs.microsoft.com/en-us/windows/desktop/tablet/listening-to-system-events

Applications can listen to system events by using the InkCollector object and listening for the SystemGesture event on it. You can set which events an application listens to. When a tablet pen action occurs, the corresponding SystemGesture event is sent to the application on its InkCollector object. An application can cancel the mouse message that corresponds to a given SystemGesture event when it receives the event. For details about canceling mouse messages, see SystemGesture event.

https://docs.microsoft.com/en-us/windows/desktop/tablet/flicks-gestures
https://github.com/Microsoft/vscode/issues/36492 Digital Pen input is interpreted as touch instead of mouse after Windows 1709 Fall Creator Update #36492

https://www.reddit.com/r/Windowsink/comments/8emum0/update_fix_now_available_unexpected_application/
https://www.reddit.com/r/Windowsink/comments/8gsjup/additional_control_for_pen_behavior_in_legacy/
https://phabricator.kde.org/D8801?id=23714 WinInk: Simulate native mouse events for handled pen events (Krita)

I will add a video/gif of the behaviour later when I get a chance.

**System Information** Windows 10 Home build 17134 Toshiba convertible with touch/pen screen (Wacom 0x056A, 0x50A2, driver/utility 6.3.31-4 aka 7.3.4.48, wintab.dll 1.0.5.9) **Blender Version** Broken: 2.79b f4dc9f9d68b (2.80 alpha also) **Short description of error** Grease pencil stroke does not start on touch, but only after some time or distance (not clear) **Exact steps for others to reproduce the error** Start blender Open default Draw with any grease pencil (radial strokes from one starting point, or zig zag lines **Details** I have been digging around a little and found a few other reports of similar issues (also see further down, some blender issue reports): https://blender.stackexchange.com/questions/118019/stylus-delay-in-grease-pencil https://blender.stackexchange.com/questions/120009/painting-problem-when-using-pen-in-blender The latter points to https://www.reddit.com/r/Windowsink/comments/8508fi/controlling_pen_behavior_in_windows_10/ from March 2018 where Microsoft inform about a Windows update where a registry "hack" can affect (revert?) the changed behaviour (LegacyPenInteractionModel). > Controlling Pen Behavior in Windows 10 > > Greetings to the Windows Ink Community! > > In response to overwhelming feedback from our Windows Insiders, the Windows 10 Fall Creator’s Update changed how the pen behaves when it isn’t doing its primary function of laying down ink. The pen now scrolls/pans content, but the previous behavior of lasso/text selection is still accessible by depressing the barrel button before making contact with the screen. > > To deliver a consistent experience we also changed the behavior for legacy Win32 applications that weren’t specifically designed for pen. These applications instead rely on Windows to convert pen input into another form of compatible input, such as mouse. While we try to test as many of the most popular applications used with pen before releasing, there is a chance that one of your favorite applications wasn’t covered as part of our validation, relies on input conversion, and may not function as intended after this change. > > While we closely monitor application compatibility issues and work with our developer community to resolve them, we understand that in the interim you need to use that app. Starting with Windows 10 build 17110, we’re putting you in control of your pen experience with legacy applications. > > By executing the following from an elevated command line, the next time any legacy application starts it will get the prior pen behavior from the Windows 10 Anniversary Update: “reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Pen /v LegacyPenInteractionModel /t REG_DWORD /d 1 /f” > > Anytime you want to switch legacy applications back to the behavior introduced in the Windows 10 Fall Creator’s Update, execute this: “reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Pen /v LegacyPenInteractionModel /t REG_DWORD /d 0 /f” > > The Windows Ink team is working on improving the UX for controlling this via our settings UI in a future flight and we’ll keep you posted as this progresses. We really appreciate your feedback and would love to receive more of it! For our Windows Ink fans, please check out the most natural way to enter text with your pen with inline handwriting in the latest insider builds. You can now handwrite directly in to the text boxes of UWP applications with your pen; simply tap in the text field and start writing! > >  Thanks,  David > > WindowsInk@microsoft.com However, this did not work for me (in addition to disable some Flick and other Pen options as well as Blender's Continuous Grab and trying newer/older Wacom divers). So I can't use the pen input I'd like to use very much for Grease Pencil (unless I boot Ubuntu and do it there...). I found other reports that might be related, notably https://developer.blender.org/T55589 Microsoft Surface pens does not send first events when moves and others https://developer.blender.org/T53601 Microlag on tablet pc. https://developer.blender.org/T53621 Surface Book 2 pen pressure sensitivity issue https://developer.blender.org/T57151 Graphics Tablet Problem So it might be that Windows broke something, but blame is not helping, so I would like to ask if someone could revisit the pen input handling to figure out the current "state of the art" - whether this is really a bug by Microsoft and a workaround is available or maybe some API has changed that should be supported by Blender (WinTab apparently is at V1.0.5.9). Other programs seem to have no problem with the changes - are they using a workaround or new API? Of course I'd be glad contribute mouse/touch/pen event logs etc. for my hardware if you let me know how (don't have a build environment). I was not able to find a program to test mouse/touch/pen events, but came across some API links and further bug reports. https://docs.microsoft.com/en-us/windows/desktop/tablet/system-events-and-mouse-messages https://docs.microsoft.com/en-us/windows/desktop/tablet/listening-to-system-events > Applications can listen to system events by using the InkCollector object and listening for the SystemGesture event on it. You can set which events an application listens to. When a tablet pen action occurs, the corresponding SystemGesture event is sent to the application on its InkCollector object. An application can cancel the mouse message that corresponds to a given SystemGesture event when it receives the event. For details about canceling mouse messages, see SystemGesture event. https://docs.microsoft.com/en-us/windows/desktop/tablet/flicks-gestures https://github.com/Microsoft/vscode/issues/36492 Digital Pen input is interpreted as touch instead of mouse after Windows 1709 Fall Creator Update #36492 https://www.reddit.com/r/Windowsink/comments/8emum0/update_fix_now_available_unexpected_application/ https://www.reddit.com/r/Windowsink/comments/8gsjup/additional_control_for_pen_behavior_in_legacy/ https://phabricator.kde.org/D8801?id=23714 WinInk: Simulate native mouse events for handled pen events (Krita) I will add a video/gif of the behaviour later when I get a chance.
Author

Added subscriber: @bugreporter

Added subscriber: @bugreporter

#58561 was marked as duplicate of this issue

#58561 was marked as duplicate of this issue

Added subscriber: @midije-2

Added subscriber: @midije-2

Closed as duplicate of #55589

Closed as duplicate of #55589

Added subscriber: @a_blender_user

Added subscriber: @a_blender_user

I find how to resolve this problem
you just setting follow my picture

2018-12-15_161225.jpg

my English is terrible

I find how to resolve this problem you just setting follow my picture ![2018-12-15_161225.jpg](https://archive.blender.org/developer/F5959475/2018-12-15_161225.jpg) my English is terrible

#55589 has not been resolved.

I am using the Microsoft Surface Book with Microsoft Pen. The first events still do not show in Grease Pencil drawings.
After it was announced that it was resolved, I downloaded builds after January 14 and still have the same problem.
Is there a certain build I should be using that has the fix?

#55589 has not been resolved. I am using the Microsoft Surface Book with Microsoft Pen. The first events still do not show in Grease Pencil drawings. After it was announced that it was resolved, I downloaded builds after January 14 and still have the same problem. Is there a certain build I should be using that has the fix?
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#57538
No description provided.