I have the problem if I want to do that you can write something in the app with the screen keyboard it doesn’t work. Help would be very very nice (Everything was written with a translator. Because my English is not good)
@Killer.Jo Im not sure if this is what you want. I didn’t understand your question. Here’s a way to use the on screen keyboard from within a program.
viewer.mode=FULLSCREEN
function setup()
fill(255)
key=""
pressed=""
end
function draw()
background(0)
text("Tap the screen to show the keyboard.",WIDTH/2,HEIGHT-100)
text("Each key will show as it's being pressed.",WIDTH/2,HEIGHT-130)
text("Press return to show all the keys that were pressed.",WIDTH/2,HEIGHT-160)
text(key,WIDTH/2,HEIGHT-300)
text(pressed,WIDTH/2,HEIGHT-200)
end
function touched(t)
if t.state==BEGAN then
showKeyboard()
end
end
function keyboard(k)
if k==RETURN then
key=keyboardBuffer()
else
pressed=k
end
end
@dave1707 Actually, I didn’t want the letters to disappear when you type 2 letters. Nevertheless, thank you!!! If you could change that, that would be really really good, so what I actually wanted: A position where you can write words or sentences. With a popular background. Of course, they don’t have to do that either
Is this any better.
viewer.mode=FULLSCREEN
function setup()
rectMode(CENTER)
showKeyboard()
key=""
end
function draw()
background(0)
fill(255, 111, 0)
rect(WIDTH/2,HEIGHT/1.5,100,40)
fill(255)
text(key,WIDTH/2,HEIGHT/1.5)
end
function keyboard(k)
if k==RETURN then
showKeyboard()
key=""
else
key=key..k
end
end