Example #1
0
 void InputDevice_KeyDown(object sender, Fusion.Input.InputDevice.KeyEventArgs e)
 {
     if (e.Key == Keys.P)
     {
         if (!_isPaused)
         {
             pausedTime = gameTime;
         }
         else
         {
             queue.delay(gameTime - pausedTime);
         }
         _isPaused = !_isPaused;
     }
     if (e.Key == Keys.Q)
     {
         _isStepByStep = !_isStepByStep;
     }
     if (e.Key == Keys.Space)
     {
         _nextStep = true;
     }
 }