14 lines
450 B
Lua
14 lines
450 B
Lua
local common = require("Keyboard Layout Changer.common")
|
|
local config = require("Keyboard Layout Changer.config").getConfig()
|
|
|
|
local function onInitialized()
|
|
if common.changedLayout(config.keyboardLayout) then
|
|
common.log("Changed layout to " .. config.keyboardLayout)
|
|
end
|
|
end
|
|
|
|
event.register("initialized", onInitialized)
|
|
|
|
event.register("modConfigReady", function()
|
|
mwse.mcm.register(require("Keyboard Layout Changer.mcm"))
|
|
end)
|