summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/uiinput.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/uiinput.cpp')
-rw-r--r--src/emu/uiinput.cpp19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/emu/uiinput.cpp b/src/emu/uiinput.cpp
index b1ee53a697b..c55038d3065 100644
--- a/src/emu/uiinput.cpp
+++ b/src/emu/uiinput.cpp
@@ -326,6 +326,23 @@ void ui_input_manager::push_char_event(render_target* target, unicode_char ch)
}
/*-------------------------------------------------
+ push_mouse_wheel_event - pushes a mouse
+ wheel event to the specified render_target
+-------------------------------------------------*/
+
+void ui_input_manager::push_mouse_wheel_event(render_target *target, INT32 x, INT32 y, short delta, int ucNumLines)
+{
+ ui_event event = { UI_EVENT_NONE };
+ event.event_type = UI_EVENT_MOUSE_WHEEL;
+ event.target = target;
+ event.mouse_x = x;
+ event.mouse_y = y;
+ event.zdelta = delta;
+ event.num_lines = ucNumLines;
+ push_event(event);
+}
+
+/*-------------------------------------------------
mark_all_as_pressed - marks all buttons
as if they were already pressed once
-------------------------------------------------*/
@@ -333,4 +350,4 @@ void ui_input_manager::mark_all_as_pressed()
{
for (int code = IPT_UI_FIRST + 1; code < IPT_UI_LAST; code++)
m_next_repeat[code] = osd_ticks();
-}
+} \ No newline at end of file