Minor fixes:

. Debugger's '\' now fixed (view Apple's screen)
. Debugger's Ctrl-~ now fixed for UK keyboard (use Ctrl-¬). So for both US & UK it's Ctrl & key to left of numerical 1
This commit is contained in:
tomch 2007-03-31 14:45:44 +00:00
parent 1ff5e89993
commit 4afb6c3369
2 changed files with 7 additions and 5 deletions

View File

@ -8886,7 +8886,8 @@ void DebuggerProcessKey( int keycode )
bUpdateDisplay |= DebuggerProcessCommand( true ); // copy console input to console output
bUpdateDisplay |= UPDATE_CONSOLE_DISPLAY;
}
else if (keycode == VK_OEM_3) // Tilde ~
else if (( keycode == VK_OEM_3 ) || // US: Tilde ~ (key to the immediate left of numeral 1)
( keycode == VK_OEM_8 )) // UK: Logical NOT ¬ (key to the immediate left of numeral 1)
{
if (KeybGetCtrlStatus())
{
@ -9176,7 +9177,7 @@ void DebuggerProcessKey( int keycode )
} // switch
}
if (bUpdateDisplay) // & UPDATE_BACKGROUND)
if (bUpdateDisplay && !g_bDebuggerViewingAppleOutput) // & UPDATE_BACKGROUND)
UpdateDisplay( bUpdateDisplay );
}
@ -9210,7 +9211,7 @@ void DebuggerCursorUpdate()
static DWORD nBeg = GetTickCount(); // timeGetTime();
DWORD nNow = GetTickCount(); // timeGetTime();
if (((nNow - nBeg)) >= nUpdateInternal_ms)
if (((nNow - nBeg) >= nUpdateInternal_ms) && !g_bDebuggerViewingAppleOutput)
{
nBeg = nNow;
@ -9232,9 +9233,7 @@ void DebuggerCursorNext()
{
g_bInputCursor ^= true;
if (g_bInputCursor)
{
ConsoleUpdateCursor( g_aInputCursor[ g_iInputCursor ] );
}
else
ConsoleUpdateCursor( 0 ); // show char under cursor
}

View File

@ -570,7 +570,10 @@ bool SysClk_InitTimer()
{
g_hSemaphore = CreateSemaphore(NULL, 0, 1, NULL); // Max count = 1
if (g_hSemaphore == NULL)
{
fprintf(stderr, "Error creating semaphore\n");
return false;
}
if (CoCreateInstance(CLSID_SystemClock, NULL, CLSCTX_INPROC,
IID_IReferenceClock, (LPVOID*)&g_pRefClock) != S_OK)