Changeset 1537


Ignore:
Timestamp:
09/29/06 10:42:03 (18 years ago)
Author:
gumbau
Message:

Keys fixed.

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  
    143143 
    144144                // 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)) 
    146148                  mTranslateVector.z = -mMoveScale; 
    147149 
    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)) 
    150153                  mTranslateVector.z = mMoveScale; 
    151154 
    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 
    153164                if(mInputDevice->isKeyDown(Ogre::KC_LEFT)) 
    154165                  mCamera->yaw(mRotScale); 
Note: See TracChangeset for help on using the changeset viewer.