So with LUA scripts I can assign hotkeys and controller buttons to the unlinked control objects in the RealAir Duke Turbine, but I need to know how to do that with xml (i'm guessing) in order to control them from HIDMacros and be able to map them to a unique keyboard.
Or is their just no way to access thise variables from outside FSUIPC?
An example LUA script snippet is here.
Code: Select all
if ipcPARAM == 59 then -- Down One Position
LVarSet = "L:Duke_Cowl_Flaps_Switch_2"
val = 2
if ipc.readLvar(LVarSet) == 0 then
val = 1
elseif ipc.readLvar(LVarSet) == 1 then
val = 2
end
ipc.writeLvar(LVarSet, val)
end
Bao