EasyGUI
gui_input.h
1 
6 /*
7  * Copyright (c) 2019 Tilen MAJERLE
8  *
9  * Permission is hereby granted, free of charge, to any person
10  * obtaining a copy of this software and associated documentation
11  * files (the "Software"), to deal in the Software without restriction,
12  * including without limitation the rights to use, copy, modify, merge,
13  * publish, distribute, sublicense, and/or sell copies of the Software,
14  * and to permit persons to whom the Software is furnished to do so,
15  * subject to the following conditions:
16  *
17  * The above copyright notice and this permission notice shall be
18  * included in all copies or substantial portions of the Software.
19  *
20  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
22  * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
23  * AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
24  * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
25  * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
26  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
27  * OTHER DEALINGS IN THE SOFTWARE.
28  *
29  * This file is part of EasyGUI library.
30  *
31  * Author: Tilen Majerle <tilen@majerle.eu>
32  */
33 #ifndef GUI_HDR_INPUT_H
34 #define GUI_HDR_INPUT_H
35 
36 /* C++ detection */
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
40 
46 #include "gui/gui.h"
47 
48 uint8_t gui_input_touchadd(gui_touch_data_t* const ts);
49 uint8_t gui_input_keyadd(gui_keyboard_data_t* const kb);
50 
51 #if !__DOXYGEN__ && defined(GUI_INTERNAL)
52 void guii_input_init(void);
53 uint8_t guii_input_touchavailable(void);
54 uint8_t guii_input_touchread(gui_touch_data_t* const ts);
55 uint8_t guii_input_keyread(gui_keyboard_data_t* const kb);
56 #endif /* !__DOXYGEN__ && defined(GUI_INTERNAL) */
57 
62 /* C++ detection */
63 #ifdef __cplusplus
64 }
65 #endif
66 
67 #endif /* GUI_HDR_INPUT_H */
Single touch data structure.
Definition: gui_defs.h:300
Single key data structure.
Definition: gui_defs.h:335
uint8_t gui_input_touchadd(gui_touch_data_t *const ts)
Add new touch data to internal buffer for further processing.
Definition: gui_input.c:57
uint8_t gui_input_keyadd(gui_keyboard_data_t *const kb)
Add new key data to internal buffer for further processing.
Definition: gui_input.c:103