diff options
author | 2016-06-05 23:29:08 +1200 | |
---|---|---|
committer | 2016-06-05 23:29:59 +1200 | |
commit | e90289ddd6b574ca5c20c938157f40fd23c23688 (patch) | |
tree | c1b0e49d3b34125af7f5f51ac49726e7c8998471 /src | |
parent | 8c89edd053c99b7de4bce5d85cd417fd3f1b6389 (diff) |
debugimgui: adjust key repeat rate a bit
Diffstat (limited to 'src')
-rw-r--r-- | src/osd/modules/debugger/debugimgui.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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<osd_options &>(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<osd_options &>(m_machine->options()).debugger_font()); font_size = (downcast<osd_options &>(m_machine->options()).debugger_font_size()); |