annotate src/video/win32/wactab/wintab.h @ 2724:0e2b65f32298

Added Wacom API headers. FIXME: Dynamically load the Wacom API functions from wintab32.dll
author Sam Lantinga <slouken@libsdl.org>
date Tue, 26 Aug 2008 05:26:28 +0000
parents
children f23ebf1ddac4
rev   line source
2724
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
1 /* -------------------------------- wintab.h -------------------------------- */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
2 /* Combined 16 & 32-bit version. */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
3
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
4 /*------------------------------------------------------------------------------
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
5 The text and information contained in this file may be freely used,
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
6 copied, or distributed without compensation or licensing restrictions.
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
7
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
8 This file is copyright 1991-1998 by LCS/Telegraphics.
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
9 ------------------------------------------------------------------------------*/
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
10
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
11 #ifndef _INC_WINTAB /* prevent multiple includes */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
12 #define _INC_WINTAB
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
13
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
14 #ifdef __cplusplus
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
15 extern "C" {
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
16 #endif /* __cplusplus */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
17
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
18 /* -------------------------------------------------------------------------- */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
19 /* Messages */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
20 #ifndef NOWTMESSAGES
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
21
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
22 #define WT_DEFBASE 0x7FF0
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
23 #define WT_MAXOFFSET 0xF
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
24
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
25 #define _WT_PACKET(b) ((b)+0)
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
26 #define _WT_CTXOPEN(b) ((b)+1)
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
27 #define _WT_CTXCLOSE(b) ((b)+2)
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
28 #define _WT_CTXUPDATE(b) ((b)+3)
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
29 #define _WT_CTXOVERLAP(b) ((b)+4)
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
30 #define _WT_PROXIMITY(b) ((b)+5)
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
31 #define _WT_INFOCHANGE(b) ((b)+6)
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
32 #define _WT_CSRCHANGE(b) ((b)+7) /* 1.1 */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
33 #define _WT_MAX(b) ((b)+WT_MAXOFFSET)
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
34
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
35 #define WT_PACKET _WT_PACKET(WT_DEFBASE)
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
36 #define WT_CTXOPEN _WT_CTXOPEN(WT_DEFBASE)
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
37 #define WT_CTXCLOSE _WT_CTXCLOSE(WT_DEFBASE)
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
38 #define WT_CTXUPDATE _WT_CTXUPDATE(WT_DEFBASE)
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
39 #define WT_CTXOVERLAP _WT_CTXOVERLAP(WT_DEFBASE)
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
40 #define WT_PROXIMITY _WT_PROXIMITY(WT_DEFBASE)
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
41 #define WT_INFOCHANGE _WT_INFOCHANGE(WT_DEFBASE)
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
42 #define WT_CSRCHANGE _WT_CSRCHANGE(WT_DEFBASE) /* 1.1 */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
43 #define WT_MAX _WT_MAX(WT_DEFBASE)
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
44
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
45 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
46
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
47 /* -------------------------------------------------------------------------- */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
48 /* -------------------------------------------------------------------------- */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
49 /* Data Types */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
50
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
51 /* -------------------------------------------------------------------------- */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
52 /* COMMON DATA DEFS */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
53
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
54 DECLARE_HANDLE(HMGR); /* manager handle */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
55 DECLARE_HANDLE(HCTX); /* context handle */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
56 DECLARE_HANDLE(HWTHOOK); /* hook handle */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
57
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
58 typedef DWORD WTPKT; /* packet mask */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
59
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
60
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
61 #ifndef NOWTPKT
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
62
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
63 /* WTPKT bits */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
64 #define PK_CONTEXT 0x0001 /* reporting context */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
65 #define PK_STATUS 0x0002 /* status bits */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
66 #define PK_TIME 0x0004 /* time stamp */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
67 #define PK_CHANGED 0x0008 /* change bit vector */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
68 #define PK_SERIAL_NUMBER 0x0010 /* packet serial number */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
69 #define PK_CURSOR 0x0020 /* reporting cursor */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
70 #define PK_BUTTONS 0x0040 /* button information */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
71 #define PK_X 0x0080 /* x axis */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
72 #define PK_Y 0x0100 /* y axis */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
73 #define PK_Z 0x0200 /* z axis */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
74 #define PK_NORMAL_PRESSURE 0x0400 /* normal or tip pressure */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
75 #define PK_TANGENT_PRESSURE 0x0800 /* tangential or barrel pressure */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
76 #define PK_ORIENTATION 0x1000 /* orientation info: tilts */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
77 #define PK_ROTATION 0x2000 /* rotation info; 1.1 */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
78
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
79 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
80
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
81 typedef DWORD FIX32; /* fixed-point arithmetic type */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
82
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
83 #ifndef NOFIX32
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
84 #define INT(x) HIWORD(x)
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
85 #define FRAC(x) LOWORD(x)
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
86
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
87 #define CASTFIX32(x) ((FIX32)((x)*65536L))
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
88
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
89 #define ROUND(x) (INT(x) + (FRAC(x) > (WORD)0x8000))
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
90
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
91 #define FIX_MUL(c, a, b) \
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
92 (c = (((DWORD)FRAC(a) * FRAC(b)) >> 16) + \
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
93 (DWORD)INT(a) * FRAC(b) + \
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
94 (DWORD)INT(b) * FRAC(a) + \
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
95 ((DWORD)INT(a) * INT(b) << 16))
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
96
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
97 #ifdef _WINDLL
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
98 #define FIX_DIV_SC static
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
99 #else
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
100 #define FIX_DIV_SC
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
101 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
102
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
103 #define FIX_DIV(c, a, b) \
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
104 { \
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
105 FIX_DIV_SC DWORD temp, rem, btemp; \
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
106 \
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
107 /* fraction done bytewise */ \
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
108 temp = ((a / b) << 16); \
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
109 rem = a % b; \
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
110 btemp = b; \
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
111 if (INT(btemp) < 256) { \
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
112 rem <<= 8; \
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
113 } \
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
114 else { \
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
115 btemp >>= 8; \
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
116 } \
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
117 temp += ((rem / btemp) << 8); \
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
118 rem %= btemp; \
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
119 rem <<= 8; \
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
120 temp += rem / btemp; \
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
121 c = temp; \
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
122 }
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
123 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
124
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
125 /* -------------------------------------------------------------------------- */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
126 /* INFO DATA DEFS */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
127
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
128 #ifndef NOWTINFO
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
129
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
130 #ifndef NOWTAXIS
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
131
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
132 typedef struct tagAXIS {
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
133 LONG axMin;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
134 LONG axMax;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
135 UINT axUnits;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
136 FIX32 axResolution;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
137 } AXIS, *PAXIS, NEAR *NPAXIS, FAR *LPAXIS;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
138
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
139 /* unit specifiers */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
140 #define TU_NONE 0
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
141 #define TU_INCHES 1
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
142 #define TU_CENTIMETERS 2
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
143 #define TU_CIRCLE 3
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
144
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
145 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
146
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
147 #ifndef NOWTSYSBUTTONS
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
148
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
149 /* system button assignment values */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
150 #define SBN_NONE 0x00
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
151 #define SBN_LCLICK 0x01
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
152 #define SBN_LDBLCLICK 0x02
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
153 #define SBN_LDRAG 0x03
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
154 #define SBN_RCLICK 0x04
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
155 #define SBN_RDBLCLICK 0x05
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
156 #define SBN_RDRAG 0x06
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
157 #define SBN_MCLICK 0x07
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
158 #define SBN_MDBLCLICK 0x08
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
159 #define SBN_MDRAG 0x09
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
160 /* for Pen Windows */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
161 #define SBN_PTCLICK 0x10
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
162 #define SBN_PTDBLCLICK 0x20
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
163 #define SBN_PTDRAG 0x30
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
164 #define SBN_PNCLICK 0x40
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
165 #define SBN_PNDBLCLICK 0x50
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
166 #define SBN_PNDRAG 0x60
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
167 #define SBN_P1CLICK 0x70
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
168 #define SBN_P1DBLCLICK 0x80
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
169 #define SBN_P1DRAG 0x90
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
170 #define SBN_P2CLICK 0xA0
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
171 #define SBN_P2DBLCLICK 0xB0
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
172 #define SBN_P2DRAG 0xC0
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
173 #define SBN_P3CLICK 0xD0
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
174 #define SBN_P3DBLCLICK 0xE0
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
175 #define SBN_P3DRAG 0xF0
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
176
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
177 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
178
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
179 #ifndef NOWTCAPABILITIES
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
180
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
181 /* hardware capabilities */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
182 #define HWC_INTEGRATED 0x0001
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
183 #define HWC_TOUCH 0x0002
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
184 #define HWC_HARDPROX 0x0004
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
185 #define HWC_PHYSID_CURSORS 0x0008 /* 1.1 */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
186 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
187
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
188 #ifndef NOWTIFC
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
189
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
190 #ifndef NOWTCURSORS
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
191
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
192 /* cursor capabilities */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
193 #define CRC_MULTIMODE 0x0001 /* 1.1 */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
194 #define CRC_AGGREGATE 0x0002 /* 1.1 */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
195 #define CRC_INVERT 0x0004 /* 1.1 */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
196
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
197 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
198
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
199 /* info categories */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
200 #define WTI_INTERFACE 1
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
201 #define IFC_WINTABID 1
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
202 #define IFC_SPECVERSION 2
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
203 #define IFC_IMPLVERSION 3
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
204 #define IFC_NDEVICES 4
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
205 #define IFC_NCURSORS 5
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
206 #define IFC_NCONTEXTS 6
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
207 #define IFC_CTXOPTIONS 7
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
208 #define IFC_CTXSAVESIZE 8
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
209 #define IFC_NEXTENSIONS 9
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
210 #define IFC_NMANAGERS 10
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
211 #define IFC_MAX 10
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
212
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
213
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
214 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
215
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
216 #ifndef NOWTSTATUS
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
217
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
218 #define WTI_STATUS 2
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
219 #define STA_CONTEXTS 1
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
220 #define STA_SYSCTXS 2
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
221 #define STA_PKTRATE 3
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
222 #define STA_PKTDATA 4
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
223 #define STA_MANAGERS 5
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
224 #define STA_SYSTEM 6
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
225 #define STA_BUTTONUSE 7
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
226 #define STA_SYSBTNUSE 8
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
227 #define STA_MAX 8
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
228
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
229 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
230
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
231 #ifndef NOWTDEFCONTEXT
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
232
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
233 #define WTI_DEFCONTEXT 3
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
234 #define WTI_DEFSYSCTX 4
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
235 #define WTI_DDCTXS 400 /* 1.1 */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
236 #define WTI_DSCTXS 500 /* 1.1 */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
237 #define CTX_NAME 1
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
238 #define CTX_OPTIONS 2
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
239 #define CTX_STATUS 3
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
240 #define CTX_LOCKS 4
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
241 #define CTX_MSGBASE 5
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
242 #define CTX_DEVICE 6
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
243 #define CTX_PKTRATE 7
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
244 #define CTX_PKTDATA 8
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
245 #define CTX_PKTMODE 9
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
246 #define CTX_MOVEMASK 10
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
247 #define CTX_BTNDNMASK 11
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
248 #define CTX_BTNUPMASK 12
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
249 #define CTX_INORGX 13
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
250 #define CTX_INORGY 14
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
251 #define CTX_INORGZ 15
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
252 #define CTX_INEXTX 16
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
253 #define CTX_INEXTY 17
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
254 #define CTX_INEXTZ 18
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
255 #define CTX_OUTORGX 19
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
256 #define CTX_OUTORGY 20
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
257 #define CTX_OUTORGZ 21
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
258 #define CTX_OUTEXTX 22
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
259 #define CTX_OUTEXTY 23
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
260 #define CTX_OUTEXTZ 24
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
261 #define CTX_SENSX 25
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
262 #define CTX_SENSY 26
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
263 #define CTX_SENSZ 27
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
264 #define CTX_SYSMODE 28
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
265 #define CTX_SYSORGX 29
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
266 #define CTX_SYSORGY 30
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
267 #define CTX_SYSEXTX 31
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
268 #define CTX_SYSEXTY 32
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
269 #define CTX_SYSSENSX 33
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
270 #define CTX_SYSSENSY 34
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
271 #define CTX_MAX 34
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
272
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
273 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
274
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
275 #ifndef NOWTDEVICES
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
276
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
277 #define WTI_DEVICES 100
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
278 #define DVC_NAME 1
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
279 #define DVC_HARDWARE 2
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
280 #define DVC_NCSRTYPES 3
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
281 #define DVC_FIRSTCSR 4
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
282 #define DVC_PKTRATE 5
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
283 #define DVC_PKTDATA 6
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
284 #define DVC_PKTMODE 7
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
285 #define DVC_CSRDATA 8
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
286 #define DVC_XMARGIN 9
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
287 #define DVC_YMARGIN 10
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
288 #define DVC_ZMARGIN 11
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
289 #define DVC_X 12
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
290 #define DVC_Y 13
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
291 #define DVC_Z 14
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
292 #define DVC_NPRESSURE 15
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
293 #define DVC_TPRESSURE 16
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
294 #define DVC_ORIENTATION 17
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
295 #define DVC_ROTATION 18 /* 1.1 */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
296 #define DVC_PNPID 19 /* 1.1 */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
297 #define DVC_MAX 19
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
298
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
299 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
300
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
301 #ifndef NOWTCURSORS
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
302
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
303 #define WTI_CURSORS 200
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
304 #define CSR_NAME 1
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
305 #define CSR_ACTIVE 2
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
306 #define CSR_PKTDATA 3
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
307 #define CSR_BUTTONS 4
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
308 #define CSR_BUTTONBITS 5
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
309 #define CSR_BTNNAMES 6
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
310 #define CSR_BUTTONMAP 7
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
311 #define CSR_SYSBTNMAP 8
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
312 #define CSR_NPBUTTON 9
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
313 #define CSR_NPBTNMARKS 10
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
314 #define CSR_NPRESPONSE 11
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
315 #define CSR_TPBUTTON 12
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
316 #define CSR_TPBTNMARKS 13
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
317 #define CSR_TPRESPONSE 14
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
318 #define CSR_PHYSID 15 /* 1.1 */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
319 #define CSR_MODE 16 /* 1.1 */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
320 #define CSR_MINPKTDATA 17 /* 1.1 */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
321 #define CSR_MINBUTTONS 18 /* 1.1 */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
322 #define CSR_CAPABILITIES 19 /* 1.1 */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
323 #define CSR_TYPE 20 /* 1.2 */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
324 #define CSR_MAX 20
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
325
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
326 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
327
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
328 #ifndef NOWTEXTENSIONS
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
329
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
330 #define WTI_EXTENSIONS 300
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
331 #define EXT_NAME 1
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
332 #define EXT_TAG 2
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
333 #define EXT_MASK 3
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
334 #define EXT_SIZE 4
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
335 #define EXT_AXES 5
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
336 #define EXT_DEFAULT 6
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
337 #define EXT_DEFCONTEXT 7
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
338 #define EXT_DEFSYSCTX 8
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
339 #define EXT_CURSORS 9
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
340 #define EXT_MAX 109 /* Allow 100 cursors */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
341
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
342 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
343
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
344 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
345
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
346 /* -------------------------------------------------------------------------- */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
347 /* CONTEXT DATA DEFS */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
348
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
349 #define LCNAMELEN 40
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
350 #define LC_NAMELEN 40
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
351 #ifdef WIN32
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
352 typedef struct tagLOGCONTEXTA {
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
353 char lcName[LCNAMELEN];
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
354 UINT lcOptions;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
355 UINT lcStatus;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
356 UINT lcLocks;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
357 UINT lcMsgBase;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
358 UINT lcDevice;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
359 UINT lcPktRate;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
360 WTPKT lcPktData;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
361 WTPKT lcPktMode;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
362 WTPKT lcMoveMask;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
363 DWORD lcBtnDnMask;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
364 DWORD lcBtnUpMask;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
365 LONG lcInOrgX;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
366 LONG lcInOrgY;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
367 LONG lcInOrgZ;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
368 LONG lcInExtX;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
369 LONG lcInExtY;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
370 LONG lcInExtZ;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
371 LONG lcOutOrgX;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
372 LONG lcOutOrgY;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
373 LONG lcOutOrgZ;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
374 LONG lcOutExtX;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
375 LONG lcOutExtY;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
376 LONG lcOutExtZ;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
377 FIX32 lcSensX;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
378 FIX32 lcSensY;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
379 FIX32 lcSensZ;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
380 BOOL lcSysMode;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
381 int lcSysOrgX;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
382 int lcSysOrgY;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
383 int lcSysExtX;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
384 int lcSysExtY;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
385 FIX32 lcSysSensX;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
386 FIX32 lcSysSensY;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
387 } LOGCONTEXTA, *PLOGCONTEXTA, NEAR *NPLOGCONTEXTA, FAR *LPLOGCONTEXTA;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
388 typedef struct tagLOGCONTEXTW {
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
389 WCHAR lcName[LCNAMELEN];
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
390 UINT lcOptions;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
391 UINT lcStatus;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
392 UINT lcLocks;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
393 UINT lcMsgBase;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
394 UINT lcDevice;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
395 UINT lcPktRate;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
396 WTPKT lcPktData;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
397 WTPKT lcPktMode;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
398 WTPKT lcMoveMask;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
399 DWORD lcBtnDnMask;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
400 DWORD lcBtnUpMask;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
401 LONG lcInOrgX;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
402 LONG lcInOrgY;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
403 LONG lcInOrgZ;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
404 LONG lcInExtX;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
405 LONG lcInExtY;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
406 LONG lcInExtZ;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
407 LONG lcOutOrgX;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
408 LONG lcOutOrgY;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
409 LONG lcOutOrgZ;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
410 LONG lcOutExtX;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
411 LONG lcOutExtY;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
412 LONG lcOutExtZ;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
413 FIX32 lcSensX;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
414 FIX32 lcSensY;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
415 FIX32 lcSensZ;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
416 BOOL lcSysMode;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
417 int lcSysOrgX;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
418 int lcSysOrgY;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
419 int lcSysExtX;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
420 int lcSysExtY;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
421 FIX32 lcSysSensX;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
422 FIX32 lcSysSensY;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
423 } LOGCONTEXTW, *PLOGCONTEXTW, NEAR *NPLOGCONTEXTW, FAR *LPLOGCONTEXTW;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
424 #ifdef UNICODE
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
425 typedef LOGCONTEXTW LOGCONTEXT;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
426 typedef PLOGCONTEXTW PLOGCONTEXT;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
427 typedef NPLOGCONTEXTW NPLOGCONTEXT;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
428 typedef LPLOGCONTEXTW LPLOGCONTEXT;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
429 #else
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
430 typedef LOGCONTEXTA LOGCONTEXT;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
431 typedef PLOGCONTEXTA PLOGCONTEXT;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
432 typedef NPLOGCONTEXTA NPLOGCONTEXT;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
433 typedef LPLOGCONTEXTA LPLOGCONTEXT;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
434 #endif /* UNICODE */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
435 #else /* WIN32 */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
436 typedef struct tagLOGCONTEXT {
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
437 char lcName[LCNAMELEN];
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
438 UINT lcOptions;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
439 UINT lcStatus;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
440 UINT lcLocks;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
441 UINT lcMsgBase;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
442 UINT lcDevice;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
443 UINT lcPktRate;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
444 WTPKT lcPktData;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
445 WTPKT lcPktMode;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
446 WTPKT lcMoveMask;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
447 DWORD lcBtnDnMask;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
448 DWORD lcBtnUpMask;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
449 LONG lcInOrgX;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
450 LONG lcInOrgY;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
451 LONG lcInOrgZ;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
452 LONG lcInExtX;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
453 LONG lcInExtY;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
454 LONG lcInExtZ;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
455 LONG lcOutOrgX;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
456 LONG lcOutOrgY;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
457 LONG lcOutOrgZ;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
458 LONG lcOutExtX;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
459 LONG lcOutExtY;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
460 LONG lcOutExtZ;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
461 FIX32 lcSensX;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
462 FIX32 lcSensY;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
463 FIX32 lcSensZ;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
464 BOOL lcSysMode;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
465 int lcSysOrgX;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
466 int lcSysOrgY;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
467 int lcSysExtX;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
468 int lcSysExtY;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
469 FIX32 lcSysSensX;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
470 FIX32 lcSysSensY;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
471 } LOGCONTEXT, *PLOGCONTEXT, NEAR *NPLOGCONTEXT, FAR *LPLOGCONTEXT;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
472 #endif /* WIN32 */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
473
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
474 /* context option values */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
475 #define CXO_SYSTEM 0x0001
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
476 #define CXO_PEN 0x0002
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
477 #define CXO_MESSAGES 0x0004
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
478 #define CXO_MARGIN 0x8000
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
479 #define CXO_MGNINSIDE 0x4000
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
480 #define CXO_CSRMESSAGES 0x0008 /* 1.1 */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
481
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
482 /* context status values */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
483 #define CXS_DISABLED 0x0001
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
484 #define CXS_OBSCURED 0x0002
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
485 #define CXS_ONTOP 0x0004
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
486
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
487 /* context lock values */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
488 #define CXL_INSIZE 0x0001
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
489 #define CXL_INASPECT 0x0002
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
490 #define CXL_SENSITIVITY 0x0004
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
491 #define CXL_MARGIN 0x0008
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
492 #define CXL_SYSOUT 0x0010
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
493
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
494 /* -------------------------------------------------------------------------- */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
495 /* EVENT DATA DEFS */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
496
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
497 /* For packet structure definition, see pktdef.h */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
498
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
499 /* packet status values */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
500 #define TPS_PROXIMITY 0x0001
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
501 #define TPS_QUEUE_ERR 0x0002
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
502 #define TPS_MARGIN 0x0004
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
503 #define TPS_GRAB 0x0008
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
504 #define TPS_INVERT 0x0010 /* 1.1 */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
505
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
506 typedef struct tagORIENTATION {
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
507 int orAzimuth;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
508 int orAltitude;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
509 int orTwist;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
510 } ORIENTATION, *PORIENTATION, NEAR *NPORIENTATION, FAR *LPORIENTATION;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
511
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
512 typedef struct tagROTATION { /* 1.1 */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
513 int roPitch;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
514 int roRoll;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
515 int roYaw;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
516 } ROTATION, *PROTATION, NEAR *NPROTATION, FAR *LPROTATION;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
517 // grandfather in obsolete member names.
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
518 #define rotPitch roPitch
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
519 #define rotRoll roRoll
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
520 #define rotYaw roYaw
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
521
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
522 /* relative buttons */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
523 #define TBN_NONE 0
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
524 #define TBN_UP 1
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
525 #define TBN_DOWN 2
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
526
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
527 /* -------------------------------------------------------------------------- */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
528 /* DEVICE CONFIG CONSTANTS */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
529
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
530 #ifndef NOWTDEVCFG
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
531
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
532 #define WTDC_NONE 0
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
533 #define WTDC_CANCEL 1
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
534 #define WTDC_OK 2
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
535 #define WTDC_RESTART 3
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
536
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
537 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
538
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
539 /* -------------------------------------------------------------------------- */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
540 /* HOOK CONSTANTS */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
541
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
542 #ifndef NOWTHOOKS
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
543
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
544 #define WTH_PLAYBACK 1
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
545 #define WTH_RECORD 2
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
546
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
547 #define WTHC_GETLPLPFN (-3)
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
548 #define WTHC_LPLPFNNEXT (-2)
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
549 #define WTHC_LPFNNEXT (-1)
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
550 #define WTHC_ACTION 0
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
551 #define WTHC_GETNEXT 1
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
552 #define WTHC_SKIP 2
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
553
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
554 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
555
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
556 /* -------------------------------------------------------------------------- */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
557 /* PREFERENCE FUNCTION CONSTANTS */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
558
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
559 #ifndef NOWTPREF
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
560
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
561 #define WTP_LPDEFAULT ((LPVOID)-1L)
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
562 #define WTP_DWDEFAULT ((DWORD)-1L)
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
563
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
564 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
565
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
566 /* -------------------------------------------------------------------------- */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
567 /* EXTENSION TAGS AND CONSTANTS */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
568
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
569 #ifndef NOWTEXTENSIONS
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
570
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
571 /* constants for use with pktdef.h */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
572 #define PKEXT_ABSOLUTE 1
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
573 #define PKEXT_RELATIVE 2
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
574
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
575 /* Extension tags. */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
576 #define WTX_OBT 0 /* Out of bounds tracking */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
577 #define WTX_FKEYS 1 /* Function keys */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
578 #define WTX_TILT 2 /* Raw Cartesian tilt; 1.1 */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
579 #define WTX_CSRMASK 3 /* select input by cursor type; 1.1 */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
580 #define WTX_XBTNMASK 4 /* Extended button mask; 1.1 */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
581 #define WTX_EXPKEYS 5 /* ExpressKeys; 1.3 */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
582
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
583 typedef struct tagXBTNMASK {
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
584 BYTE xBtnDnMask[32];
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
585 BYTE xBtnUpMask[32];
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
586 } XBTNMASK;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
587
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
588 typedef struct tagTILT { /* 1.1 */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
589 int tiltX;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
590 int tiltY;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
591 } TILT;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
592
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
593 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
594
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
595 /* -------------------------------------------------------------------------- */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
596 /* -------------------------------------------------------------------------- */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
597 /* Functions */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
598
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
599 #ifndef API
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
600 #ifndef WINAPI
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
601 #define API FAR PASCAL
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
602 #else
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
603 #define API WINAPI
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
604 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
605 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
606
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
607 #ifndef NOWTCALLBACKS
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
608
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
609 #ifndef CALLBACK
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
610 #define CALLBACK FAR PASCAL
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
611 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
612
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
613 #ifndef NOWTMANAGERFXNS
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
614 /* callback function types */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
615 typedef BOOL (WINAPI * WTENUMPROC)(HCTX, LPARAM); /* changed CALLBACK->WINAPI, 1.1 */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
616 typedef BOOL (WINAPI * WTCONFIGPROC)(HCTX, HWND);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
617 typedef LRESULT (WINAPI * WTHOOKPROC)(int, WPARAM, LPARAM);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
618 typedef WTHOOKPROC FAR *LPWTHOOKPROC;
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
619 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
620
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
621 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
622
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
623
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
624 #ifndef NOWTFUNCTIONS
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
625
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
626 #ifndef NOWTBASICFXNS
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
627 /* BASIC FUNCTIONS */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
628 #ifdef WIN32
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
629 UINT API WTInfoA(UINT, UINT, LPVOID);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
630 #define ORD_WTInfoA 20
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
631 UINT API WTInfoW(UINT, UINT, LPVOID);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
632 #define ORD_WTInfoW 1020
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
633 #ifdef UNICODE
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
634 #define WTInfo WTInfoW
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
635 #define ORD_WTInfo ORD_WTInfoW
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
636 #else
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
637 #define WTInfo WTInfoA
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
638 #define ORD_WTInfo ORD_WTInfoA
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
639 #endif /* !UNICODE */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
640 #else
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
641 UINT API WTInfo(UINT, UINT, LPVOID);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
642 #define ORD_WTInfo 20
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
643 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
644 #ifdef WIN32
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
645 HCTX API WTOpenA(HWND, LPLOGCONTEXTA, BOOL);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
646 #define ORD_WTOpenA 21
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
647 HCTX API WTOpenW(HWND, LPLOGCONTEXTW, BOOL);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
648 #define ORD_WTOpenW 1021
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
649 #ifdef UNICODE
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
650 #define WTOpen WTOpenW
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
651 #define ORD_WTOpen ORD_WTOpenW
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
652 #else
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
653 #define WTOpen WTOpenA
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
654 #define ORD_WTOpen ORD_WTOpenA
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
655 #endif /* !UNICODE */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
656 #else
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
657 HCTX API WTOpen(HWND, LPLOGCONTEXT, BOOL);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
658 #define ORD_WTOpen 21
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
659 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
660 BOOL API WTClose(HCTX);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
661 #define ORD_WTClose 22
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
662 int API WTPacketsGet(HCTX, int, LPVOID);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
663 #define ORD_WTPacketsGet 23
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
664 BOOL API WTPacket(HCTX, UINT, LPVOID);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
665 #define ORD_WTPacket 24
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
666 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
667
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
668 #ifndef NOWTVISIBILITYFXNS
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
669 /* VISIBILITY FUNCTIONS */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
670 BOOL API WTEnable(HCTX, BOOL);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
671 #define ORD_WTEnable 40
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
672 BOOL API WTOverlap(HCTX, BOOL);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
673 #define ORD_WTOverlap 41
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
674 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
675
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
676 #ifndef NOWTCTXEDITFXNS
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
677 /* CONTEXT EDITING FUNCTIONS */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
678 BOOL API WTConfig(HCTX, HWND);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
679 #define ORD_WTConfig 60
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
680 #ifdef WIN32
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
681 BOOL API WTGetA(HCTX, LPLOGCONTEXTA);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
682 #define ORD_WTGetA 61
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
683 BOOL API WTGetW(HCTX, LPLOGCONTEXTW);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
684 #define ORD_WTGetW 1061
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
685 #ifdef UNICODE
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
686 #define WTGet WTGetW
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
687 #define ORD_WTGet ORD_WTGetW
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
688 #else
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
689 #define WTGet WTGetA
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
690 #define ORD_WTGet ORD_WTGetA
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
691 #endif /* !UNICODE */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
692 #else
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
693 BOOL API WTGet(HCTX, LPLOGCONTEXT);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
694 #define ORD_WTGet 61
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
695 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
696 #ifdef WIN32
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
697 BOOL API WTSetA(HCTX, LPLOGCONTEXTA);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
698 #define ORD_WTSetA 62
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
699 BOOL API WTSetW(HCTX, LPLOGCONTEXTW);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
700 #define ORD_WTSetW 1062
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
701 #ifdef UNICODE
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
702 #define WTSet WTSetW
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
703 #define ORD_WTSet ORD_WTSetW
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
704 #else
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
705 #define WTSet WTSetA
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
706 #define ORD_WTSet ORD_WTSetA
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
707 #endif /* !UNICODE */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
708 #else
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
709 BOOL API WTSet(HCTX, LPLOGCONTEXT);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
710 #define ORD_WTSet 62
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
711 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
712 BOOL API WTExtGet(HCTX, UINT, LPVOID);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
713 #define ORD_WTExtGet 63
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
714 BOOL API WTExtSet(HCTX, UINT, LPVOID);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
715 #define ORD_WTExtSet 64
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
716 BOOL API WTSave(HCTX, LPVOID);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
717 #define ORD_WTSave 65
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
718 HCTX API WTRestore(HWND, LPVOID, BOOL);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
719 #define ORD_WTRestore 66
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
720 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
721
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
722 #ifndef NOWTQUEUEFXNS
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
723 /* ADVANCED PACKET AND QUEUE FUNCTIONS */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
724 int API WTPacketsPeek(HCTX, int, LPVOID);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
725 #define ORD_WTPacketsPeek 80
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
726 int API WTDataGet(HCTX, UINT, UINT, int, LPVOID, LPINT);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
727 #define ORD_WTDataGet 81
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
728 int API WTDataPeek(HCTX, UINT, UINT, int, LPVOID, LPINT);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
729 #define ORD_WTDataPeek 82
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
730 #ifndef WIN32
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
731 /* OBSOLETE IN WIN32! */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
732 DWORD API WTQueuePackets(HCTX);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
733 #define ORD_WTQueuePackets 83
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
734 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
735 int API WTQueueSizeGet(HCTX);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
736 #define ORD_WTQueueSizeGet 84
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
737 BOOL API WTQueueSizeSet(HCTX, int);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
738 #define ORD_WTQueueSizeSet 85
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
739 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
740
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
741 #ifndef NOWTHMGRFXNS
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
742 /* MANAGER HANDLE FUNCTIONS */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
743 HMGR API WTMgrOpen(HWND, UINT);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
744 #define ORD_WTMgrOpen 100
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
745 BOOL API WTMgrClose(HMGR);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
746 #define ORD_WTMgrClose 101
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
747 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
748
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
749 #ifndef NOWTMGRCTXFXNS
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
750 /* MANAGER CONTEXT FUNCTIONS */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
751 BOOL API WTMgrContextEnum(HMGR, WTENUMPROC, LPARAM);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
752 #define ORD_WTMgrContextEnum 120
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
753 HWND API WTMgrContextOwner(HMGR, HCTX);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
754 #define ORD_WTMgrContextOwner 121
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
755 HCTX API WTMgrDefContext(HMGR, BOOL);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
756 #define ORD_WTMgrDefContext 122
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
757 HCTX API WTMgrDefContextEx(HMGR, UINT, BOOL); /* 1.1 */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
758 #define ORD_WTMgrDefContextEx 206
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
759 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
760
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
761 #ifndef NOWTMGRCONFIGFXNS
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
762 /* MANAGER CONFIG BOX FUNCTIONS */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
763 UINT API WTMgrDeviceConfig(HMGR, UINT, HWND);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
764 #define ORD_WTMgrDeviceConfig 140
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
765 #ifndef WIN32
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
766 /* OBSOLETE IN WIN32! */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
767 BOOL API WTMgrConfigReplace(HMGR, BOOL, WTCONFIGPROC);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
768 #define ORD_WTMgrConfigReplace 141
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
769 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
770 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
771
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
772 #ifndef NOWTMGRHOOKFXNS
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
773 /* MANAGER PACKET HOOK FUNCTIONS */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
774 #ifndef WIN32
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
775 /* OBSOLETE IN WIN32! */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
776 WTHOOKPROC API WTMgrPacketHook(HMGR, BOOL, int, WTHOOKPROC);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
777 #define ORD_WTMgrPacketHook 160
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
778 LRESULT API WTMgrPacketHookDefProc(int, WPARAM, LPARAM, LPWTHOOKPROC);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
779 #define ORD_WTMgrPacketHookDefProc 161
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
780 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
781 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
782
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
783 #ifndef NOWTMGRPREFFXNS
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
784 /* MANAGER PREFERENCE DATA FUNCTIONS */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
785 BOOL API WTMgrExt(HMGR, UINT, LPVOID);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
786 #define ORD_WTMgrExt 180
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
787 BOOL API WTMgrCsrEnable(HMGR, UINT, BOOL);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
788 #define ORD_WTMgrCsrEnable 181
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
789 BOOL API WTMgrCsrButtonMap(HMGR, UINT, LPBYTE, LPBYTE);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
790 #define ORD_WTMgrCsrButtonMap 182
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
791 BOOL API WTMgrCsrPressureBtnMarks(HMGR, UINT, DWORD, DWORD);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
792 #define ORD_WTMgrCsrPressureBtnMarks 183
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
793 BOOL API WTMgrCsrPressureResponse(HMGR, UINT, UINT FAR *, UINT FAR *);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
794 #define ORD_WTMgrCsrPressureResponse 184
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
795 BOOL API WTMgrCsrExt(HMGR, UINT, UINT, LPVOID);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
796 #define ORD_WTMgrCsrExt 185
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
797 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
798
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
799 /* Win32 replacements for non-portable functions. */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
800 #ifndef NOWTQUEUEFXNS
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
801 /* ADVANCED PACKET AND QUEUE FUNCTIONS */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
802 BOOL API WTQueuePacketsEx(HCTX, UINT FAR *, UINT FAR *);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
803 #define ORD_WTQueuePacketsEx 200
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
804 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
805
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
806 #ifndef NOWTMGRCONFIGFXNS
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
807 /* MANAGER CONFIG BOX FUNCTIONS */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
808 #ifdef WIN32
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
809 BOOL API WTMgrConfigReplaceExA(HMGR, BOOL, LPSTR, LPSTR);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
810 #define ORD_WTMgrConfigReplaceExA 202
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
811 BOOL API WTMgrConfigReplaceExW(HMGR, BOOL, LPWSTR, LPSTR);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
812 #define ORD_WTMgrConfigReplaceExW 1202
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
813 #ifdef UNICODE
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
814 #define WTMgrConfigReplaceEx WTMgrConfigReplaceExW
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
815 #define ORD_WTMgrConfigReplaceEx ORD_WTMgrConfigReplaceExW
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
816 #else
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
817 #define WTMgrConfigReplaceEx WTMgrConfigReplaceExA
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
818 #define ORD_WTMgrConfigReplaceEx ORD_WTMgrConfigReplaceExA
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
819 #endif /* !UNICODE */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
820 #else
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
821 BOOL API WTMgrConfigReplaceEx(HMGR, BOOL, LPSTR, LPSTR);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
822 #define ORD_WTMgrConfigReplaceEx 202
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
823 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
824 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
825
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
826 #ifndef NOWTMGRHOOKFXNS
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
827 /* MANAGER PACKET HOOK FUNCTIONS */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
828 #ifdef WIN32
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
829 HWTHOOK API WTMgrPacketHookExA(HMGR, int, LPSTR, LPSTR);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
830 #define ORD_WTMgrPacketHookExA 203
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
831 HWTHOOK API WTMgrPacketHookExW(HMGR, int, LPWSTR, LPSTR);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
832 #define ORD_WTMgrPacketHookExW 1203
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
833 #ifdef UNICODE
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
834 #define WTMgrPacketHookEx WTMgrPacketHookExW
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
835 #define ORD_WTMgrPacketHookEx ORD_WTMgrPacketHookExW
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
836 #else
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
837 #define WTMgrPacketHookEx WTMgrPacketHookExA
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
838 #define ORD_WTMgrPacketHookEx ORD_WTMgrPacketHookExA
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
839 #endif /* !UNICODE */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
840 #else
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
841 HWTHOOK API WTMgrPacketHookEx(HMGR, int, LPSTR, LPSTR);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
842 #define ORD_WTMgrPacketHookEx 203
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
843 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
844 BOOL API WTMgrPacketUnhook(HWTHOOK);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
845 #define ORD_WTMgrPacketUnhook 204
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
846 LRESULT API WTMgrPacketHookNext(HWTHOOK, int, WPARAM, LPARAM);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
847 #define ORD_WTMgrPacketHookNext 205
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
848 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
849
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
850 #ifndef NOWTMGRPREFFXNS
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
851 /* MANAGER PREFERENCE DATA FUNCTIONS */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
852 BOOL API WTMgrCsrPressureBtnMarksEx(HMGR, UINT, UINT FAR *, UINT FAR *);
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
853 #define ORD_WTMgrCsrPressureBtnMarksEx 201
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
854 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
855
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
856
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
857
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
858 #endif
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
859
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
860 #ifdef __cplusplus
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
861 }
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
862 #endif /* __cplusplus */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
863
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
864 #endif /* #define _INC_WINTAB */
0e2b65f32298 Added Wacom API headers.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
865