From 3cf5bfdff1a1153f263be8708faeed968c45f7fe Mon Sep 17 00:00:00 2001 From: mahlemiut Date: Sat, 4 Jun 2016 21:25:30 +1200 Subject: debugimgui: actually map cursor keys so that they can be used in input text widgets. Duh. --- src/osd/modules/debugger/debugimgui.cpp | 33 ++++----------------------------- 1 file changed, 4 insertions(+), 29 deletions(-) (limited to 'src/osd/modules/debugger/debugimgui.cpp') 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(m_machine->options()).debugger_font()); font_size = (downcast(m_machine->options()).debugger_font_size()); -- cgit v1.2.3-70-g09d2