diff --git a/src/osd/modules/debugger/debugimgui.cpp b/src/osd/modules/debugger/debugimgui.cpp index 7522c760b03..76737012076 100644 --- a/src/osd/modules/debugger/debugimgui.cpp +++ b/src/osd/modules/debugger/debugimgui.cpp @@ -1009,6 +1009,7 @@ void debug_imgui::init_debugger(running_machine &machine) if(strcmp(downcast(m_machine->options()).video(),"bgfx") != 0) fatalerror("Error: ImGui debugger requires the BGFX renderer.\n"); + // map keys to ImGui inputs io.KeyMap[ImGuiKey_A] = ITEM_ID_A; io.KeyMap[ImGuiKey_C] = ITEM_ID_C; io.KeyMap[ImGuiKey_V] = ITEM_ID_V; @@ -1030,6 +1031,10 @@ void debug_imgui::init_debugger(running_machine &machine) io.KeyMap[ImGuiKey_UpArrow] = ITEM_ID_UP; io.KeyMap[ImGuiKey_DownArrow] = ITEM_ID_DOWN; + // set key delay and repeat rates + io.KeyRepeatDelay = 0.400f; + io.KeyRepeatRate = 0.050f; + font_name = (downcast(m_machine->options()).debugger_font()); font_size = (downcast(m_machine->options()).debugger_font_size());