View Single Post
Old 11-27-2009, 05:21 AM   #4
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.
Quote:
Originally Posted by pwarren View Post
from what I recall, you need to include the iliad eripc headers, create the ipc channel, then use that channel to show/hide the keyboard. This is C code, could probably work similarly in C++

Code:
// include eripc
#include <liberipc/eripc.h>
#include <liberipc/eripcviewer.h>
#include <liberipc/eripctoolbar.h>

// ipc channel variable
erClientChannel_t ertoolbarChannel;

// ipc channel creation
erIpcStartClient(ER_TOOLBAR_CHANNEL, &ertoolbarChannel);

// get the toolbar channel set up as for the PDF viewer application
tbSelectIconSet(ertoolbarChannel, ER_PDF_VIEWER_UA_ID);
tbClearIconSet(ertoolbarChannel, ER_PDF_VIEWER_UA_ID);

// enable on screen keyboard
tbAppendPlatformIcon(ertoolbarChannel,ER_PDF_VIEWER_UA_ID,iconID_keyboard,-1);

// turn off trashcan as an extra.
tbAppendPlatformIcon(ertoolbarChannel,ER_PDF_VIEWER_UA_ID,iconID_trashcan,-1);
tbSetStatePlatformIcon(ertoolbarChannel,ER_PDF_VIEWER_UA_ID,iconID_trashcan, iconState_grey);
Hope that helps a bit
Hello pwarren,

first thanks for your comments.

I understand that this is the way to send the action "show the keyboard" but I guess it should be the other side of the channel, the code which performs the launch of the keyboard. I'm interested in that other end of the channel.
Who is listening on that other side? which daemon or process?

Or am I missing anything?
Iņigo is offline   Reply With Quote