The FTB Forum is now read-only, and is here as an archive.
To participate in our community discussions, please join our Discord! https://ftb.team/discord
I think it is something like redstone.getInput("(side)"), with (side) being Left, Right, etc. You can then just do something like
while true do
if redstone.getInput("Back") do
turtle.attack()
end
end