aboutsummaryrefslogtreecommitdiff
path: root/src/mainmenumanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainmenumanager.h')
-rw-r--r--src/mainmenumanager.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mainmenumanager.h b/src/mainmenumanager.h
index a3133686b..d151cf48d 100644
--- a/src/mainmenumanager.h
+++ b/src/mainmenumanager.h
@@ -77,6 +77,15 @@ public:
m_stack.back()->setVisible(true);
}
+ // Returns true to prevent further processing
+ virtual bool preprocessEvent(const SEvent& event)
+ {
+ if(m_stack.size() != 0)
+ return m_stack.back()->preprocessEvent(event);
+ else
+ return false;
+ }
+
u32 menuCount()
{
return m_stack.size();