summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/uiinput.h
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2021-06-04 07:29:56 -0700
committer Aaron Giles <aaron@aarongiles.com>2021-06-04 07:29:56 -0700
commit43a5da3703baf8ab37a2ef29d6f5791d2db385bd (patch)
treed1560a73d5a677389fc97539217e0122c524e07f /src/emu/uiinput.h
parent3f3e0eda38bc08c9ad67ae46543ff7a0f45a856e (diff)
Add support for dragging position-animated layout items.draggable-layout
Diffstat (limited to 'src/emu/uiinput.h')
-rw-r--r--src/emu/uiinput.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/emu/uiinput.h b/src/emu/uiinput.h
index 29b18d06d30..a69abc07c6b 100644
--- a/src/emu/uiinput.h
+++ b/src/emu/uiinput.h
@@ -13,6 +13,8 @@
#pragma once
+#include "render.h"
+
/***************************************************************************
TYPE DEFINITIONS
@@ -70,7 +72,7 @@ public:
// retrieves the current location of the mouse
render_target *find_mouse(s32 *x, s32 *y, bool *button) const;
- ioport_field *find_mouse_field() const;
+ ioport_field *find_mouse_field(float &xoffs, float &yoffs, render_target::item_handle &item) const;
// return true if a key down for the given user interface sequence is detected
bool pressed(int code);
@@ -119,6 +121,9 @@ private:
s32 m_current_mouse_y;
bool m_current_mouse_down;
ioport_field * m_current_mouse_field;
+ render_target::item_handle m_current_mouse_drag_item;
+ float m_current_mouse_target_dx;
+ float m_current_mouse_target_dy;
// popped states; ring buffer of ui_events
ui_event m_events[EVENT_QUEUE_SIZE];