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