diff options
author | 2016-06-04 21:25:30 +1200 | |
---|---|---|
committer | 2016-06-04 21:26:13 +1200 | |
commit | 3cf5bfdff1a1153f263be8708faeed968c45f7fe (patch) | |
tree | 11a2296ca7def44574c405b6cdefc00c547c40aa /src | |
parent | b1fc0b97a9ac8ecd8ef770af89a6da63a9168cd5 (diff) |
debugimgui: actually map cursor keys so that they can be used in input text widgets. Duh.
Diffstat (limited to 'src')
-rw-r--r-- | src/osd/modules/debugger/debugimgui.cpp | 33 |
1 files changed, 4 insertions, 29 deletions
diff --git a/src/osd/modules/debugger/debugimgui.cpp b/src/osd/modules/debugger/debugimgui.cpp index 659d83ce517..dbd64b939ec 100644 --- a/src/osd/modules/debugger/debugimgui.cpp +++ b/src/osd/modules/debugger/debugimgui.cpp @@ -301,35 +301,6 @@ void debug_imgui::handle_keys() m_hide = true; } -/* if(m_machine->input().code_pressed_once(KEYCODE_UP)) - io.KeysDown[ImGuiKey_UpArrow] = true; - if(m_machine->input().code_pressed_once(KEYCODE_DOWN)) - io.KeysDown[ImGuiKey_DownArrow] = true; - if(m_machine->input().code_pressed_once(KEYCODE_LEFT)) - io.KeysDown[ImGuiKey_LeftArrow] = true; - if(m_machine->input().code_pressed_once(KEYCODE_RIGHT)) - io.KeysDown[ImGuiKey_RightArrow] = true; - - if(m_machine->input().code_pressed(KEYCODE_TAB)) - io.KeysDown[ImGuiKey_Tab] = true; - - if(m_machine->input().code_pressed_once(KEYCODE_PGUP)) - { - io.KeysDown[ImGuiKey_PageUp] = true; - } - if(m_machine->input().code_pressed_once(KEYCODE_PGDN)) - { - io.KeysDown[ImGuiKey_PageDown] = true; - } - - if(m_machine->input().code_pressed_once(KEYCODE_HOME)) - { - io.KeysDown[ImGuiKey_Home] = true; - } - if(m_machine->input().code_pressed_once(KEYCODE_END)) - { - io.KeysDown[ImGuiKey_End] = true; - }*/ if(m_machine->input().code_pressed(KEYCODE_LCONTROL)) io.KeyCtrl = true; else @@ -1049,6 +1020,10 @@ void debug_imgui::init_debugger(running_machine &machine) io.KeyMap[ImGuiKey_End] = ITEM_ID_END; io.KeyMap[ImGuiKey_Escape] = ITEM_ID_ESC; io.KeyMap[ImGuiKey_Enter] = ITEM_ID_ENTER; + io.KeyMap[ImGuiKey_LeftArrow] = ITEM_ID_LEFT; + io.KeyMap[ImGuiKey_RightArrow] = ITEM_ID_RIGHT; + io.KeyMap[ImGuiKey_UpArrow] = ITEM_ID_UP; + io.KeyMap[ImGuiKey_DownArrow] = ITEM_ID_DOWN; font_name = (downcast<osd_options &>(m_machine->options()).debugger_font()); font_size = (downcast<osd_options &>(m_machine->options()).debugger_font_size()); |