It’s a fairly large project so I’ll try to post the parts handling the keyboard.
function handleSearchBarButton(touch)
if touch.x>=285 and touch.x < 485 and touch.state == BEGAN then
if touch.y >= HEIGHT*.95 and touch.y <= HEIGHT*.95+35 then
showKeyboard()
return
end
end
end
function drawBoxes()
--Zoom In/Zoom Out Buttons
pushStyle()
sprite("Eve Live View:44_32_44",WIDTH-76+36/2,HEIGHT*.95+35/2)
sprite("Eve Live View:44_32_43",WIDTH-38+36/2,HEIGHT*.95+35/2)
popStyle()
popStyle()
pushStyle()
if mapStarLinesToggle == true then
tint(0, 255, 26, 255)
end
sprite("Eve Live View:44_32_58",26,HEIGHT*.95+16)
popStyle()
pushStyle()
strokeWidth(1)
stroke(104, 104, 104, 130)
fill(57, 59, 58, 194)
rect(285,HEIGHT*.95,200,35)
popStyle()
pushStyle()
fill(255, 255, 255, 255)
font("Courier-Bold")
fontSize(18)
textMode(CORNER)
textAlign(RIGHT)
text(kbBuffer,288,HEIGHT*.95+9)
popStyle()
pushStyle()
strokeWidth(1)
stroke(255, 255, 255, 255)
fill(27, 73, 145, 255)
rect(485,HEIGHT*.95,35,35)
fontSize(18)
fill(255, 255, 255, 255)
sprite("Eve Live View:77_32_49",503,HEIGHT*.95+35/2)
popStyle()
pushStyle()
strokeWidth(2)
stroke(255, 255, 255, 255)
fill(80, 74, 70, 255)
--rect(WIDTH-38,HEIGHT-100,35,35)
fill(255, 255, 255, 255)
sprite("Eve Live View:77_32_30",WIDTH-21,HEIGHT-100+35/2,28,28)
popStyle()
pushStyle()
strokeWidth(2)
stroke(255, 255, 255, 255)
fill(80, 74, 70, 255)
if infoBar == false then
tint(212, 209, 209, 255)
else
tint(27, 255, 0, 255)
end
sprite("Eve Live View:44_32_24",WIDTH-23,HEIGHT-140,28,28)
popStyle()
end
Those two functions draw/display the text and handle at least opening the keyboard for the input.
If that isn’t enough to replicate, I’ve posted the source in its entirety at https://github.com/deamos/Codea-Eve-Live-Viewer-for-iPad.
Other than the noticeable slowdown and the opening of keyboard issue, all other touch functions are working perfectly. I don’t know why this is happen as everything is working flawlessly from within Codea.