This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#10925 - basic touchscreen support for virtual keyboard
Attached to Project:
Rockbox
Opened by Teruaki Kawashima (teru) - Thursday, 21 January 2010, 05:16 GMT+2
Last edited by Teruaki Kawashima (teru) - Sunday, 27 June 2010, 16:09 GMT+2
Opened by Teruaki Kawashima (teru) - Thursday, 21 January 2010, 05:16 GMT+2
Last edited by Teruaki Kawashima (teru) - Sunday, 27 June 2010, 16:09 GMT+2
|
DetailsJohannes Schwarz pointed out that virtual keyboard lacks support for touchscreen. so i tried to add one.
but i don't actually understand how touchscreen works and don't have tagert to test on. so, feel free to improve, customize or even reject. tocuh character to input a character. tocuhing right side changes the page if there is more than one. tocuh left/right side of edit line to move cursor left/right by one char. morse input support is not added. text on buttons is not localized. probably this is not so usable especially for default keyboard with system font because of too small grid for character selection. maybe it can be improved by defining something like MIN_GRID_SIZE and use it instead of font width or font height. |
This task depends upon
Closed by Teruaki Kawashima (teru)
Sunday, 27 June 2010, 16:09 GMT+2
Reason for closing: Accepted
Additional comments about closing: Committed in r27156.
Sunday, 27 June 2010, 16:09 GMT+2
Reason for closing: Accepted
Additional comments about closing: Committed in r27156.
It does need to be set with FONT_UI however to be useable on target, and you'll have to keep in mind that the sides of a touchscreen are much less responsive (at least, on the Onda that is) wrt the buttons.
I've attached a quick&dirty patch that sets the current font to FONT_UI, but I think in the long term we should have some kind of multifont support and can set different fonts for different contexts (list font, WPS font, keyboard font, etc..).
> you'll have to keep in mind that the sides of a touchscreen are much less responsive (at least, on the Onda that is) wrt the buttons.
it is good to know. but i realy want someone willing to improve this considering i don't have one to test on.
> It does need to be set with FONT_UI however to be useable on target,
how about my idea to define MIN_GRID_SIZE per target and use MAX(MIN_GRID_SIZE, font_h) or MAX(MIN_GRID_SIZE, font_w)? user font may not be large enough.
or is there anything bad other than the selector is too small?
Sure, I'm interested in doing that (will look at it later).
>how about my idea to define MIN_GRID_SIZE per target and use MAX(MIN_GRID_SIZE, font_h) or MAX(MIN_GRID_SIZE, font_w)? user font may not be large enough.
If it does what I think it does (setting a minimum size for each grid element) then it seems as a good idea.
Still I prefer to have multifont in the long term, but this solution is good enough for now.
>or is there anything bad other than the selector is too small?
I'm not sure what you mean with the selector being too small?
well, i didn't intend to be against this
i meant the selector = inverted part of vkeyboard to select which charactar to insert.
* added morse code input support.
* always use ui fonts for buttons and chaged position of page flip button.
edit: remove unrelated change.
* add LANG strings.
* enlarge bottom buttons.
Teruaki, you have commit rights, don't you?