diff options
author | Matt Ebb <matt@mke3.net> | 2006-08-03 16:23:00 +0400 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2006-08-03 16:23:00 +0400 |
commit | c85de34c267983bfc5dca388d5bcf6f092cf60ee (patch) | |
tree | 1fe782d1a1691de1814758d52bf9ed72fa3850e3 /intern/ghost/GHOST_IWindow.h | |
parent | 454fceb5f51809974be2ba3620c24d4eff7cf3a3 (diff) |
* Tablet Pressure support in GHOST
This is 'ported' from Nicholas Bishop's sculpting GSoC tree. I'm bringing it
over now so a) it can be there for when lukep does his GHOST refactor b) it's
something that GHOST should have anyway, particularly now there's interest in
painting tools and c) it's missing support in Windows, so hopefully now some
enterprising Windows coder can add that more easily in the main bf tree.
Right now X11 and Mac OS X are supported. I added and can maintain the Mac OS X
part, but I'm not familiar with the Xinput stuff, which Nicholas wrote. Both
X11 and Mac are collecting active device and pressure, and Mac is also
collecting x and y tilt data. Up to coders how they want to use this info! :)
Although the data's coming in, I haven't actually made this do anything. I
thought it best to leave it to brecht to figure out what he wants to do with the
painting stuff, and I wonder what other interesting uses there could be for it
(proportional edit?). I'll write implementation details in a separate mail to
the committers list.
Diffstat (limited to 'intern/ghost/GHOST_IWindow.h')
-rw-r--r-- | intern/ghost/GHOST_IWindow.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/intern/ghost/GHOST_IWindow.h b/intern/ghost/GHOST_IWindow.h index 903d1e4498d..5f6bbe553c6 100644 --- a/intern/ghost/GHOST_IWindow.h +++ b/intern/ghost/GHOST_IWindow.h @@ -201,6 +201,12 @@ public: */ virtual void setUserData(const GHOST_TUserDataPtr userData) = 0; + /** + * Returns the tablet data (pressure etc). + * @return The tablet data (pressure etc). + */ + virtual const GHOST_TabletData* GetTabletData() = 0; + /*************************************************************************************** ** Cursor management functionality ***************************************************************************************/ |