CCAux
2.8.3.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.8.3.0, 2016-04-06
8
*
9
* (c) maximatecc 2013
10
*
11
12
* File description:
13
* Touch Screen settings
14
*
15
* Use the function GetTouchScreen() to get a handle to pass on to the other functions.
16
* Use the method TouchScreen_release(TOUCHSCREENHANDLE) to return the handle.
17
* Note that the VC platform uses a different touch screen solution which is not supported by this API.
18
*
19
* Example Usage:
20
* @include touchscreen_example.cpp
21
*
22
************************************************/
23
24
#ifndef CC_TOUCHSCR_H
25
#define CC_TOUCHSCR_H
26
27
#include "
CCAuxErrors.h
"
28
#include "
CCPlatform.h
"
29
30
#ifdef __cplusplus
31
namespace
CrossControl {
32
#endif
33
34
typedef
void
*
TOUCHSCREENHANDLE
;
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
143
EXTERN_C
144
CCAUXDLL_API
145
TOUCHSCREENHANDLE
146
CCAUXDLL_CALLING_CONV
147
GetTouchScreen
(
void
);
148
159
EXTERN_C
160
CCAUXDLL_API
161
void
162
CCAUXDLL_CALLING_CONV
163
TouchScreen_release
(
TOUCHSCREENHANDLE
);
164
177
EXTERN_C
178
CCAUXDLL_API
179
eErr
180
CCAUXDLL_CALLING_CONV
181
TouchScreen_getMode
(
TOUCHSCREENHANDLE
,
TouchScreenModeSettings
* config);
182
195
EXTERN_C
196
CCAUXDLL_API
197
eErr
198
CCAUXDLL_CALLING_CONV
199
TouchScreen_getMouseRightClickTime
(
TOUCHSCREENHANDLE
,
unsigned
short
* time);
200
210
EXTERN_C
211
CCAUXDLL_API
212
eErr
213
CCAUXDLL_CALLING_CONV
214
TouchScreen_setMode
(
TOUCHSCREENHANDLE
,
TouchScreenModeSettings
config);
215
225
EXTERN_C
226
CCAUXDLL_API
227
eErr
228
CCAUXDLL_CALLING_CONV
229
TouchScreen_setMouseRightClickTime
(
TOUCHSCREENHANDLE
,
unsigned
short
time);
230
242
EXTERN_C
243
CCAUXDLL_API
244
eErr
245
CCAUXDLL_CALLING_CONV
246
TouchScreen_setAdvancedSetting
(
TOUCHSCREENHANDLE
,
TSAdvancedSettingsParameter
param,
unsigned
short
data);
247
262
EXTERN_C
263
CCAUXDLL_API
264
eErr
265
CCAUXDLL_CALLING_CONV
266
TouchScreen_getAdvancedSetting
(
TOUCHSCREENHANDLE
,
TSAdvancedSettingsParameter
param,
unsigned
short
* data);
267
268
#ifdef __cplusplus
269
}
/* namespace CrossControl */
270
#endif
271
272
#endif
/* CC_TOUCHSCR_H */
273
Generated on Wed Apr 6 2016 19:46:22 for CCAux by
1.8.3.1