private void BasicWindow_KeyDown(object sender, KeyEventArgs e) { // we take over Shift+F11 and Shift+F5 if ((Control.ModifierKeys & Keys.Shift) == Keys.Shift) { switch (e.KeyCode) { case Keys.F11: FullScreenToggle(); break; case Keys.F5: this.debugWindow.RunButton_Click(sender, null); break; } } ScanCode scanCode = ScanCodes.GetScanCode(e.KeyCode); if (scanCode != ScanCode.sc_null) { e.Handled = true; lastKeyPressed.Text = "$" + ((byte)scanCode).ToString("X2"); if (kernel.MemMgr != null && !kernel.CPU.DebugPause) { kernel.MemMgr.KEYBOARD.WriteKey(scanCode); } } else { lastKeyPressed.Text = ""; } }
private void BasicWindow_KeyDown(object sender, KeyEventArgs e) { ScanCode scanCode = ScanCodes.GetScanCode(e.KeyCode); if (scanCode != ScanCode.sc_null) { lastKeyPressed.Text = "$" + ((byte)scanCode).ToString("X2"); system.KEYBOARD.WriteKey(system, scanCode); } else { lastKeyPressed.Text = ""; } }
private void BasicWindow_KeyUp(object sender, KeyEventArgs e) { ScanCode scanCode = ScanCodes.GetScanCode(e.KeyCode); if (scanCode != ScanCode.sc_null) { scanCode += 0x80; lastKeyPressed.Text = "$" + ((byte)scanCode).ToString("X2"); if (kernel.MemMgr != null && !kernel.CPU.DebugPause) { kernel.MemMgr.KEYBOARD.WriteKey(scanCode); } } else { lastKeyPressed.Text = ""; } }
private void BasicWindow_KeyDown(object sender, KeyEventArgs e) { ScanCode scanCode = ScanCodes.GetScanCode(e.KeyCode); if (scanCode != ScanCode.sc_null) { e.Handled = true; lastKeyPressed.Text = "$" + ((byte)scanCode).ToString("X2"); if (kernel.MemMgr != null) { kernel.MemMgr.KEYBOARD.WriteKey(kernel, scanCode); } } else { lastKeyPressed.Text = ""; } }