CCAux 2.19.0.0
CCAux API reference
TouchScreen.h
Go to the documentation of this file.
1
2/*
3 * Copyright (C) 2010-2022 CrossControl AB - All rights reserved
4 *
5 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6 *
7 * This source code is licensed under the proprietary CrossControl software
8 * license v 1.0.Please refer to the software license text for details or
9 * contact info@crosscontrol.com for more info.
10 *
11 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
12 */
13/*
14 * File description:
15 * Touch Screen settings
16 *
17 * Use the function GetTouchScreen() to get a handle to pass on to the other functions.
18 * Use the method TouchScreen_release(TOUCHSCREENHANDLE) to return the handle.
19 * Note that the VC platform uses a different touch screen solution which is not supported by this API.
20 *
21 * Example Usage:
22 * @include touchscreen_example.cpp
23 *
24 ************************************************/
25
26#ifndef CC_TOUCHSCR_H
27#define CC_TOUCHSCR_H
28
29#include "CCAuxErrors.h"
30#include "CCPlatform.h"
31
32#ifdef __cplusplus
33namespace CrossControl
34{
35#endif
36
37typedef void *TOUCHSCREENHANDLE;
38
40typedef enum
41{
45 TOUCH_NOW = 3
47
51#define TS_CALIBTATION_WIDTH TS_CALIBRATION_WIDTH
52
56typedef enum
57{
62
68
73
80
87
93
99
104
110
115
120
126
134 TS_TCHAUTOCAL = 12
135
137
157EXTERN_C
158CCAUXDLL_API
160CCAUXDLL_CALLING_CONV
162
173EXTERN_C
174CCAUXDLL_API
175void CCAUXDLL_CALLING_CONV TouchScreen_release(TOUCHSCREENHANDLE);
176
189EXTERN_C
190CCAUXDLL_API
192
205EXTERN_C
206CCAUXDLL_API
208
218EXTERN_C
219CCAUXDLL_API
221
231EXTERN_C
232CCAUXDLL_API
234
246EXTERN_C
247CCAUXDLL_API
249 uint16_t data);
250
265EXTERN_C
266CCAUXDLL_API
268 uint16_t *data);
269
271#ifdef __cplusplus
272} /* namespace CrossControl */
273#endif
274
275#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:33
TSAdvancedSettingsParameter
Definition: TouchScreen.h:57
@ TS_DEBOUNCE_TIMEOUT_TIME
Definition: TouchScreen.h:86
@ TS_MAX_RIGHTCLICK_DISTANCE
Definition: TouchScreen.h:103
@ TS_RESTORE_DEFAULT_SETTINGS
Definition: TouchScreen.h:125
@ TS_RIGHT_CLICK_TIME
Definition: TouchScreen.h:61
@ TS_LOW_LEVEL
Definition: TouchScreen.h:67
@ TS_DOUBLECLICK_MAX_CLICK_TIME
Definition: TouchScreen.h:92
@ TS_TCHAUTOCAL
Definition: TouchScreen.h:134
@ TS_DOUBLE_CLICK_TIME
Definition: TouchScreen.h:98
@ TS_USE_DEJITTER
Definition: TouchScreen.h:109
@ TS_DEBOUNCE_TIME
Definition: TouchScreen.h:79
@ TS_CALIBRATION_WIDTH
Definition: TouchScreen.h:114
@ TS_UNTOUCHLEVEL
Definition: TouchScreen.h:72
@ TS_CALIBRATION_MEASUREMENTS
Definition: TouchScreen.h:119
TouchScreenModeSettings
Definition: TouchScreen.h:41
@ TOUCH_NEXT_BOOT
Definition: TouchScreen.h:43
@ TOUCH_NOW
Definition: TouchScreen.h:45
@ MOUSE_NOW
Definition: TouchScreen.h:44
@ MOUSE_NEXT_BOOT
Definition: TouchScreen.h:42
void * TOUCHSCREENHANDLE
Definition: TouchScreen.h:37
eErr
Definition: CCAuxTypes.h:162