diff --git a/gamecore/options.lua b/gamecore/options.lua index 39a8cd1..361d211 100644 --- a/gamecore/options.lua +++ b/gamecore/options.lua @@ -105,6 +105,14 @@ function OptionsManager:getInputData() return self.data.input 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 function OptionsManager:getTranslationDefaultData()