1
0
mirror of https://github.com/LDDestroier/CC/ synced 2025-07-06 03:52:55 +00:00

Beginning copy/pasteing regions

This commit is contained in:
LDDestroier 2018-11-09 11:18:15 -05:00 committed by GitHub
parent 17c1fc2573
commit 7b70be2118
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2876,7 +2876,7 @@ local getInput = function() --gotta catch them all
isDragging = false isDragging = false
elseif evt[1] == "key" then elseif evt[1] == "key" then
local key = evt[2] local key = evt[2]
if (not keysDown[keys.leftShift]) and (keysDown[keys.tab]) then if (isDragging or not keysDown[keys.leftShift]) and (keysDown[keys.tab]) then
if key == keys.right and (not keysDown[keys.right]) then if key == keys.right and (not keysDown[keys.right]) then
paint.scrollX = paint.scrollX + 1 paint.scrollX = paint.scrollX + 1
doRender = true doRender = true
@ -2917,10 +2917,21 @@ local getInput = function() --gotta catch them all
doRender = true doRender = true
scr_x, scr_y = term.current().getSize() scr_x, scr_y = term.current().getSize()
end end
if (key == keys.c) and (not renderBlittle) then if keysDown[keys.leftAlt] then
gotoCoords() if (not renderBlittle) then
resetInputState() -- you know what's coming
doRender = true if (key == keys.c) then
elseif (key == keys.v) then
end
end
else
if (key == keys.c) and (not renderBlittle) then
gotoCoords()
resetInputState()
doRender = true
end
end end
if (keysDown[keys.leftShift]) and (not isDragging) then if (keysDown[keys.leftShift]) and (not isDragging) then
if key == keys.left then if key == keys.left then