I played some more, and managed to enable the keyboard button on the tool bar. With the following mutation to xepdmgr.c the virtual keystrokes go to my unmodified test app (no specific Iliad stuff in it)
Code:
#ifndef DUMMY_BUILD
#include <liberdm/erdm.h>
#include <liberipc/eripcbusyd.h>
#include <liberipc/eripctoolbar.h>
#endif
Code:
if(argc>2) {
/* Start child process */
install_signal(SIGCHLD,sigchld);
if((child_pid=fork())==0) {
erClientChannel_t erbusyChannel;
erClientChannel_t ertoolbarChannel;
erIpcStartClient(ER_BUSYD_CHANNEL, &erbusyChannel);
busySetBusy(erbusyChannel, ccBusyState_Off);
erIpcStartClient(ER_TOOLBAR_CHANNEL, &ertoolbarChannel);
tbSelectIconSet(ertoolbarChannel, ER_PDF_VIEWER_UA_ID);
tbClearIconSet(ertoolbarChannel, ER_PDF_VIEWER_UA_ID);
int fd;
/* Close unneeded fds */
PS: Scotty1024: thanks for your old posts!!!