Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

Your Answer


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.