Ogre 3D 1.7 Beginner's Guide
上QQ阅读APP看书,第一时间看更新

Adding input support

We now have a moving scene, but we would like to be able to exit our application like before. Therefore, we are now going to add input support, and when Escape is pressed, we exit our application. Up until now, we only used Ogre 3D; now we will also use OIS(Object Oriented Input System), which comes with the Ogre 3D SDK because it is used by the ExampleFrameListener, but otherwise is totally independent from Ogre 3D.