Thanks. That works brilliantly; I now have a working mouse pointer. stephen
On Tuesday 08 October 2002 12:31 pm, Denis Oliver Kropp wrote: > 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. > > You might want to have a look at the option "desktop-buffer-mode" for > tweaking the windowing performance. -- Info: To unsubscribe send a mail to [EMAIL PROTECTED] with "unsubscribe directfb-users" as subject.
