HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_Tablet.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: UT_Tablet.h ( UT Library, C++)
7  *
8  * COMMENTS: This has the system independent interface to tablets such
9  * as the Wacom Tablet.
10  */
11 
12 #ifndef __UT_Tablet__
13 #define __UT_Tablet__
14 
15 #include "UT_API.h"
16 #include <SYS/SYS_Types.h>
17 
19 {
24 };
25 
27 {
28 public:
29  float myPressure; // 0..1
30  float myAngle; // In the X/Y plane, in degrees.
31  float myTilt; // Off horizontal (horizontal = 0)
32  // This can be negative (ie: eraser)
33  float myRoll; // Around own axis, in degrees.
34  UT_TABLET_CURSOR myCursor; // What cursor type generated this
35 };
36 
37 // Is a tablet installed?
38 UT_API bool UThasTablet();
39 // Get the most recent tablet status.
41 
42 #endif
43 
float myAngle
Definition: UT_Tablet.h:30
UT_TABLET_CURSOR
Definition: UT_Tablet.h:18
UT_API void UTgetTabletState(UT_TabletState &stat)
#define UT_API
Definition: UT_API.h:14
float myPressure
Definition: UT_Tablet.h:29
UT_TABLET_CURSOR myCursor
Definition: UT_Tablet.h:34
UT_API bool UThasTablet()
float myRoll
Definition: UT_Tablet.h:33
float myTilt
Definition: UT_Tablet.h:31