Hello everyone, I have a problem with input devices in single app mode using self-compiled DFB 1.4 forced into Zenwalk 6/2.6.26.8 (Zenwalk 6 still ships with 1.0.1) in a VirtualBox without guest additions using my own DFB bindings for FreePascal. Sorry if this is not exactly everybody's configuration.
The lengthy problem description is found at the end of the message. What I'd like to know is whether anyone has encountered something similar, whether it might be a problem with the installation, or whether I need to configure DFB, etc. I doubt my bindings are seriously flawed because they worked fine with 1.0.1, and there is not much room for error with manual C2Pascal header translation. I usually run apps with just this (and no configuration files): ./appname --dfb:pixelformat=RGB16,mode=1024x768 Thanks a lot. Cheers! Roland --- Problem I ----------------- With the libs at 1.0.1, this used to work fine (translated from Pascal): IDirectFB *Dfb = NULL; IDirectFBInputDevice *Keyboard = NULL; IDirectFBEventBuffer *EventBuffer = NULL; ... Dfb->GetInputDevice(Dfb, DIDID_KEYBOARD, &Keyboard); Dfb->CreateEventBuffer(Dfb, &EventBuffer); Keyboard->AttachEventBuffer(Keyboard,EventBuffer); and also this: IDirectFB *Dfb = NULL; IDirectFBInputDevice *Keyboard = NULL; IDirectFBEventBuffer *EventBuffer = NULL; ... Dfb->GetInputDevice(Dfb, DIDID_KEYBOARD, &Keyboard); Keyboard->CreateEventBuffer(Keyboard, &EventBuffer); But now (with binaries at 1.4) I get DFB_OK from Dfb->GetInputDevice() and from Dfb->CreateEventBuffer(). However, then I get an unknown error code 0x0000000E when I attach the buffer. I get DFB_INVARG when I use Keyboard->CreateEventBuffer(). --- Problem II (related) ----------------- One way I *can* get input handling running is this, without explicitly getting a device at all: Dfb->CreateInputEventBuffer(Dfb,DICAPS_ALL, DFB_TRUE, &EventBuffer); But then, if I do EventBuffer->WaitForEvent(EventBuffer); EventBuffer->GetEvent(EventBuffer,&Event); I get back Event.type correctly. But when I then check Event.key_code (on DIET_KEYPRESS), I get garbage. For Event.button (on DIET_BUTTONPRESS), I always get 0. I always used to get a correct key_code and button with 1.0.1 and the method of initing input devices described in Problem I above. Any help/ideas greatly appreciated. _______________________________________________ directfb-users mailing list directfb-users@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users