CCAux  2.20.0.0
CCAux API reference
TouchScreen.h
Go to the documentation of this file.
1 
2 /*
3  * Copyright (C) 2023 CrossControl AB
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; with
8  * version 2.1 of the License.
9  */
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 {
32 #endif
33 
34 typedef void *TOUCHSCREENHANDLE;
35 
37 typedef enum
38 {
41  MOUSE_NOW = 2,
42  TOUCH_NOW = 3
44 
48 #define TS_CALIBTATION_WIDTH TS_CALIBRATION_WIDTH
49 
53 typedef enum
54 {
59 
65 
70 
77 
84 
90 
96 
101 
107 
112 
117 
123 
131  TS_TCHAUTOCAL = 12
132 
134 
154 EXTERN_C
155 CCAUXDLL_API
157 CCAUXDLL_CALLING_CONV
159 
170 EXTERN_C
171 CCAUXDLL_API
172 void CCAUXDLL_CALLING_CONV TouchScreen_release(TOUCHSCREENHANDLE);
173 
186 EXTERN_C
187 CCAUXDLL_API
189 
202 EXTERN_C
203 CCAUXDLL_API
205 
215 EXTERN_C
216 CCAUXDLL_API
218 
228 EXTERN_C
229 CCAUXDLL_API
231 
243 EXTERN_C
244 CCAUXDLL_API
246  uint16_t data);
247 
262 EXTERN_C
263 CCAUXDLL_API
265  uint16_t *data);
266 
268 #ifdef __cplusplus
269 } /* namespace CrossControl */
270 #endif
271 
272 #endif /* CC_TOUCHSCR_H */
unsigned short uint16_t
Definition: CCAuxTypes.h:38
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV TouchScreen_setMouseRightClickTime(TOUCHSCREENHANDLE, uint16_t time)
EXTERN_C CCAUXDLL_API void CCAUXDLL_CALLING_CONV TouchScreen_release(TOUCHSCREENHANDLE)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV TouchScreen_setAdvancedSetting(TOUCHSCREENHANDLE, TSAdvancedSettingsParameter param, uint16_t data)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV TouchScreen_getMode(TOUCHSCREENHANDLE, TouchScreenModeSettings *config)
EXTERN_C CCAUXDLL_API TOUCHSCREENHANDLE CCAUXDLL_CALLING_CONV GetTouchScreen(void)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV TouchScreen_getMouseRightClickTime(TOUCHSCREENHANDLE, uint16_t *time)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV TouchScreen_getAdvancedSetting(TOUCHSCREENHANDLE, TSAdvancedSettingsParameter param, uint16_t *data)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV TouchScreen_setMode(TOUCHSCREENHANDLE, TouchScreenModeSettings config)
Definition: About.h:30
TSAdvancedSettingsParameter
Definition: TouchScreen.h:54
@ TS_DEBOUNCE_TIMEOUT_TIME
Definition: TouchScreen.h:83
@ TS_MAX_RIGHTCLICK_DISTANCE
Definition: TouchScreen.h:100
@ TS_RESTORE_DEFAULT_SETTINGS
Definition: TouchScreen.h:122
@ TS_RIGHT_CLICK_TIME
Definition: TouchScreen.h:58
@ TS_LOW_LEVEL
Definition: TouchScreen.h:64
@ TS_DOUBLECLICK_MAX_CLICK_TIME
Definition: TouchScreen.h:89
@ TS_TCHAUTOCAL
Definition: TouchScreen.h:131
@ TS_DOUBLE_CLICK_TIME
Definition: TouchScreen.h:95
@ TS_USE_DEJITTER
Definition: TouchScreen.h:106
@ TS_DEBOUNCE_TIME
Definition: TouchScreen.h:76
@ TS_CALIBRATION_WIDTH
Definition: TouchScreen.h:111
@ TS_UNTOUCHLEVEL
Definition: TouchScreen.h:69
@ TS_CALIBRATION_MEASUREMENTS
Definition: TouchScreen.h:116
TouchScreenModeSettings
Definition: TouchScreen.h:38
@ TOUCH_NEXT_BOOT
Definition: TouchScreen.h:40
@ TOUCH_NOW
Definition: TouchScreen.h:42
@ MOUSE_NOW
Definition: TouchScreen.h:41
@ MOUSE_NEXT_BOOT
Definition: TouchScreen.h:39
void * TOUCHSCREENHANDLE
Definition: TouchScreen.h:34
eErr
Definition: CCAuxTypes.h:162