View Single Post
Old 03-29-2012, 12:47 PM   #4
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by aditya3098 View Post
How do you plan to make an on screen keyboard?
I have 600x800 touchscreen support that is a complete redesign from that used in the "touchpaint" script here: https://www.mobileread.com/forums/sho...d.php?t=170932

It uses a simple "exit button", which shows a primitive form of what is needed to process onscreen keyboard button presses using the touchscreen.

I have a new unpublished "touchpaint" program that outputs a graphics display list, which can be replayed at a later time. I have used it for signature capture, but it has other uses. I used the redesigned touchscreen code mentioned above (which will also be used in the final onscreen keyboard script when I publish it).

For an onscreen keyboard, you just draw an image of a keyboard, or display a screen capture of one, and define bounding-box coordinates of all the buttons. Then you detect a touch release inside a button and perform its action (usually emitting a character that matches the image on the key). It also helps to have feedback, like inverse display or a larger letter popup (like the apple ipod devices), as you finger moves on and off a defined key region.

I plan to support anything with a 5-way pad too (including the K4). And I will keep the keyboard support used here as well. Instead of touches, you can also select keys by moving through them with 5-way arrow keys, which requires that you define "up/down/left/right" links between them. Obviously, the 5-way "select" would perform the action defined by key (just like a touchscreen release).

Meanwhile, I have released plenty of example code you can use to make your own onscreen keyboard. Things will get easier with time, as I release more stuff.

Last edited by geekmaster; 03-29-2012 at 01:04 PM.
geekmaster is offline   Reply With Quote