summaryrefslogtreecommitdiffstats
path: root/src/osd/modules/debugger/debugimgui.cpp
diff options
context:
space:
mode:
author mahlemiut <bsr@xnet.co.nz>2016-06-05 13:27:09 +1200
committer mahlemiut <bsr@xnet.co.nz>2016-06-05 13:28:15 +1200
commit97b46548e61449e7c87192a427f3e1e3a3cfa4b6 (patch)
tree3616101802a258ffc1aed6ef999353a2b246af7a /src/osd/modules/debugger/debugimgui.cpp
parenta388c79cc0bae474874e19dcd53bf6cca1e4ee20 (diff)
debugimgui: use ImGui functions to handle view inputs, allows key repeating to work in the debugger views.
Diffstat (limited to 'src/osd/modules/debugger/debugimgui.cpp')
-rw-r--r--src/osd/modules/debugger/debugimgui.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/osd/modules/debugger/debugimgui.cpp b/src/osd/modules/debugger/debugimgui.cpp
index dbd64b939ec..dfd7b00c234 100644
--- a/src/osd/modules/debugger/debugimgui.cpp
+++ b/src/osd/modules/debugger/debugimgui.cpp
@@ -365,38 +365,38 @@ void debug_imgui::handle_keys_views()
return;
// pass keypresses to debug view with focus
- if(m_machine->input().code_pressed_once(KEYCODE_UP))
+ if(ImGui::IsKeyPressed(ITEM_ID_UP))
focus_view->view->process_char(DCH_UP);
- if(m_machine->input().code_pressed_once(KEYCODE_DOWN))
+ if(ImGui::IsKeyPressed(ITEM_ID_DOWN))
focus_view->view->process_char(DCH_DOWN);
- if(m_machine->input().code_pressed_once(KEYCODE_LEFT))
+ if(ImGui::IsKeyPressed(ITEM_ID_LEFT))
{
- if(m_machine->input().code_pressed(KEYCODE_LCONTROL))
+ if(ImGui::IsKeyDown(ITEM_ID_LCONTROL))
focus_view->view->process_char(DCH_CTRLLEFT);
else
focus_view->view->process_char(DCH_LEFT);
}
- if(m_machine->input().code_pressed_once(KEYCODE_RIGHT))
+ if(ImGui::IsKeyPressed(ITEM_ID_RIGHT))
{
- if(m_machine->input().code_pressed(KEYCODE_LCONTROL))
+ if(ImGui::IsKeyDown(ITEM_ID_LCONTROL))
focus_view->view->process_char(DCH_CTRLRIGHT);
else
focus_view->view->process_char(DCH_RIGHT);
}
- if(m_machine->input().code_pressed_once(KEYCODE_PGUP))
+ if(ImGui::IsKeyPressed(ITEM_ID_PGUP))
focus_view->view->process_char(DCH_PUP);
- if(m_machine->input().code_pressed_once(KEYCODE_PGDN))
+ if(ImGui::IsKeyPressed(ITEM_ID_PGDN))
focus_view->view->process_char(DCH_PDOWN);
- if(m_machine->input().code_pressed_once(KEYCODE_HOME))
+ if(ImGui::IsKeyPressed(ITEM_ID_HOME))
{
- if(m_machine->input().code_pressed(KEYCODE_LCONTROL))
+ if(ImGui::IsKeyDown(ITEM_ID_LCONTROL))
focus_view->view->process_char(DCH_CTRLHOME);
else
focus_view->view->process_char(DCH_HOME);
}
- if(m_machine->input().code_pressed_once(KEYCODE_END))
+ if(ImGui::IsKeyPressed(ITEM_ID_END))
{
- if(m_machine->input().code_pressed(KEYCODE_LCONTROL))
+ if(ImGui::IsKeyDown(ITEM_ID_LCONTROL))
focus_view->view->process_char(DCH_CTRLEND);
else
focus_view->view->process_char(DCH_END);