From 475fb7eecaa008042a4700a23c8db5ffde3b9ef7 Mon Sep 17 00:00:00 2001 From: Sean Fausett Date: Thu, 2 Sep 2010 08:52:14 +0000 Subject: [PATCH] Inverted keyboard shift key down as game port button 2 (active low). --HG-- extra : convert_revision : svn%3Affd33b8c-2492-42e0-bdc5-587b920b7d6d/trunk%4050915 --- Virtu/GamePort.cs | 2 +- Virtu/Memory.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Virtu/GamePort.cs b/Virtu/GamePort.cs index 7d70bbe..ff56aea 100644 --- a/Virtu/GamePort.cs +++ b/Virtu/GamePort.cs @@ -42,7 +42,7 @@ public bool ReadButton2() { var settings = Machine.Settings.GamePort; - return (_gamePortService.IsButton2Down || _keyboardService.IsShiftKeyDown || // [TN9] + return (_gamePortService.IsButton2Down || !_keyboardService.IsShiftKeyDown || // Shift' [TN9] (settings.UseKeyboard && (settings.Key.Button2 > 0) && _keyboardService.IsKeyDown(settings.Key.Button2))); } diff --git a/Virtu/Memory.cs b/Virtu/Memory.cs index 0a486c7..9e78321 100644 --- a/Virtu/Memory.cs +++ b/Virtu/Memory.cs @@ -351,7 +351,7 @@ private int ReadIoRegionC1C7(int address) private int ReadIoRegionC3C3(int address) { - _slotRegionC8CF = (address >> 8) & 0x07; + _slotRegionC8CF = 3; if (!IsRomC3C3External) { SetRomC8CF(true); // $C3XX sets IntC8Rom; inhibits I/O Strobe' [5-28, 7-21] @@ -543,7 +543,7 @@ private void WriteIoRegionC1C7(int address, byte data) private void WriteIoRegionC3C3(int address, byte data) { - _slotRegionC8CF = (address >> 8) & 0x07; + _slotRegionC8CF = 3; if (!IsRomC3C3External) { SetRomC8CF(true); // $C3XX sets IntC8Rom; inhibits I/O Strobe' [5-28, 7-21]