The last one in particular, `EV_FIRST_SIGNAL` is needed when defining new custom events.
The last one in particular, `EV_FIRST_CUSTOM` is needed when defining new custom events.
In fact you can defined a new enumeration that extends EventFirstSignal, in order to expand the list of event IDs. The only thing you have to keep in mind is that the first event of your new enumeration has to be set equal to `EV_FIRST_SIGNAL`. The following events in the enumeration can be manually specified or assigned automatically.
In fact you can defined a new enumeration that extends EventFirstCustom, in order to expand the list of event IDs. The only thing you have to keep in mind is that the first event of your new enumeration has to be set equal to `EV_FIRST_CUSTOM`. The following events in the enumeration can be manually specified or assigned automatically.
Moreover your enumeration should be of type `uint8_t` in order to maintain the same type of the basic event IDs.
Moreover your enumeration should be of type `uint8_t` in order to maintain the same type of the basic event IDs.
## Example
## Example
...
@@ -25,7 +25,7 @@ This example shows a custom enumeration of events:
...
@@ -25,7 +25,7 @@ This example shows a custom enumeration of events: