Hi Luigi,

I haven't tested this with GUIEventHandler, but it could be possible to get your desired effects if you set the InputRectangle on your RenderSurface in Producer.  In a config file:

RenderSurface {
         ...
         WindowRectangle 0 0 640 480;
         InputRectangle 0.0 640.0 0.0 480.0;
         ...
}

Or programatically:

      viewer.getCamera(0)->getRenderSurface()->setWindowRectangle( 0, 0, 640, 480 );
      viewer.getCamera(0)->getRenderSurface()->setInputRectangle( InputRectangle(0.0, 640.0, 0.0, 480.0) );

-don

On 9/25/06, Luigi Calori <[EMAIL PROTECTED]> wrote:
Sorry for the dumb question:
I' m using an osgProducer application with a custom
osgGA::GUIEventHandler added thru:
viewer.getEventHandlerList().push_front(keh);

Iwould like to retrive the mouse position UNNORMALIZED (not scaled by
window size) but, inside handle,
the both getX() and getXnormalized()  methods of the retrieved
osgGA::GUIEventAdapter& ea    returns
the same value.
It seems that the normalization happens anyway.
Am I missing something?

Thanks in advance
                                Luigi

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to