forked from hkc/cc-stuff
1
0
Fork 0

Ver bump and don't handle long presses

This commit is contained in:
Casey 2024-01-12 21:20:28 +03:00
parent 1ea1bb7c9e
commit 2bc30e773a
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
2 changed files with 15 additions and 13 deletions

View File

@ -17,6 +17,7 @@ function()
elseif ev == "key_up" then keyStates[keycode] = false elseif ev == "key_up" then keyStates[keycode] = false
end end
if not repeating then
if keycode == keys.up then if keycode == keys.up then
wlan.transmit(9999, 9999, { _ = "move", dir = "fwd", dig = keyStates[keys.leftShift] }) wlan.transmit(9999, 9999, { _ = "move", dir = "fwd", dig = keyStates[keys.leftShift] })
elseif keycode == keys.down then elseif keycode == keys.down then
@ -31,6 +32,7 @@ function()
wlan.transmit(9999, 9999, { _ = "move", dir = "down", dig = keyStates[keys.leftShift] }) wlan.transmit(9999, 9999, { _ = "move", dir = "down", dig = keyStates[keys.leftShift] })
end end
end end
end
end, end,
function() function()

View File

@ -1,5 +1,5 @@
{ {
"ver": "0.0.1", "ver": "0.0.2",
"files": [ "files": [
{ "src": "/startup.lua", "dst": "/startup.lua" }, { "src": "/startup.lua", "dst": "/startup.lua" },
{ "src": "/main.lua", "dst": "/main.lua" } { "src": "/main.lua", "dst": "/main.lua" }