forked from hkc/cc-stuff
Ver bump and don't handle long presses
This commit is contained in:
parent
1ea1bb7c9e
commit
2bc30e773a
|
@ -17,18 +17,20 @@ function()
|
||||||
elseif ev == "key_up" then keyStates[keycode] = false
|
elseif ev == "key_up" then keyStates[keycode] = false
|
||||||
end
|
end
|
||||||
|
|
||||||
if keycode == keys.up then
|
if not repeating then
|
||||||
wlan.transmit(9999, 9999, { _ = "move", dir = "fwd", dig = keyStates[keys.leftShift] })
|
if keycode == keys.up then
|
||||||
elseif keycode == keys.down then
|
wlan.transmit(9999, 9999, { _ = "move", dir = "fwd", dig = keyStates[keys.leftShift] })
|
||||||
wlan.transmit(9999, 9999, { _ = "move", dir = "bck" })
|
elseif keycode == keys.down then
|
||||||
elseif keycode == keys.left then
|
wlan.transmit(9999, 9999, { _ = "move", dir = "bck" })
|
||||||
wlan.transmit(9999, 9999, { _ = "move", dir = "rotl" })
|
elseif keycode == keys.left then
|
||||||
elseif keycode == keys.right then
|
wlan.transmit(9999, 9999, { _ = "move", dir = "rotl" })
|
||||||
wlan.transmit(9999, 9999, { _ = "move", dir = "rotr" })
|
elseif keycode == keys.right then
|
||||||
elseif keycode == keys.pageUp then
|
wlan.transmit(9999, 9999, { _ = "move", dir = "rotr" })
|
||||||
wlan.transmit(9999, 9999, { _ = "move", dir = "up", dig = keyStates[keys.leftShift] })
|
elseif keycode == keys.pageUp then
|
||||||
elseif keycode == keys.pageDown then
|
wlan.transmit(9999, 9999, { _ = "move", dir = "up", dig = keyStates[keys.leftShift] })
|
||||||
wlan.transmit(9999, 9999, { _ = "move", dir = "down", dig = keyStates[keys.leftShift] })
|
elseif keycode == keys.pageDown then
|
||||||
|
wlan.transmit(9999, 9999, { _ = "move", dir = "down", dig = keyStates[keys.leftShift] })
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|
|
@ -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" }
|
||||||
|
|
Loading…
Reference in New Issue