Custom Events
Is there any way to create a custom event, similar to how there are keyboard/touch events?
In my project, I need to have two hardware encoders for user input. Right now, in order to keep the hardware separate from the UI implementation, I have the hardware encoder being polled in a FreeRTOS task and filling a message queue when the encoder value changes. I then read the message queue in the UI task's "tick" loop. Unfortunately, doing this creates a dependency on FreeRTOS, making the simulator unable to compile.
If I could create an additional event type, like an "EncoderEvent", I could have the implementation separate. I've looked at the code for TouchGFX, and it appears that the code I would need to change is only available as a pre-compiled library. Unfortunately, it doesn't even look like it's possible to "create" an event in the present system. When using other graphical libraries, I'm used to seeing a way to post and handle custom events, typically with an enumeration starting at a defined value after all library events, like USER_EVENT_START.
If there is a way to send this data within the design of TouchGFX that I am missing, I would love to know what it is.
Thanks,
Jeremy
