Beispiel #1
0
 private void menuTape_Click(object sender, EventArgs e)
 {
     TapeForm.GetInstance(this._platform.Spectrum).Show();
 }
Beispiel #2
0
        private void KeyDown(object sender, KeyboardEventArgs e)
        {
            ITapeDevice tapeDevice = base.Spectrum as ITapeDevice;
            Key         key        = e.Key;

            if (key != 13)
            {
                switch (key)
                {
                case 283:
                    this.fileSaveAsDialog();
                    return;

                case 284:
                    base.Spectrum.DoReset();
                    return;

                case 285:
                    this.fileOpenDialog();
                    return;

                case 286:
                    base.Spectrum.IsRunning = false;
                    return;

                case 287:
                    TapeForm.GetInstance(base.Spectrum).Show();
                    return;

                case 288:
                    if (tapeDevice != null)
                    {
                        tapeDevice.Tape.Rewind(base.Spectrum.CPU.Tact);
                    }
                    break;

                case 289:
                    if (tapeDevice != null)
                    {
                        if (tapeDevice.Tape.IsPlay)
                        {
                            tapeDevice.Tape.Stop(base.Spectrum.CPU.Tact);
                            return;
                        }
                        tapeDevice.Tape.Play(base.Spectrum.CPU.Tact);
                        return;
                    }
                    break;

                case 290:
                    base.Spectrum.IsRunning = true;
                    return;

                default:
                    return;
                }
            }
            else if ((e.Mod & 768) != null)
            {
                this._fullScreen = !this._fullScreen;
                this.UpdateVideoSettings();
                return;
            }
        }