15 lines
489 B
Lua
15 lines
489 B
Lua
|
local keys = require("Keyboard Layout Changer.keys")
|
||
|
local common = require("Keyboard Layout Changer.common")
|
||
|
local config = require("Keyboard Layout Changer.config").getConfig()
|
||
|
|
||
|
local function onInitialized()
|
||
|
common.log("Changing layout to " .. config.keyboardLayout)
|
||
|
common.changeLayout(keys[config.keyboardLayout])
|
||
|
end
|
||
|
|
||
|
event.register("initialized", onInitialized)
|
||
|
|
||
|
event.register("modConfigReady", function()
|
||
|
mwse.mcm.register(require("Keyboard Layout Changer.mcm"))
|
||
|
end)
|