X-Touch-Mini-FS2020 icon indicating copy to clipboard operation
X-Touch-Mini-FS2020 copied to clipboard

Adding Mobiflight events to the config JSON schema

Open davidlav opened this issue 2 years ago • 0 comments

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

davidlav avatar Aug 27 '21 18:08 davidlav