OgreNewt with OIS

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.

walaber

13-11-2006 03:10:32

you are right... the reason for the input listener, is to provide automatic F3 -> visual debugging to scenes, for beginners.

I haven't had much time to work on OgreNewt lately... been very busy with work.

OvermindDL1

13-11-2006 18:24:03

It would be changed to use OIS anyway when OgreNewt is set for Eihort.

simdevode

14-11-2006 06:44:28

It would be changed to use OIS anyway when OgreNewt is set for Eihort.
Absolutely, this post was for people having similar problems until then. Forums = Solutions!