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 --- intern/ghost/GHOST_ISystem.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'intern/ghost/GHOST_ISystem.h') diff --git a/intern/ghost/GHOST_ISystem.h b/intern/ghost/GHOST_ISystem.h index 42ae750e20a..39686c56719 100644 --- a/intern/ghost/GHOST_ISystem.h +++ b/intern/ghost/GHOST_ISystem.h @@ -397,6 +397,12 @@ public: */ virtual GHOST_TSuccess getButtonState(GHOST_TButtonMask mask, bool& isDown) const = 0; + /** + * Set which tablet API to use. Only affects Windows, other platforms have a single API. + * \param api Enum indicating which API to use. + */ + virtual void setTabletAPI(GHOST_TTabletAPI api) = 0; + #ifdef WITH_INPUT_NDOF /** * Sets 3D mouse deadzone -- cgit v1.2.3