View Single Post
Old 10-01-2008, 12:16 PM   #12
hansel
JSR FFD2
hansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheese
 
hansel's Avatar
 
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
Cool Even better...

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!!!
hansel is offline   Reply With Quote