maartentamboer / X-Touch-Mini-FS2020

Control FS2020 with a Behringer X-Touch Mini
https://dev-tty.nl/X-Touch-Mini-FS2020/
MIT License
57 stars 19 forks source link

Allow simvar_led configuration for encoders #99

Closed Koseng closed 2 years ago

Koseng commented 2 years ago

Also allow the simple simvar and mobiflightsimvar led settings for encoders to turn on the whole led ring.

So that configurations like that are possible:

"encoders": [
    {
      "index": 5,
      "event_up": { "event": "A32NX.FCU_HDG_INC", "type": "manual", "value": 1 },
      "event_down": { "event": "A32NX.FCU_HDG_DEC", "type": "manual", "value": 1 },
      "event_short_press": { "event": "A32NX.FCU_HDG_PULL", "type": "manual", "value": 1 },
      "event_long_press":  { "event": "A32NX.FCU_HDG_PUSH", "type": "manual", "value": 1 },
      "mobiflightsimvar_led": "(L:A32NX_FCU_HDG_MANAGED_DOT)"
    },
    {
      "index": 6,
      "event_up": { "event": "A32NX.FCU_ALT_INC", "type": "manual", "value": 1 },
      "event_down": { "event": "A32NX.FCU_ALT_DEC", "type": "manual", "value": 1 },
      "event_short_press": { "event": "A32NX.FCU_ALT_PULL", "type": "manual", "value": 1 },
      "event_long_press":  { "event": "A32NX.FCU_ALT_PUSH", "type": "manual", "value": 1 },
      "mobiflightsimvar_led": "(L:A32NX_FCU_ALT_MANAGED)"
    },
maartentamboer commented 2 years ago

I'm sorry for the late reply. Life was kinda busy. Thanks for contributing

Koseng commented 2 years ago

Hi, no problem,

I know how it is, especially if you're not actively developing yourself at a project at the moment and PRs will take time. But glad you're still there ;-)