Definition
-- @/lua/vehicle/input.lua:817
local function setAllowedInputSource(itype, source, enabled)
M.allowedInputSources = M.allowedInputSources or {}
if source == nil then
M.allowedInputSources[itype] = nil
return
end
M.allowedInputSources[itype] = M.allowedInputSources[itype] or {}
M.allowedInputSources[itype][source] = enabled
end
Callers
@/lua/vehicle/extensions/test/ffbCalibration.lua
if data ~= nil then
input.setAllowedInputSource("steering", nil)
cruiseControl.setEnabled(false)
end
input.setAllowedInputSource("steering", "ffbCalibration", true)
controller.mainController.setGearboxMode('arcade')
@/lua/vehicle/extensions/tech/adasInput.lua
if checkResult then
input.setAllowedInputSource(key, 'adas', true)
input.setAllowedInputSource(key, 'local', false)
input.setAllowedInputSource(key, 'adas', true)
input.setAllowedInputSource(key, 'local', false)
else
else
input.setAllowedInputSource(key, 'local', true)
input.setAllowedInputSource(key, 'adas', false)
input.setAllowedInputSource(key, 'local', true)
input.setAllowedInputSource(key, 'adas', false)
end