Mouse Listener Question

Corak55

07-05-2014 08:23:41

Hello you all,

I'd like to implement a two-layer-mouse-listener.

Example:
When moving the mouse the standard Ogre mouse events take effect (in my application the camera moves).
When pressing the CONTROL-key I want the cusor to release from this to be able to access some elements, loaded as 2D-Layer with MyGUI.

How would you implement such a functionality?

Kind regards
- Corak

Altren

07-05-2014 13:09:04

Well,

void mouseMoved(/* ... */)
{
if (ctrlPressed)
{
// rotate camera
}
else
{
// inject mouse move into MyGUI
}
}

Corak55

07-05-2014 13:55:01

Works!

Fine, thank you, Altren :)