summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd')
-rw-r--r--src/osd/mac/osdmac.h1
-rw-r--r--src/osd/mac/video.cpp16
-rw-r--r--src/osd/mac/window.cpp3
-rw-r--r--src/osd/osdepend.h1
-rw-r--r--src/osd/sdl/osdsdl.h1
-rw-r--r--src/osd/sdl/video.cpp16
-rw-r--r--src/osd/sdl/window.cpp3
-rw-r--r--src/osd/uwp/video.cpp15
-rw-r--r--src/osd/windows/video.cpp16
-rw-r--r--src/osd/windows/winmain.h1
10 files changed, 51 insertions, 22 deletions
diff --git a/src/osd/mac/osdmac.h b/src/osd/mac/osdmac.h
index 1ed9e6b8a5b..13b680cf271 100644
--- a/src/osd/mac/osdmac.h
+++ b/src/osd/mac/osdmac.h
@@ -44,6 +44,7 @@ public:
// general overridables
virtual void init(running_machine &machine) override;
virtual void update(bool skip_redraw) override;
+ virtual void input_update() override;
// input overridables
virtual void customize_input_type_list(simple_list<input_type_entry> &typelist) override;
diff --git a/src/osd/mac/video.cpp b/src/osd/mac/video.cpp
index 638e7a949b3..3f585458f8d 100644
--- a/src/osd/mac/video.cpp
+++ b/src/osd/mac/video.cpp
@@ -108,16 +108,24 @@ void mac_osd_interface::update(bool skip_redraw)
// profiler_mark(PROFILER_END);
}
- // poll the joystick values here
- downcast<mac_osd_interface&>(machine().osd()).poll_inputs(machine());
-
- check_osd_inputs(machine());
// if we're running, disable some parts of the debugger
if ((machine().debug_flags & DEBUG_FLAG_OSD_ENABLED) != 0)
debugger_update();
}
//============================================================
+// input_update
+//============================================================
+
+void mac_osd_interface::input_update()
+{
+ // poll the joystick values here
+ process_events_buf();
+ poll_inputs(machine());
+ check_osd_inputs(machine());
+}
+
+//============================================================
// check_osd_inputs
//============================================================
diff --git a/src/osd/mac/window.cpp b/src/osd/mac/window.cpp
index 3993b3502d2..d22268f86f4 100644
--- a/src/osd/mac/window.cpp
+++ b/src/osd/mac/window.cpp
@@ -499,9 +499,6 @@ void mac_window_info::update()
// and redraw now
- // Some configurations require events to be polled in the worker thread
- downcast< mac_osd_interface& >(machine().osd()).process_events_buf();
-
// Check whether window has vector screens
{
diff --git a/src/osd/osdepend.h b/src/osd/osdepend.h
index 2587b93e560..7b3160cb04e 100644
--- a/src/osd/osdepend.h
+++ b/src/osd/osdepend.h
@@ -64,6 +64,7 @@ public:
// general overridables
virtual void init(running_machine &machine) = 0;
virtual void update(bool skip_redraw) = 0;
+ virtual void input_update() = 0;
virtual void set_verbose(bool print_verbose) = 0;
// debugger overridables
diff --git a/src/osd/sdl/osdsdl.h b/src/osd/sdl/osdsdl.h
index 2fe9a239c8c..8bc4b5556c9 100644
--- a/src/osd/sdl/osdsdl.h
+++ b/src/osd/sdl/osdsdl.h
@@ -124,6 +124,7 @@ public:
// general overridables
virtual void init(running_machine &machine) override;
virtual void update(bool skip_redraw) override;
+ virtual void input_update() override;
// input overridables
virtual void customize_input_type_list(simple_list<input_type_entry> &typelist) override;
diff --git a/src/osd/sdl/video.cpp b/src/osd/sdl/video.cpp
index 88bc1b51ce4..b8ea713d202 100644
--- a/src/osd/sdl/video.cpp
+++ b/src/osd/sdl/video.cpp
@@ -109,16 +109,24 @@ void sdl_osd_interface::update(bool skip_redraw)
// profiler_mark(PROFILER_END);
}
- // poll the joystick values here
- downcast<sdl_osd_interface&>(machine().osd()).poll_inputs(machine());
-
- check_osd_inputs(machine());
// if we're running, disable some parts of the debugger
if ((machine().debug_flags & DEBUG_FLAG_OSD_ENABLED) != 0)
debugger_update();
}
//============================================================
+// input_update
+//============================================================
+
+void sdl_osd_interface::input_update()
+{
+ // poll the joystick values here
+ process_events_buf();
+ poll_inputs(machine());
+ check_osd_inputs(machine());
+}
+
+//============================================================
// check_osd_inputs
//============================================================
diff --git a/src/osd/sdl/window.cpp b/src/osd/sdl/window.cpp
index 3916ad25b79..2eeeebf1d49 100644
--- a/src/osd/sdl/window.cpp
+++ b/src/osd/sdl/window.cpp
@@ -604,9 +604,6 @@ void sdl_window_info::update()
// and redraw now
- // Some configurations require events to be polled in the worker thread
- downcast< sdl_osd_interface& >(machine().osd()).process_events_buf();
-
// Check whether window has vector screens
{
diff --git a/src/osd/uwp/video.cpp b/src/osd/uwp/video.cpp
index f59b59c171b..9ed9a6c98d3 100644
--- a/src/osd/uwp/video.cpp
+++ b/src/osd/uwp/video.cpp
@@ -103,15 +103,22 @@ void windows_osd_interface::update(bool skip_redraw)
// profiler_mark(PROFILER_END);
}
- // poll the joystick values here
- winwindow_process_events(machine(), true, false);
- poll_input(machine());
- check_osd_inputs();
// if we're running, disable some parts of the debugger
if ((machine().debug_flags & DEBUG_FLAG_OSD_ENABLED) != 0)
debugger_update();
}
+//============================================================
+// input_update
+//============================================================
+
+void windows_osd_interface::input_update()
+{
+ // poll the joystick values here
+ winwindow_process_events(machine(), true, false);
+ poll_input(machine());
+ check_osd_inputs();
+}
//============================================================
// check_osd_inputs
diff --git a/src/osd/windows/video.cpp b/src/osd/windows/video.cpp
index 889e76caa6b..3f3fe78f1f7 100644
--- a/src/osd/windows/video.cpp
+++ b/src/osd/windows/video.cpp
@@ -95,10 +95,6 @@ void windows_osd_interface::update(bool skip_redraw)
// profiler_mark(PROFILER_END);
}
- // poll the joystick values here
- winwindow_process_events(machine(), true, false);
- poll_input(machine());
- check_osd_inputs();
// if we're running, disable some parts of the debugger
if ((machine().debug_flags & DEBUG_FLAG_OSD_ENABLED) != 0)
debugger_update();
@@ -106,6 +102,18 @@ void windows_osd_interface::update(bool skip_redraw)
//============================================================
+// input_update
+//============================================================
+
+void windows_osd_interface::input_update()
+{
+ // poll the joystick values here
+ winwindow_process_events(machine(), true, false);
+ poll_input(machine());
+ check_osd_inputs();
+}
+
+//============================================================
// check_osd_inputs
//============================================================
diff --git a/src/osd/windows/winmain.h b/src/osd/windows/winmain.h
index 21e1b9d2044..04e6da31d1d 100644
--- a/src/osd/windows/winmain.h
+++ b/src/osd/windows/winmain.h
@@ -280,6 +280,7 @@ public:
// general overridables
virtual void init(running_machine &machine) override;
virtual void update(bool skip_redraw) override;
+ virtual void input_update() override;
// input overrideables
virtual void customize_input_type_list(simple_list<input_type_entry> &typelist) override;