microui  2.0.0
microui
microui_event_decoder_conf.h
1 /*
2  * C
3  *
4  * Copyright 2021-2022 MicroEJ Corp. All rights reserved.
5  * Use of this source code is governed by a BSD-style license that can be found with this software.
6  */
7 
8 /*
9  * @file
10  * @brief This file allows to configure the implementation of microui_event_decoder.c.
11  * @author MicroEJ Developer Team
12  * @version 2.0.0
13  * @date 31 August 2022
14  * @since MicroEJ UI Pack 13.1.0
15  */
16 
17 #if !defined MICROUI_EVENT_DECODER_CONF_H
18 # define MICROUI_EVENT_DECODER_CONF_H
19 
20 // -----------------------------------------------------------------------------
21 // Includes
22 // -----------------------------------------------------------------------------
23 
24 #include <stdio.h>
25 
26 // header file created by MicroEJ Platform builder.
27 #include "microui_constants.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 // -----------------------------------------------------------------------------
34 // Defines
35 // -----------------------------------------------------------------------------
36 
37 /*
38  * @brief When defined, the logger is enabled. The call to LLUI_INPUT_dump()
39  * has no effect when the logger is disabled.
40  *
41  * By default the logger is not enabled.
42  */
43 #define MICROUIEVENTDECODER_ENABLED
44 
45 #ifdef MICROUIEVENTDECODER_ENABLED
46 
47 /*
48  * @brief When defined, the MicroUI event decoder is able to decode the *input*
49  * "Command" events. The define's value is the MicroUI Event Generator
50  * "Command" fixed in the microui.xml file and used to build the MicroEJ Platform.
51  * Most of time the MicroUI Event Generator "Command" is "MICROUI_EVENTGEN_COMMANDS":
52  *
53  * #define MICROUIEVENTDECODER_EVENTGEN_COMMAND MICROUI_EVENTGEN_COMMANDS
54  *
55  * When not defined, the MicroUI event decoder does not try to decode the MicroUI
56  * events "Command".
57  */
58 #define MICROUIEVENTDECODER_EVENTGEN_COMMAND MICROUI_EVENTGEN_COMMANDS
59 
60 /*
61  * @brief When defined, the MicroUI event decoder is able to decode the *input*
62  * "Buttons" events. The define's value is the MicroUI Event Generator
63  * "Buttons" fixed in the microui.xml file and used to build the MicroEJ Platform.
64  * Most of time the MicroUI Event Generator "Buttons" is "MICROUI_EVENTGEN_BUTTONS":
65  *
66  * #define MICROUIEVENTDECODER_EVENTGEN_BUTTONS MICROUI_EVENTGEN_BUTTONS
67  *
68  * When not defined, the MicroUI event decoder does not try to decode the MicroUI
69  * events "Buttons".
70  */
71 #define MICROUIEVENTDECODER_EVENTGEN_BUTTONS MICROUI_EVENTGEN_BUTTONS
72 
73 /*
74  * @brief When defined, the MicroUI event decoder is able to decode the *input*
75  * "Touch" events. The define's value is the MicroUI Event Generator
76  * "Touch" fixed in the microui.xml file and used to build the MicroEJ Platform.
77  * Most of time the MicroUI Event Generator "Touch" is "MICROUI_EVENTGEN_TOUCH":
78  *
79  * #define MICROUIEVENTDECODER_EVENTGEN_TOUCH MICROUI_EVENTGEN_TOUCH
80  *
81  * When not defined, the MicroUI event decoder does not try to decode the MicroUI
82  * events "Touch".
83  */
84 #define MICROUIEVENTDECODER_EVENTGEN_TOUCH MICROUI_EVENTGEN_TOUCH
85 
86 /*
87  * Standard "printf" indirection.
88  */
89 #define LLUI_DEBUG_TRACE (void)printf
90 
91 #endif // MICROUIEVENTDECODER_ENABLED
92 
93 // -----------------------------------------------------------------------------
94 // EOF
95 // -----------------------------------------------------------------------------
96 
97 #ifdef __cplusplus
98 }
99 #endif
100 #endif // MICROUI_EVENT_DECODER_CONF_H