Esempio n. 1
0
 /// <summary>
 /// Call this method when a button is pressed in the user interface.
 /// </summary>
 /// <param name="button">The button that was pressed. It can be a combination of buttons too.</param>
 public void PressButton(Keypad button)
 {
     if (button != Keypad.Speed)
     {
         _buttons |= button;
         _interruptController.UpdateKeypadState(_buttons);
         if (_cpu.Stopped)
         {
             _cpu.Stopped = false;
         }
     }
     else
     {
         FastEmulation = true;
     }
 }