00001 /* 00002 * PROPRIETARY INFORMATION. This software is proprietary to 00003 * Side Effects Software Inc., and is not to be reproduced, 00004 * transmitted, or disclosed in any way without written permission. 00005 * 00006 * Produced by: 00007 * Jeff Lait 00008 * Side Effects Software Inc 00009 * 477 Richmond Street West 00010 * Toronto, Ontario 00011 * Canada M5V 3E7 00012 * 416-504-9876 00013 * 00014 * NAME: UT_Tablet.h ( UT Library, C++) 00015 * 00016 * COMMENTS: This has the system independent interface to tablets such 00017 * as the Wacom Tablet. 00018 */ 00019 00020 #ifndef __UT_Tablet__ 00021 #define __UT_Tablet__ 00022 00023 #include "UT_API.h" 00024 #include <SYS/SYS_Types.h> 00025 00026 enum UT_TABLET_CURSOR 00027 { 00028 UT_TABLET_NONE = -1, 00029 UT_TABLET_MOUSE = 0, 00030 UT_TABLET_STYLUS, 00031 UT_TABLET_ERASER 00032 }; 00033 00034 class UT_API UT_TabletState 00035 { 00036 public: 00037 float myPressure; // 0..1 00038 float myAngle; // In the X/Y plane, in degrees. 00039 float myTilt; // Off horizontal (horizontal = 0) 00040 // This can be negative (ie: eraser) 00041 float myRoll; // Around own axis, in degrees. 00042 UT_TABLET_CURSOR myCursor; // What cursor type generated this 00043 }; 00044 00045 // Is a tablet installed? 00046 UT_API bool UThasTablet(); 00047 // Get the most recent tablet status. 00048 UT_API void UTgetTabletState(UT_TabletState &stat); 00049 00050 #endif 00051
1.5.9