mauer / xmidictrl

XMidiCtrl is an X-Plane plugin to use midi controllers within the flight simulator
https://mauer.github.io/xmidictrl/#/
GNU Affero General Public License v3.0
31 stars 10 forks source link

Multiple Commands With One Push? #10

Closed jct32 closed 2 years ago

jct32 commented 2 years ago

I was wondering if it was possible (currently or in the future) to have multiple commands send with the push of one button. This could be useful for consolidating commands just as landing lights or fuel pumps.

mauer commented 2 years ago

Hi,

Many thanks for your question. It's indeed already possible to assign multiple commands to one midi event (https://mauer.github.io/xmidictrl/#/inbound_mapping?id=multi-map).

Just add several mappings for the same midi event :-)

Example:

mapping = [
    { ch = 11, cc = 25, type = "cmd", command = "A300/accept_master_caution" },
    { ch = 11, cc = 25, type = "cmd", command = "A300/accept_master_warning" }
]
jct32 commented 2 years ago

Ah missed it in the docs. Thank you!