View Single Post
Old 11-25-2009, 07:39 PM   #1
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.
Some doubts: showing keyboard and ContentLister

Hi,

some questions for the ones who have dived into iLiad sources:

- how to make keyboard show/hide from a program?
Found [1], but I can't see anything useful from there, only:
Code:
 toolbar_setIconState(iconID_keyboard, iconState_selected);
and from there an IPC send... but what's on the other end listening and launching matchbox-keyboard?

[1] http://iliad.hpelbers.org/irexdox/co...2bc0cd0ff67e31


- executing ipdf from ContentLister vs. from CLI
If I run ipdf file.pdf from a ssh shell, up button don't quit the program. Same happens for FBReader.
Could you point me to the part of the sources where ContentLister changes this behaviour?

It looks like pm_TerminateUserApp() in programManager.c kills the viewer [1]

UPDATE: ContentLister gets the "quit" key and then kills the app with kill(pid).
To emulate what ContentLister does when running a new program [2] we should execute pm_RunViewer or store uaID (viewer id) by ourselves (g_uaOnTop and g_lastStartedUa stacks).

pm_SendKey function is quite interesting too [3].

[1] http://iliad.hpelbers.org/irexdox/co...17410649ff165a
[2] http://iliad.hpelbers.org/irexdox/co...04c2f19d198317
[3] http://iliad.hpelbers.org/irexdox/co...2bc0cd0ff67e31


Thanks in advance,
Iņigo
Iņigo is offline   Reply With Quote