Inverted keyboard shift key down as game port button 2 (active low).

--HG--
extra : convert_revision : svn%3Affd33b8c-2492-42e0-bdc5-587b920b7d6d/trunk%4050915
This commit is contained in:
Sean Fausett 2010-09-02 08:52:14 +00:00
parent 1221690d97
commit 475fb7eeca
2 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ namespace Jellyfish.Virtu
{
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)));
}

View File

@ -351,7 +351,7 @@ namespace Jellyfish.Virtu
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 @@ namespace Jellyfish.Virtu
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]