Skip to content

Commit 8923171

Browse files
authored
Updated data.lua to DCS World Version 2.7.9.18080 and added the ability to process files in Config/Input
This allows users to edit the Config/Input/Aircrafts bindings, such as the base and common bindings, which is especially useful to set up general bindings for the lower fidelity modules such as in FC3. Only tested with the Aircrafts subfolder, as apparently it has a differing prefix than the UiLayer despite being in the same directory. Also included are DCS Update 2.7.8.18080 changes to data, namely the addition of the SideWinder Force Feedback 2 Joystick in the default assignments.
1 parent 89be26b commit 8923171

File tree

1 file changed

+14
-3
lines changed
  • DCS-Input-Command-Injector-Quaggles/DCS-Input-Command-Injector-Quaggles/Scripts/Input

1 file changed

+14
-3
lines changed

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

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,14 @@ local function QuagglesInputCommandInjector(filename, folder, env, result)
9393
if quagglesLoggingEnabled then log.write(quagglesLogName, log.INFO, 'Detected loading of: '..filename) end
9494
-- Only operate on files that are in this folder
9595
local targetPrefixForAircrafts = "./Mods/aircraft/"
96-
local targetPrefixForConfig = "./Config/Input/"
96+
local targetPrefixForDotConfig = "./Config/Input/"
97+
local targetPrefixForConfig = "Config/Input/"
9798
local targetPrefix = nil
9899
if StartsWith(filename, targetPrefixForAircrafts) and StartsWith(folder, targetPrefixForAircrafts) then
99100
targetPrefix = targetPrefixForAircrafts
100-
elseif StartsWith(filename, targetPrefixForConfig) and StartsWith(folder, targetPrefixForConfig) then
101+
elseif StartsWith(filename, targetPrefixForDotConfig) and StartsWith(folder, targetPrefixForDotConfig) then
102+
targetPrefix = targetPrefixForDotConfig
103+
elseif StartsWith(filename, targetPrefixForConfig) then
101104
targetPrefix = targetPrefixForConfig
102105
end
103106
if targetPrefix then
@@ -577,6 +580,14 @@ local default_assignments =
577580
thrust = 'JOY_Z',
578581
fire = 'JOY_BTN14',
579582
},
583+
["SideWinder Force Feedback 2 Joystick"] =
584+
{
585+
thrust = 'JOY_SLIDER1',
586+
pitch = 'JOY_Y',
587+
roll = 'JOY_X',
588+
rudder = 'JOY_RZ',
589+
fire = 'JOY_BTN1',
590+
},
580591
}
581592

582593
local function loadDeviceProfileFromFile(filename, deviceGenericName, folder)
@@ -2827,4 +2838,4 @@ return {
28272838
getUiProfileName = getUiProfileName,
28282839
setDeviceDisabled = setDeviceDisabled,
28292840
getDeviceDisabled = getDeviceDisabled,
2830-
}
2841+
}

0 commit comments

Comments
 (0)