Skip to content

Commit 70f771e

Browse files
committed
Updated for DCS 2.9.6.57650 Data.lua changes
1 parent 1b0e91b commit 70f771e

File tree

1 file changed

+16
-0
lines changed
  • DCS-Input-Command-Injector-Quaggles/DCS-Input-Command-Injector-Quaggles/Scripts/Input

1 file changed

+16
-0
lines changed

DCS-Input-Command-Injector-Quaggles/DCS-Input-Command-Injector-Quaggles/Scripts/Input/Data.lua

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,22 @@ local function loadDeviceProfileFromFile(filename, deviceName, folder,keep_G_unt
392392
return nil
393393
end
394394

395+
env.MultiEngineDefaultDeviceAssignmentForThrust = function ()
396+
local common = env.defaultDeviceAssignmentFor("thrust")
397+
local left = env.defaultDeviceAssignmentFor("thrust_left")
398+
local right = env.defaultDeviceAssignmentFor("thrust_right")
399+
if not common then
400+
return nil,left,right
401+
end
402+
403+
if left and left [1].key and
404+
right and right[1].key then
405+
return nil,left,right
406+
end
407+
return common,nil,nil
408+
end
409+
410+
395411
env.join = function(to, from)
396412
for i, value in ipairs(from) do
397413
table.insert(to, value)

0 commit comments

Comments
 (0)