options: add a way to set an input key
This commit is contained in:
parent
853a55cda4
commit
fdba16e2f2
1 changed files with 8 additions and 0 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue