@@ -23,7 +23,7 @@ The last one in particular, `EV_FIRST_SIGNAL` is needed when defining new custom
...
@@ -23,7 +23,7 @@ The last one in particular, `EV_FIRST_SIGNAL` is needed when defining new custom
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 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.
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
This example shows a custom enumeration of events:
This example shows a custom enumeration of events: