Changeset 1537
- Timestamp:
- 09/29/06 10:42:03 (18 years ago)
- Location:
- GTP/trunk/App/Demos/Geom/Demo_LodStrips
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Geom/Demo_LodStrips/main.cpp
r1536 r1537 143 143 144 144 // Move the node 145 if(mInputDevice->isKeyDown(Ogre::KC_UP)) 145 if(mInputDevice->isKeyDown(Ogre::KC_UP) || 146 mInputDevice->isKeyDown(Ogre::KC_W) || 147 mInputDevice->isKeyDown(Ogre::KC_NUMPAD5)) 146 148 mTranslateVector.z = -mMoveScale; 147 149 148 149 if(mInputDevice->isKeyDown(Ogre::KC_DOWN)) 150 if(mInputDevice->isKeyDown(Ogre::KC_DOWN) || 151 mInputDevice->isKeyDown(Ogre::KC_S) || 152 mInputDevice->isKeyDown(Ogre::KC_NUMPAD2)) 150 153 mTranslateVector.z = mMoveScale; 151 154 152 // Instead of moving the ship left and right, rotate it using yaw() 155 if (mInputDevice->isKeyDown(Ogre::KC_A) || 156 mInputDevice->isKeyDown(Ogre::KC_NUMPAD1)) 157 mTranslateVector.x = -mMoveScale; 158 159 if (mInputDevice->isKeyDown(Ogre::KC_D) || 160 mInputDevice->isKeyDown(Ogre::KC_NUMPAD3)) 161 mTranslateVector.x = mMoveScale; 162 163 153 164 if(mInputDevice->isKeyDown(Ogre::KC_LEFT)) 154 165 mCamera->yaw(mRotScale);
Note: See TracChangeset
for help on using the changeset viewer.