mirror of
https://github.com/MezzalunaWM/Mezzaluna.git
synced 2026-03-07 19:49:53 -05:00
update keymap func
This commit is contained in:
parent
23ef0049f7
commit
cc0862adae
5 changed files with 50 additions and 40 deletions
|
|
@ -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
|
||||
-- })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue