From 46932079184754ace63b25f854e3f273fbf6f0c5 Mon Sep 17 00:00:00 2001 From: Christopher Peerman Date: Mon, 14 Jan 2019 17:46:49 +0100 Subject: 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 --- release/scripts/startup/bl_ui/space_userpref.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'release') 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") -- cgit v1.2.3