options: add a way to set an input key

This commit is contained in:
Kazhnuz 2019-04-14 18:27:24 +02:00
parent 853a55cda4
commit fdba16e2f2

View file

@ -105,6 +105,14 @@ function OptionsManager:getInputData()
return self.data.input return self.data.input
end end
function OptionsManager:setInputKey(sourceid, padkey, key)
if self.data.input[sourceid] ~= nil then
if self.data.input[sourceid].keys[padkey] ~= nil then
self.data.input[sourceid].keys[padkey] = key
end
end
end
-- Lang data -- Lang data
function OptionsManager:getTranslationDefaultData() function OptionsManager:getTranslationDefaultData()