summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/ui/menu.h
diff options
context:
space:
mode:
author Nathan Woods <npwoods@mess.org>2016-06-14 00:00:30 -0400
committer Nathan Woods <npwoods@mess.org>2016-06-14 00:00:30 -0400
commitc9b8f7454849ba2c92b9b5f745629a3f47ae9783 (patch)
tree00e6016d81d341dfd44b304bab0c7d0f19ae9ad5 /src/frontend/mame/ui/menu.h
parent9fe7064f4e03e3cf73c793a9a79505b59e5b5ff1 (diff)
Incorporating Vas Crabb feedback
Diffstat (limited to 'src/frontend/mame/ui/menu.h')
-rw-r--r--src/frontend/mame/ui/menu.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/frontend/mame/ui/menu.h b/src/frontend/mame/ui/menu.h
index 0353060da5f..cf68cbcea75 100644
--- a/src/frontend/mame/ui/menu.h
+++ b/src/frontend/mame/ui/menu.h
@@ -70,7 +70,6 @@ public:
// configure the menu for custom rendering
virtual void custom_render(void *selectedref, float top, float bottom, float x, float y, float x2, float y2);
- virtual void custom_mouse_down() { }
// allocate temporary memory from the menu's memory pool
void *m_pool_alloc(size_t size);
@@ -288,6 +287,9 @@ protected:
void extra_text_position(float origx1, float origx2, float origy, float yspan, text_layout &layout,
int direction, float &x1, float &y1, float &x2, float &y2);
+ // custom events
+ virtual bool custom_mouse_down() { return false; }
+
template <typename T>
static T *topmost_menu() { return dynamic_cast<T *>(menu_stack.get()); }