simdevode
12-11-2006 22:28:54
Walaber,
It took us quite sometime to figure out why we couldn't use the hardware mouse when using OIS and OgreNewt together. I looked at the BasicFrameListener code, and you instantiate a new Ogre eventprocessor (which also kills OIS's hardware mouse) for easy debugging.
While it was a great idea, I believe some part of documentation should say this. My solution was simple -- I commented out the code that uses the eventprocessor, and use the listener only to update the world. This requires recompiling OgreNewt. Others who don't want to recompile, can simply take the update world code from the BasicFrameListener and put it in your own framestarted method.
It took us quite sometime to figure out why we couldn't use the hardware mouse when using OIS and OgreNewt together. I looked at the BasicFrameListener code, and you instantiate a new Ogre eventprocessor (which also kills OIS's hardware mouse) for easy debugging.
While it was a great idea, I believe some part of documentation should say this. My solution was simple -- I commented out the code that uses the eventprocessor, and use the listener only to update the world. This requires recompiling OgreNewt. Others who don't want to recompile, can simply take the update world code from the BasicFrameListener and put it in your own framestarted method.