View Single Post
Old 11-26-2009, 08:15 PM   #2
Iņigo
Guru
Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.
 
Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
Attached you can find a simple lua demo of a matchbox-keyboard embeded into a gtk program, and whose keystrokes are forwarded to a gtk.TextView widget.
It's a mere translation of the C example included with matchbox-keyboard v0.1 sources.

It works on my desktop, but sadly enough, the matchbox-keyboard included in my Iliad doesn't accept the "-xid" argument, and looking at the sources it has no support to be embedded.

So I'm coming back to the first question, how does Iliad manage to open the keyboard and handle the keystrokes?
Attached Files
File Type: gz test_kbd.lua.gz (662 Bytes, 360 views)
Iņigo is offline   Reply With Quote