It looks like you're new here. If you want to get involved, click one of these buttons!
I enjoy getting own code run on my iPad and still find things to enhance in my version of LUA jump. Recent mini-project is to associate the highscores with the name of the highscore owner. Thus I am happy to have the new keyboard functions. Can somebody give me an example, how to use the keyboard functions, because I have to admit, I' m a kind of copy/paste and modify coder. Thanks a lot in advance!
Comments
I'am just busy with programming a standard value input field for making calculations.
Main:
It is a start, but it works
Greetings, Dirk.nl
Pooh, thats not good!
I don't know how to do!
Second try.
Stupid me, the lay-out of my first post is correct, but the second not
hartland, Thanks a lot, I will try it and try to understand it, when I come home and find some time for the good things in life ... Yes an own class is much better than just a function I was thinking about ...
@hartland I corrected the formatting on your second post.
And I corrected it on the first ...
@Andrew_Stacey thanks
One useful thing to do with keyboard (until we add the ability to query this) is to wrap showKeyboard and hideKeyboard in your own closures, and then add a function to query whether the keyboard is currently on-screen.
This lets you test whether the keyboard is currently on screen by calling
showingKeyboard()
Thanks Simeon and Andrew_Stacey,
I have done copy and paste from my Codeo program.
How have you changed the formatting, can I do that by myself, and what is wrong with copy/paste?
Hi Hartland,
I believe you need to fence your code (precede and follow) with three tilde marks ~~~.
See 'fenced code block' here for an example:
http://kohanaframework.org/3.0/guide/userguide/markdown
Yes, "fencing" your code is the best way to present code here. That also ensures that entities are properly escaped so that you can do:
without having to worry. The forum software uses PHP Markdown Extra for formatting, in case you want to look up the details.
I think the combination demonstrated by hartland of keyboardBuffer() to get the players name and function keyboard( key) to check for the line feed will work for me. Now I have to learn how to use it - I had it working, but now calling from Main touched() doesn't work anymore.
Either my text box vanishes and no input is taken or the Keyboard won't go away ...
I guess my stupideness in coding, siggghh. Thanks so far!
Hi Blanchot, thanks.
But, is it so simple that I must add at the beginning and end of the text three tilde marks?
So,I will try
poeh, I hope
Yes, this works !!,
Thanks, Blanchot!
Greetings, Dirk.nl