protected void OnChipModeChange(ChipMode mode) { if (ModeChange != null) { ModeChange(this, new ChipModeChangedEventArgs(mode)); } }
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; } }
public ChipModeChangedEventArgs(ChipMode mode) { m_Mode = mode; }