
Joystick binding file
Magic-Box needs to understand how your USB device is built. The files linked in profiles are simple mapping that name every axis, button or knob you device has. Below you will find explanation how to create you custom joystick binding file.
File matching to usb device
Every usb device connected to your magic-box need to be matched with binding file using either device-id, device-name-like or module name, e.g joystick-module. Please make sure you get it right.
## MB will look for device with name that contains joystick keyword - last resort
joystick-module:
device-id: 'A-HOS-HL' ## first option - change this to your device ID
device-name-like: 'JGRIP-F16' ## second option - put part of the device name here
....Axes
As described here the axis is bound to its ID and also can be reversed if needed:
In this case we see a defined roll axis that ID is set to zero. The roll name can be used in channels mapping to assign channel to selected axis. Note that if your axis is reversed you may need to set for key reversed value yes (some throttles need that)
Buttons
Momentary switch is assumed to be a button, so in a config file you set up one ID per button like this:
This holds true if button on press generates value 1 and on release value 0. You can check this on Events from HOTAS screen as described in here
Two positions switch
The switch that can toggle between two states if defined in a binding file as two position switches. Example:
Here we see that sw-1-2 is the same of switch we can use later in channels mapping to switches. For ID 5 registered on USB we set switch to UP state, and for ID 6 we set switch to DOWN state. Some devices like X56 Throttle have few switches working exactly that way. If you note on Events from HOTAS screen that switch is generating two different IDs you work with 2-positions switch then. 3 positions switch is working exactly the same, but you have to provide IDs for up, mid and down states. Example:
In this case mode-knob can be assigned to some rc channel and will generate 1000, 1500 and 2000 ppm value.
Knobs
The little knobs, wheels and so on are working exactly the same as Axes. The definition in the file is simplified to:
If on Events from HOTAS screen you notice axes with ID but you work with knob you can define it in binding file as above.
Full example
Here you have full working example for X56 Throttle you will find on your SD card
Last updated