Out-of-office display, GFX
 All Classes Files Functions Variables Enumerations Enumerator Groups
touchScreen.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2013 Andreas Misje
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
25 #ifndef _TOUCHSCREEN_H
26 #define _TOUCHSCREEN_H
27 
28 #include <stdbool.h>
29 #include <Graphics/GOL.h>
30 
34 #define TOUCH_ENABLE_STDOUT_ERRORS
35 
39 #define TOUCH_ENABLE_STDOUT_DEBUG
40 
46 #ifdef TOUCH_ENABLE_STDOUT_DEBUG
47 void touch_setDebugEnabled( bool enabled );
48 #endif
49 
59 void touch_init();
60 
68 void touch_disable();
69 
76 void touch_enable();
77 
91 bool touch_getTouchData( GOL_MSG *msg );
92 
93 #endif // _TOUCHSCREEN_H
94