Quoting Martin L�tken:
> Hi again
> 
> Thank you! But maybe I would also like a little on when to use them.

Xlib can be put into thread safe mode, so you shouldn't need them.
In the SDL backend the mutex is only used to avoid concurrent calls
to SDL.

> I am trying to make a X11 system (like in 'system=x11' in .directfbrc 
> file), which I hope
> You will add to DirectFB as soon as it's in a working state.

Yes, would be great.

>  - (2) Can't use SDl because I want SDL to run on top of DirectFB.

Good point ;)

> The graphics is more or less working!  (not easy blitting in X ... ).

XShmPutImage() ?

> Right now I am trying to get the input to work. I could use a little 
> guidance. Fx. about
> the differences between key_symbol, key_id and key_code. Well I do have 
> some idea, but

Drivers can send one or more of these, but if only a key_code is
sent, the driver has to provide a keymap.

key_code    hardware keycode
key_id      key identifier, unmapped, e.g. right to 'L' is always 'SEMICOLON'
key_symbol  unicode compliant symbol, mapped

The last one is what apps should care about, but the key_id comes into
play when it comes to games ;)

> not quite enough. Also what about the 'flags' for an input event. If fx. 
> I set :
> 'event.flags =  DIEF_KEYSYMBOL | DIEF_KEYID' , is that ok and what happens?

You specify which other fields are valid. In this example you must fill
in the key_symbol and key_id before dispatching the event.

> I know basically i guess i need a HowToAddASystemToDirectFB .... but we 
> can take it
> a little a the time ...  :-)

There should be a lot of HowTos ;)

> A some point I probably would like to to review what I have done and 
> either direct me to fix
> whatever things a have dobe wrong or correct it yourself .. Hope we can 
> do that !

As soon as you have the first working input/output you could check
it in and I can review it and/or help with it, running DFB->X11->DFB ;)

> P.S. By the way Super initiative with the whole DirectFB and a great 
> project !!

Thanks!

> P.P.S I can recommend DoxyS for documentation www.doxys.dk, but well I'm 
> not completely impartial there :-)

I haven't seen anything that supports the interfaces of DirectFB,
but for internal code documentation I'll have a look at it.

-- 
Best regards,
  Denis Oliver Kropp
 
.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"

_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to