diff options
author | Christopher Peerman <chris_82> | 2019-01-14 19:46:49 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-01-14 22:48:11 +0300 |
commit | 46932079184754ace63b25f854e3f273fbf6f0c5 (patch) | |
tree | 2d17a33cccbb5e873b090d319add3485528ace54 /release | |
parent | eaf282b375598e63876465735519ab3190bd3214 (diff) |
Windows: add support for Windows Ink.
Before this Blender always needed the Wintab driver. This adds support for the
native pressure API in Windows 8+, making it possible to get pressure sensitivity
on e.g. Microsoft Surface hardware without any extra drivers.
By default Blender will automatically use Wintab if available, and if not use
Windows Ink instead. There is also a new user preference to explicitly specify
which API to use if automatic detection fails.
Fixes T57869: no pressure sensitivity with Surface pen or laptop.
Code by Christopher Peerman with some tweaks by Brecht Van Lommel.
Differential Revision: https://developer.blender.org/D4165
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_userpref.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_userpref.py b/release/scripts/startup/bl_ui/space_userpref.py index 6abf2e92da8..a4feabf7254 100644 --- a/release/scripts/startup/bl_ui/space_userpref.py +++ b/release/scripts/startup/bl_ui/space_userpref.py @@ -1504,6 +1504,11 @@ class USERPREF_PT_input_devices_tablet(PreferencePanel): prefs = context.preferences inputs = prefs.inputs + import sys + if sys.platform[:3] == "win": + layout.prop(inputs, "tablet_api") + layout.separator() + flow = layout.grid_flow(row_major=False, columns=0, even_columns=True, even_rows=False, align=False) flow.prop(inputs, "pressure_threshold_max") |