2009/4/2 Tu Duong Manh <[email protected]>:
> Yes i tried to draw an rectangle, but it don' work.
> The only way to get the program started is to comment everything with about
> window_surface. But that's not what i want... So i only have an primary
> surface, a layer
> and a window, which i can't see.
Alas, you can try to enable the debug tracing of DirectFB if it's
possible - add line "debug" into the .directfbrc file (or set that as
a program argument)
> Other Question:
> Is there a way to program an windowevent,but for an surface?! I just want to
> program,
> that if i click on a surface, without an window, it flip the primary surface.
To create the input events buffer :
IDirectFBEventBuffer *events = NULL;
dfb->CreateInputEventBuffer(dfb, DICAPS_ALL, DFB_TRUE, &events);
To get the input events :
DFBInputEvent last_event;
events->GetEvent( events, DFB_EVENT(&last_event) );
if ( last_event.type == DIET_BUTTONPRESS ) {
// do something on mouse button event
}
Did you mean it ?
--
Best Regards
Nikita Egorov
[email protected]
[email protected]
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users