mirror of
https://github.com/holub/mame
synced 2025-04-22 16:31:49 +03:00
debugimgui: adjust key repeat rate a bit
This commit is contained in:
parent
8c89edd053
commit
e90289ddd6
@ -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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user