Exemplo n.º 1
0
 protected override void HandleInput(GameTime gameTime)
 {
     if (keyboardManager.IsKeyDown(moveKeys[0])) //Forward
     {
         moveDir = -Vector3.UnitZ;
     }
     else if (keyboardManager.IsKeyDown(moveKeys[1])) //Backward
     {
         moveDir = Vector3.UnitZ;
     }
     else if (keyboardManager.IsKeyDown(moveKeys[2])) //Left
     {
         moveDir = -Vector3.UnitX;
     }
     else if (keyboardManager.IsKeyDown(moveKeys[3])) //Right
     {
         moveDir = Vector3.UnitX;
     }
 }