[maemo-developers] No key events for virtual keyboard?

From: Till Harbaum / Lists lists at harbaum.org
Date: Fri Jan 9 13:53:34 EET 2009
Hi,

i have just ported "tetrinet for linux" to maemo. You can get this from the extras
repository. While this works well on the n810's physical keyboard it doesn't work 
with the virtual keyboard (neither on my n800 running chinock nor an the n810 
running diablo).

The problem is that all keyboard handling is being done by the original "tetrinet for linux"
code and my maemo gui just forwards all key presses there and updates the gui on 
the returning function calls from the original code. Thus i have installed a "key_press_event"
handler which then feeds all key presses into the tetrinet engine. Unfortunately the
virtual keyboard doesn't generate events. Or to be precise: It does, but for some reason
only for the Enter key.

How comes? Can i somehow get access to all key presses from the virtual keyboard?

If you ever tried mtetrinet on the n800 or on the n810 with the virtual keyboard you'll
find that you can in fact enter things into the entry fields. But these don't enter my keyboard
routine but instead "magically" appear directly in the entry field. This means that the tetrinet 
engine underneath never saw these key presses and thus ignores them even though they 
show up in the entry. Thus you e.g. can't type anything in the "partyline" which limits
the functionality pretty much.

Till

More information about the maemo-developers mailing list