Habu_69 Posted February 2, 2016 Posted February 2, 2016 (edited) I am attempting, unsuccessfully so far, to control the A-10C VHF AM and FM preset channel rotaries in DCSW 1.5.2 with TM MFD joy rocker switches. Strange, because I can assign other switches, like master arm switch, to the MFD rockers with no problem. I can also assign a keyboard key to the channel increase/decrease commands and it works fine. These are the 2 assignment code lines I have tried in the MFD .lua files and neither work: {combos = {{key = 'JOY_BTN21'}}, down = 3017, cockpit_device_id = 55, value_down = -1.0, name = 'VHF AM Preset Channel Decrease', category = 'VHF AM Radio Control Panel'},and {combos = {{key = 'JOY_BTN21'}}, down = iCommandPlane_VHF_AM_Preset_Dec, up = iCommandPlane_VHF_AM_Preset_Dec_off, name = 'VHF AM Preset Channel Decrease', category = 'VHF AM Radio Control Panel'},Any ideas for making this work? Edited February 2, 2016 by Habu_69
Habu_69 Posted February 2, 2016 Author Posted February 2, 2016 Never mind. Turns out the reason the joy button would not activate the rotary was because a keyboard key was ALSO assigned. Cleared the key assignment and all works properly. By the way the first code line is the correct one.
Recommended Posts