fixed some typos, clarified comments and fixed formatting issues

This commit is contained in:
Andreas Baumann 2024-11-09 14:07:30 +01:00
parent 9bac6ae68f
commit cac6575fe6
2 changed files with 7 additions and 7 deletions

View File

@ -225,10 +225,10 @@ void KeybQueueKeypress (WPARAM key, Keystroke_e bASCII)
UINT model = IsCopamBase64A(GetApple2Type()) ? 2 : IS_APPLE2 ? 0 : 1; UINT model = IsCopamBase64A(GetApple2Type()) ? 2 : IS_APPLE2 ? 0 : 1;
if (IsIMC2001(GetApple2Type())) if (IsIMC2001(GetApple2Type()))
{ {
// TODO: the IMC-2001 actually has black LEFT and RIGTH arrow keys which behave as // TODO: The IMC-2001 features black LEFT and RIGHT arrow keys that function like the
// on an Apple IIe, but it also has light arrow keys UP, DOWN, LEFT, RIGHT, which // ones on an Apple IIe. Additionally, it has light-colored arrow keys UP, DOWN, LEFT, RIGHT,
// actually position the cursor on the screen, not sure how to emulate this. // which directly position the cursor on the screen. For now just emulating the black
// for now just doing the black LEFT and RIGHT keys // arrow keys.
model = 1; model = 1;
} }
BYTE n = asciicode[model][key - VK_LEFT]; // Convert to Apple arrow keycode BYTE n = asciicode[model][key - VK_LEFT]; // Convert to Apple arrow keycode
@ -458,7 +458,7 @@ BYTE KeybReadFlag (void)
//=========================================================================== //===========================================================================
void KeybToggleCapsLock () void KeybToggleCapsLock ()
{ {
if (!IS_APPLE2 ||IsIMC2001(g_Apple2Type)) if (!IS_APPLE2 || IsIMC2001(g_Apple2Type))
{ {
g_bCapsLock = (GetKeyState(VK_CAPITAL) & 1); g_bCapsLock = (GetKeyState(VK_CAPITAL) & 1);
GetFrame().FrameRefreshStatus(DRAW_LEDS | DRAW_DISK_STATUS); GetFrame().FrameRefreshStatus(DRAW_LEDS | DRAW_DISK_STATUS);

View File

@ -217,8 +217,8 @@ static void userVideoRom2K(csbits_t csbits, const BYTE* pVideoRom, const eApple2
} }
else if (type == A2TYPE_IMC2001) else if (type == A2TYPE_IMC2001)
{ {
// for now just unconditionally negate the pattern for inverse (does // for now just unconditionally negate the pattern for inverse
// this work for small letters too?) // (does this work for small letters too?)
n = n ^ 0xfe; n = n ^ 0xfe;
} }
else else