Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

An OIS::Mouse is required to create a SdkTrayManager :

(Constructor in SdkTray.h)

SdkTrayManager(const Ogre::String& name, Ogre::RenderWindow* window, OIS::Mouse* mouse, SdkTrayListener* listener = 0) :

But it's only used in the refreshCursor method :

mCursor->setPosition(mMouse->getMouseState().X.abs, mMouse->getMouseState().Y.abs);

So, I wondered if there was a mean to only pass X.abs and Y.abs to the manager instead of a pointer

Any solution ? Inheritance ? Composition ?

Thanks for future answers :)

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

If that's what SdkTrayManager uses, then that's what SdkTrayManager uses. There's no getting around it without actually modifying the code.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.