mirror of
https://github.com/digital-jellyfish/Virtu.git
synced 2024-06-02 12:41:31 +00:00
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:
parent
1221690d97
commit
475fb7eeca
|
@ -42,7 +42,7 @@ public bool ReadButton2()
|
||||||
{
|
{
|
||||||
var settings = Machine.Settings.GamePort;
|
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)));
|
(settings.UseKeyboard && (settings.Key.Button2 > 0) && _keyboardService.IsKeyDown(settings.Key.Button2)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -351,7 +351,7 @@ private int ReadIoRegionC1C7(int address)
|
||||||
|
|
||||||
private int ReadIoRegionC3C3(int address)
|
private int ReadIoRegionC3C3(int address)
|
||||||
{
|
{
|
||||||
_slotRegionC8CF = (address >> 8) & 0x07;
|
_slotRegionC8CF = 3;
|
||||||
if (!IsRomC3C3External)
|
if (!IsRomC3C3External)
|
||||||
{
|
{
|
||||||
SetRomC8CF(true); // $C3XX sets IntC8Rom; inhibits I/O Strobe' [5-28, 7-21]
|
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)
|
private void WriteIoRegionC3C3(int address, byte data)
|
||||||
{
|
{
|
||||||
_slotRegionC8CF = (address >> 8) & 0x07;
|
_slotRegionC8CF = 3;
|
||||||
if (!IsRomC3C3External)
|
if (!IsRomC3C3External)
|
||||||
{
|
{
|
||||||
SetRomC8CF(true); // $C3XX sets IntC8Rom; inhibits I/O Strobe' [5-28, 7-21]
|
SetRomC8CF(true); // $C3XX sets IntC8Rom; inhibits I/O Strobe' [5-28, 7-21]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user