CCAux  2.15.2.0
CCAux API reference
TouchScreen.h
Go to the documentation of this file.
1 /************************************************
2  *
3  * CROSSCONTROL AUX API
4  *
5  * TouchScreen.h
6  *
7  * Version 2.15.2.0, 2020-07-08
8  *
9  * (c) CrossControl 2010-2020
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  {
41  MOUSE_NOW = 2,
42  TOUCH_NOW = 3
44 
45 
49 #define TS_CALIBTATION_WIDTH TS_CALIBRATION_WIDTH
50 
54  typedef enum
55  {
60 
66 
71 
78 
85 
91 
97 
102 
108 
113 
118 
124 
133 
135 
149  EXTERN_C
150  CCAUXDLL_API
152  CCAUXDLL_CALLING_CONV
153  GetTouchScreen(void);
154 
165  EXTERN_C
166  CCAUXDLL_API
167  void
168  CCAUXDLL_CALLING_CONV
170 
183  EXTERN_C
184  CCAUXDLL_API
185  eErr
186  CCAUXDLL_CALLING_CONV
188 
201  EXTERN_C
202  CCAUXDLL_API
203  eErr
204  CCAUXDLL_CALLING_CONV
206 
216  EXTERN_C
217  CCAUXDLL_API
218  eErr
219  CCAUXDLL_CALLING_CONV
221 
231  EXTERN_C
232  CCAUXDLL_API
233  eErr
234  CCAUXDLL_CALLING_CONV
236 
248  EXTERN_C
249  CCAUXDLL_API
250  eErr
251  CCAUXDLL_CALLING_CONV
253 
268  EXTERN_C
269  CCAUXDLL_API
270  eErr
271  CCAUXDLL_CALLING_CONV
273 
274 #ifdef __cplusplus
275 } /* namespace CrossControl */
276 #endif
277 
278 #endif /* CC_TOUCHSCR_H */
279 
Definition: TouchScreen.h:40
eErr
Definition: CCAuxTypes.h:159
Definition: TouchScreen.h:42
Definition: TouchScreen.h:59
TSAdvancedSettingsParameter
Definition: TouchScreen.h:54
EXTERN_C CCAUXDLL_API TOUCHSCREENHANDLE CCAUXDLL_CALLING_CONV GetTouchScreen(void)
Definition: TouchScreen.h:39
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV TouchScreen_getMode(TOUCHSCREENHANDLE, TouchScreenModeSettings *config)
TouchScreenModeSettings
Definition: TouchScreen.h:37
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV TouchScreen_setMouseRightClickTime(TOUCHSCREENHANDLE, uint16_t time)
Definition: TouchScreen.h:112
Definition: TouchScreen.h:41
Definition: About.h:30
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV TouchScreen_setMode(TOUCHSCREENHANDLE, TouchScreenModeSettings config)
unsigned short uint16_t
Definition: CCAuxTypes.h:48
Definition: TouchScreen.h:65
EXTERN_C CCAUXDLL_API void CCAUXDLL_CALLING_CONV TouchScreen_release(TOUCHSCREENHANDLE)
Definition: TouchScreen.h:117
Definition: TouchScreen.h:107
Definition: TouchScreen.h:132
Definition: TouchScreen.h:101
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV TouchScreen_getAdvancedSetting(TOUCHSCREENHANDLE, TSAdvancedSettingsParameter param, uint16_t *data)
void * TOUCHSCREENHANDLE
Definition: TouchScreen.h:34
Definition: TouchScreen.h:77
Definition: TouchScreen.h:84
Definition: TouchScreen.h:70
Definition: TouchScreen.h:123
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV TouchScreen_getMouseRightClickTime(TOUCHSCREENHANDLE, uint16_t *time)
Definition: TouchScreen.h:96
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV TouchScreen_setAdvancedSetting(TOUCHSCREENHANDLE, TSAdvancedSettingsParameter param, uint16_t data)