Пример #1
0
BOOL DisasmView_OnKeyDown(WPARAM vkey, LPARAM /*lParam*/)
{
    switch (vkey)
    {
    case VK_SPACE:
        DisasmView_SetCurrentProc(!m_okDisasmProcessor);
        DebugView_SetCurrentProc(m_okDisasmProcessor);   // Switch DebugView to current processor
        break;
    case VK_DOWN:
        DisasmView_SetBaseAddr(m_wDisasmNextBaseAddr);
        break;
    case 0x47:  // G - Go To Address
        {
            WORD value = m_wDisasmBaseAddr;
            if (InputBoxOctal(m_hwndDisasmViewer, _T("Go To Address"), _T("Address (octal):"), &value))
                DisasmView_SetBaseAddr(value);
            break;
        }
    case 0x53:  // S - Load/Unload Subtitles
        DisasmView_DoSubtitles();
        break;
    case VK_ESCAPE:
        ConsoleView_Activate();
        break;
    default:
        return TRUE;
    }
    return FALSE;
}
Пример #2
0
BOOL MemoryView_OnKeyDown(WPARAM vkey, LPARAM lParam)
{
    switch (vkey)
    {
    case VK_ESCAPE:
        ConsoleView_Activate();
        break;
    case VK_HOME:
        MemoryView_ScrollTo(0);
        break;
    case VK_LEFT:
        MemoryView_Scroll(-2);
        break;
    case VK_RIGHT:
        MemoryView_Scroll(2);
        break;
    case VK_UP:
        MemoryView_Scroll(-16);
        break;
    case VK_DOWN:
        MemoryView_Scroll(16);
        break;
        //  case VK_SPACE:
        //      if (m_Mode == MEMMODE_LAST)
        //          m_Mode = 0;
        //      else
        //          m_Mode++;
        //      InvalidateRect(m_hwndMemoryViewer, NULL, TRUE);
        //MemoryView_UpdateWindowText();
        //      break;
    case VK_PRIOR:
        MemoryView_Scroll(-m_nPageSize * 16);
        break;
    case VK_NEXT:
        MemoryView_Scroll(m_nPageSize * 16);
        break;
    case 0x47:  // G - Go To Address
        {
            WORD value = m_wBaseAddress;
            if (InputBoxOctal(m_hwndMemoryViewer, _T("Go To Address"), _T("Address (octal):"), &value))
                MemoryView_ScrollTo(value);
            SetFocus(m_hwndMemoryViewer);
            break;
        }
    default:
        return TRUE;
    }
    return FALSE;
}
Пример #3
0
BOOL DebugView_OnKeyDown(WPARAM vkey, LPARAM /*lParam*/)
{
    switch (vkey)
    {
    case VK_SPACE:
        DebugView_SwitchCpuPpu();
        break;
    case VK_ESCAPE:
        ConsoleView_Activate();
        break;
    default:
        return TRUE;
    }
    return FALSE;
}