summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/debugger/debugwin.cpp
diff options
context:
space:
mode:
author Brad Hughes <bradhugh@outlook.com>2016-01-29 15:02:27 -0500
committer Brad Hughes <bradhugh@outlook.com>2016-02-28 14:25:10 -0500
commit7dfb5785594a359ce9886ef6eebf564ea73af729 (patch)
tree21da5ec12cc680192e9ceaa1e4d1080b9b8a95b3 /src/osd/modules/debugger/debugwin.cpp
parenta9f2f5ba4aca2a1fddd54fb7fc8cc6e17c8cac10 (diff)
Refactor OSD input into modules
Diffstat (limited to 'src/osd/modules/debugger/debugwin.cpp')
-rw-r--r--src/osd/modules/debugger/debugwin.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/osd/modules/debugger/debugwin.cpp b/src/osd/modules/debugger/debugwin.cpp
index b31d12ea67a..634332899c3 100644
--- a/src/osd/modules/debugger/debugwin.cpp
+++ b/src/osd/modules/debugger/debugwin.cpp
@@ -25,7 +25,8 @@
#include "debugger.h"
#include "window.h"
-#include "../../windows/input.h"
+#include "../input/input_common.h"
+#include "../input/input_windows.h"
class debugger_windows : public osd_module, public debug_module, protected debugger_windows_interface
@@ -121,7 +122,7 @@ void debugger_windows::wait_for_debugger(device_t &device, bool firststop)
show_all();
// run input polling to ensure that our status is in sync
- wininput_poll(*m_machine);
+ downcast<windows_osd_interface&>(machine().osd()).poll_input(*m_machine);
// get and process messages
MSG message;
@@ -202,7 +203,7 @@ bool debugger_windows::seq_pressed() const
else
{
// handle everything else as a series of ANDs
- int const vkey = wininput_vkey_for_mame_code(code);
+ int const vkey = keyboard_trans_table::instance().vkey_for_mame_code(code);
bool const pressed = (vkey != 0) && ((GetAsyncKeyState(vkey) & 0x8000) != 0);
if (first) // if this is the first in the sequence, result is set equal