HDK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
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
18
enum
UT_TABLET_CURSOR
19
{
20
UT_TABLET_NONE
= -1,
21
UT_TABLET_MOUSE
= 0,
22
UT_TABLET_STYLUS
,
23
UT_TABLET_ERASER
24
};
25
26
class
UT_API
UT_TabletState
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.
40
UT_API
void
UTgetTabletState
(
UT_TabletState
&stat);
41
42
#endif
43
UT_TabletState::myAngle
float myAngle
Definition:
UT_Tablet.h:30
UT_TABLET_MOUSE
Definition:
UT_Tablet.h:21
UT_TABLET_CURSOR
UT_TABLET_CURSOR
Definition:
UT_Tablet.h:18
UTgetTabletState
UT_API void UTgetTabletState(UT_TabletState &stat)
UT_API.h
UT_API
#define UT_API
Definition:
UT_API.h:14
UT_TabletState::myPressure
float myPressure
Definition:
UT_Tablet.h:29
SYS_Types.h
UT_TabletState::myCursor
UT_TABLET_CURSOR myCursor
Definition:
UT_Tablet.h:34
UThasTablet
UT_API bool UThasTablet()
UT_TABLET_ERASER
Definition:
UT_Tablet.h:23
UT_TABLET_STYLUS
Definition:
UT_Tablet.h:22
UT_TabletState::myRoll
float myRoll
Definition:
UT_Tablet.h:33
UT_TabletState
Definition:
UT_Tablet.h:26
UT_TabletState::myTilt
float myTilt
Definition:
UT_Tablet.h:31
UT_TABLET_NONE
Definition:
UT_Tablet.h:20
UT
UT_Tablet.h
Generated on Tue Dec 17 2024 03:42:23 for HDK by
1.8.6