Added control pad to Kempston interface

This commit is contained in:
2026-04-29 16:27:13 +01:00
parent 96b06ffc4e
commit 952db4767b
5 changed files with 53 additions and 30 deletions

View File

@@ -17,7 +17,7 @@ namespace Core.Io
private int _ulaFrameCount = 0;
// The hardware color palette belongs to the ULA, not the Windows Form!
private readonly int[] SpectrumColors = new int[]
private readonly int[] SpectrumColours = new int[]
{
unchecked((int)0xFF000000), unchecked((int)0xFF0000D7),
unchecked((int)0xFFD70000), unchecked((int)0xFFD700D7),
@@ -59,7 +59,7 @@ namespace Core.Io
// 2. Calculate our visual Y coordinate (0 to 255) for the bitmap array
int renderY = scanline - 32;
int currentBorderColor = SpectrumColors[_simpleIoBus.BorderColorIndex];
int currentBorderColor = SpectrumColours[_simpleIoBus.BorderColourIndex];
// --- Are we in the Top or Bottom Border? ---
if (scanline < 64 || scanline > 255)
@@ -102,8 +102,8 @@ namespace Core.Io
int brightOffset = (attr & 0x40) != 0 ? 8 : 0;
bool isFlashSet = (attr & 0x80) != 0;
int inkColor = SpectrumColors[ink + brightOffset];
int paperColor = SpectrumColors[paper + brightOffset];
int inkColor = SpectrumColours[ink + brightOffset];
int paperColor = SpectrumColours[paper + brightOffset];
if (isFlashSet && invertFlashPhase)
{