Quoting Denis Oliver Kropp ([EMAIL PROTECTED]): > Quoting Stephen Parker ([EMAIL PROTECTED]): > > I'm trying to setup a full screen application that uses the mouse, with > > cursor. Looking through the documentation it seemed that I should: > > > > 1. create the primary surface; > > 2. get the primary layer; > > 3. enable the layer's mouse cursor; > > 4. create a surface to represent the mouse pointer; > > 5. set the layer's cursor to this surface; > > > > But when I try this i don't see any mouse cursor. > > I guess you are setting the cooperative level of your application > to fullscreen mode which has no mouse cursor. > > You may try the option "--dfb:force-windowed" or remove the line > containing "SetCooperativeLevel". > > If you need absolute mouse coordinates from cursor movement and you don't > want to use "GetCursorPosition" on the layer you should think about > creating a window as big as the layer and retrieve input events from that. > If you do that you don't need to create a primary surface but call > "GetSurface" on the created window.
I forgot that you should call "CreateEventBuffer" on the window to get its events. -- 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.
