CCAux
2.7.2.0
CCAux API reference
Main Page
Namespaces
Data Structures
Files
File List
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
IncludeFiles
TouchScreen.h
Go to the documentation of this file.
1
/************************************************
2
*
3
* CROSSCONTROL AUX API
4
*
5
* TouchScreen.h
6
*
7
* Version 2.7.2.0, 2014-08-25
8
*
9
* (c) maximatecc 2013
10
*
11
* File description:
12
* Touch Screen settings
13
*
14
* Use the function GetTouchScreen() to get a handle to pass on to the other functions.
15
* Use the method TouchScreen_release(TOUCHSCREENHANDLE) to return the handle.
16
* Note that the VC platform uses a different touch screen solution which is not supported by this API.
17
*
18
* Example Usage:
19
* @include touchscreen_example.cpp
20
*
21
************************************************/
22
23
#ifndef CC_TOUCHSCR_H
24
#define CC_TOUCHSCR_H
25
26
#include "
CCAuxErrors.h
"
27
#include "
CCPlatform.h
"
28
29
#ifdef __cplusplus
30
namespace
CrossControl {
31
#endif
32
33
typedef
void
*
TOUCHSCREENHANDLE
;
34
35
37
typedef
enum
38
{
39
MOUSE_NEXT_BOOT
= 0,
40
TOUCH_NEXT_BOOT
= 1,
41
MOUSE_NOW
= 2,
42
TOUCH_NOW
= 3
43
}
TouchScreenModeSettings
;
44
48
typedef
enum
49
{
53
TS_RIGHT_CLICK_TIME
= 0,
54
59
TS_LOW_LEVEL
= 1,
60
64
TS_UNTOUCHLEVEL
= 2,
65
71
TS_DEBOUNCE_TIME
= 3,
72
78
TS_DEBOUNCE_TIMEOUT_TIME
= 4,
79
84
TS_DOUBLECLICK_MAX_CLICK_TIME
= 5,
85
90
TS_DOUBLE_CLICK_TIME
= 6,
91
95
TS_MAX_RIGHTCLICK_DISTANCE
= 7,
96
101
TS_USE_DEJITTER
= 8,
102
106
TS_CALIBTATION_WIDTH
= 9,
107
111
TS_CALIBRATION_MEASUREMENTS
= 10,
112
117
TS_RESTORE_DEFAULT_SETTINGS
= 11,
118
126
TS_TCHAUTOCAL
= 12
127
128
}
TSAdvancedSettingsParameter
;
129
130
144
EXTERN_C
145
CCAUXDLL_API
146
TOUCHSCREENHANDLE
147
CCAUXDLL_CALLING_CONV
148
GetTouchScreen
(
void
);
149
160
EXTERN_C
161
CCAUXDLL_API
162
void
163
CCAUXDLL_CALLING_CONV
164
TouchScreen_release
(
TOUCHSCREENHANDLE
);
165
178
EXTERN_C
179
CCAUXDLL_API
180
eErr
181
CCAUXDLL_CALLING_CONV
182
TouchScreen_getMode
(
TOUCHSCREENHANDLE
,
TouchScreenModeSettings
* config);
183
196
EXTERN_C
197
CCAUXDLL_API
198
eErr
199
CCAUXDLL_CALLING_CONV
200
TouchScreen_getMouseRightClickTime
(
TOUCHSCREENHANDLE
,
unsigned
short
* time);
201
211
EXTERN_C
212
CCAUXDLL_API
213
eErr
214
CCAUXDLL_CALLING_CONV
215
TouchScreen_setMode
(
TOUCHSCREENHANDLE
,
TouchScreenModeSettings
config);
216
226
EXTERN_C
227
CCAUXDLL_API
228
eErr
229
CCAUXDLL_CALLING_CONV
230
TouchScreen_setMouseRightClickTime
(
TOUCHSCREENHANDLE
,
unsigned
short
time);
231
243
EXTERN_C
244
CCAUXDLL_API
245
eErr
246
CCAUXDLL_CALLING_CONV
247
TouchScreen_setAdvancedSetting
(
TOUCHSCREENHANDLE
,
TSAdvancedSettingsParameter
param,
unsigned
short
data);
248
263
EXTERN_C
264
CCAUXDLL_API
265
eErr
266
CCAUXDLL_CALLING_CONV
267
TouchScreen_getAdvancedSetting
(
TOUCHSCREENHANDLE
,
TSAdvancedSettingsParameter
param,
unsigned
short
* data);
268
269
#ifdef __cplusplus
270
}
/* namespace CrossControl */
271
#endif
272
273
#endif
/* CC_TOUCHSCR_H */
274
Generated on Mon Aug 25 2014 17:48:49 for CCAux by
1.8.3.1