Пример #1
0
 protected void OnChipModeChange(ChipMode mode)
 {
     if (ModeChange != null)
     {
         ModeChange(this, new ChipModeChangedEventArgs(mode));
     }
 }
Пример #2
0
        public void Initialize(ChipMode mode)
        {
            m_RenderWait      = new EventWaitHandle(false, EventResetMode.AutoReset);
            m_RenderInterrupt = new Timer(new TimerCallback(OnRefresh), this, 0, 1);

            switch (mode)
            {
            case ChipMode.SuperChip: m_ResX = SuperResolutionX; m_ResY = SuperResolutionY; break;

            case ChipMode.MegaChip:
            case ChipMode.Chip8:
            default: m_ResX = StandardResolutionX; m_ResY = StandardResolutionY; break;
            }
        }
Пример #3
0
 public ChipModeChangedEventArgs(ChipMode mode)
 {
     m_Mode = mode;
 }