v1.12.1 - Added Shift key support to the event manager.

This commit is contained in:
Ponali
2025-06-28 19:33:30 +02:00
parent e213bde03e
commit d254768db0
+5
View File
@@ -6,6 +6,7 @@ local computer = import("computer")
keyboard.ctrlDown = false keyboard.ctrlDown = false
keyboard.altDown = false keyboard.altDown = false
keyboard.shiftDown = false
--local ocelot = component.proxy(component.list("ocelot")()) --local ocelot = component.proxy(component.list("ocelot")())
@@ -23,6 +24,8 @@ while true do
keyboard.ctrlDown = true keyboard.ctrlDown = true
elseif key == "lmenu" then elseif key == "lmenu" then
keyboard.altDown = true keyboard.altDown = true
elseif key == "lshift" then
keyboard.shiftDown = true
elseif key == "c" and keyboard.ctrlDown and keyboard.altDown then elseif key == "c" and keyboard.ctrlDown and keyboard.altDown then
if print then if print then
print("\n\27[91mCoroutine "..tostring(#cormgr.corList).." killed.") print("\n\27[91mCoroutine "..tostring(#cormgr.corList).." killed.")
@@ -36,6 +39,8 @@ while true do
keyboard.ctrlDown = false keyboard.ctrlDown = false
elseif key == "lmenu" then elseif key == "lmenu" then
keyboard.altDown = false keyboard.altDown = false
elseif key == "lshift" then
keyboard.shiftDown = true
end end
end end
end end