Quoting B�rci Norbert ([EMAIL PROTECTED]):
> Denis Oliver Kropp �rta:
> 
> >>I want to use multihead with DirectFB too, so the question remains:
> >>
> >>Is there any way to use /dev/input/eventN for the keyboard, and 
> >>/dev/input/eventY for the mouse?
> >
> >With the Linux Input driver (configure --enable-linux-input) you can
> >use these devices. You should add "disable-module = keyboard" and
> >"disable-module = ps2mouse", otherwise you'll get events twice.
> >
> >Currently all available devices are attached to each layer, so it needs
> >some coding to give each head its own input device(s).
> 
> Thank you for the disable-module features, my DirectFB now uses input 
> devices without double events! :)
> 
> I do another project now, but when I'm finished I'll look at the 
> source and try to make DirectFB true multihead ready.

That would be cool, I was thinking of an administrative method in
IDirectFBDisplayLayer to enable/disable a specific input device.

E.g. AttachDevice( IDirectFBDisplayLayer *layer, IDirectFBInputDevice *device )
and DetachDevice( IDirectFBDisplayLayer *layer, IDirectFBInputDevice *device ).

After startup all devices would be attached to the primary layer only.

This is just a first idea, comments and other suggestions are welcome.

> Another question:
> 
> Is it possible to run two(!) separate DirectFB application: one on the 
> primary head (accelerated?), the other on the second head 
> (unaccelerated?) without disturbing each other?

You should be able to start a DirectFB session for each framebuffer device.
With the multi application core you need the "session = -1" option forcing
the application to run as a master.

In case of the dual head G400 or higher I would start one session per physical
device, to have acceleration on both heads.

You might need the "no-vt-switch" option, but I'm not sure about that.

-- 
Best regards,
  Denis Oliver Kropp

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"

                            Convergence GmbH


-- 
Info: To unsubscribe send a mail to [EMAIL PROTECTED] with 
"unsubscribe directfb-users" as subject.

Reply via email to