c0redumb / midi2vjoy

MIDI to virtual joystick mapping
BSD 2-Clause "Simplified" License
96 stars 31 forks source link

X Touch Mini Button IDs #29

Open Omenclassic opened 5 months ago

Omenclassic commented 5 months ago

The X Touch Mini's default midi input IDs are:

Axis: 186 Button On:154 Button Off:138

I expected to be able to add these values to this variable and define them in the config to just work out of box, it does not:

.# Slider or Pitchbend keys(m_types)
sliders = {176, 224, 186}

.# Buttons with different On/Off keys(m_types)
btns = {144, 128, 153, 137, 154, 138}

You can set the channel to 1 in the Xtouch Midi editor, and the slider and dials will then use 176, but the buttons are still a novel value currently not programmed for.

What needs to change in the rest of the code for it to see custom values added to that variable?