Re: [osg-users] Disabling mouse cursor

2008-04-16 Thread Robert Osfield
Hi Renan, The osgstreoimage example has code that disables the mouse, have a look at this. Robert. On Tue, Apr 15, 2008 at 8:59 PM, Renan Mendes <[EMAIL PROTECTED]> wrote: > Hi, everyone. > > I begun reading a thread by Guy in which he talked about disabling > mouse cursor, and so I did it

Re: [osg-users] Disabling mouse cursor

2008-04-16 Thread Rafael Martinez
Hi, I got the same problem. My simple solution was to send an event mouse to update the cursor state POINT newmousePos; if (GetCursorPos(&newmousePos)) { useCursor(false); SetCursorPos(newmousePos.x,newmousePos.y); } El Tuesday 15 April 2008 22:54:51 Renan Mendes escribió: > Ye

Re: [osg-users] Disabling mouse cursor

2008-04-15 Thread Renan Mendes
Yeah, I hadn't done that. But I've got one question still: My prototype was based on mouse events. If I keep the code to handle these last ones, is my application supposed to crash? Thanks, Renan ___ osg-users mailing list osg-users@lists.openscenegraph

Re: [osg-users] Disabling mouse cursor

2008-04-15 Thread Jean-Sébastien Guay
Hi Renan, > I begun reading a thread by Guy in which he talked about disabling > mouse cursor, and so I did it: I've instantiated an > osgViewer::GraphicsWindow object, gw, and used gw.useCursor(false), but > nothing happened. I've also tried some other operations, like resizing > the wi

[osg-users] Disabling mouse cursor

2008-04-15 Thread Renan Mendes
Hi, everyone. I begun reading a thread by Guy in which he talked about disabling mouse cursor, and so I did it: I've instantiated an osgViewer::GraphicsWindow object, gw, and used gw.useCursor(false), but nothing happened. I've also tried some other operations, like resizing the window, etc,