update keymap func

This commit is contained in:
Squibid 2025-10-24 22:48:22 -04:00
parent 23ef0049f7
commit cc0862adae
Signed by: squibid
GPG key ID: BECE5684D3C4005D
5 changed files with 50 additions and 40 deletions

View file

@ -11,6 +11,11 @@ mez.path.config = mez.fs.joinpath(env_conf, "mez", "init.lua")
package.path = package.path..";"..mez.fs.joinpath(env_conf, "mez", "lua", "?.lua")
-- this is an example
mez.api.add_keymap("alt", "a", function()
print("hello from my keymap")
end)
-- mez.input.add_keymap("alt", "a", {
-- press = function()
-- print("hello from my keymap")
-- end,
-- release = function()
-- print("goodbye from my keymap")
-- end
-- })