2020-07-09 21:35:21 -07:00
|
|
|
local common = require("Keyboard Layout Changer.common")
|
|
|
|
local config = require("Keyboard Layout Changer.config").getConfig()
|
|
|
|
|
|
|
|
local function onInitialized()
|
2020-07-11 14:38:39 -07:00
|
|
|
if common.changedLayout(config.keyboardLayout) then
|
|
|
|
common.log("Changed layout to " .. config.keyboardLayout)
|
|
|
|
end
|
2020-07-09 21:35:21 -07:00
|
|
|
end
|
|
|
|
|
|
|
|
event.register("initialized", onInitialized)
|
|
|
|
|
|
|
|
event.register("modConfigReady", function()
|
|
|
|
mwse.mcm.register(require("Keyboard Layout Changer.mcm"))
|
|
|
|
end)
|