X-Touch-Mini-FS2020
X-Touch-Mini-FS2020 copied to clipboard
Adding Mobiflight events to the config JSON schema
I love how you included a JSON schema for the config files that lists all the allowable event names. Would you consider adding all the Mobiflight ones to it as well?
In the same way you scrape the SDK for the native events, you can easily do the same for Mobiflight.
Just run this
document.querySelector('pre').textContent.split('\n').filter(text => !text.startsWith('//')).map(text => `Mobiflight.${text.split('#')[0]}`)
in the dev console here
https://raw.githubusercontent.com/Mobiflight/MobiFlight-Connector/main/MSFS2020-module/mobiflight-event-module/modules/events.txt