Mercurial > fife-parpg
diff engine/core/controller/engine.cpp @ 157:bb9902910067
input_rework merged!
Bad features:
* Broken DND for zero-projekt.
* Design short-comings.
author | phoku@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Tue, 14 Oct 2008 07:41:48 +0000 |
parents | d2f1e81fbe2c |
children | fdb1e98fd8b6 |
line wrap: on
line diff
--- a/engine/core/controller/engine.cpp Sun Oct 12 20:30:09 2008 +0000 +++ b/engine/core/controller/engine.cpp Tue Oct 14 07:41:48 2008 +0000 @@ -207,13 +207,9 @@ m_gui_graphics = new SdlGuiGraphics(*m_imagepool); } FL_LOG(_log, "Constructing GUI manager"); - m_guimanager = new GUIManager(m_eventmanager, *m_imagepool); + m_guimanager = new GUIManager(*m_imagepool); + FL_LOG(_log, "Events bind to GUI manager"); m_eventmanager->addSdlEventListener(m_guimanager); - // keep guimanager as the first key listener so that it can evaluate guichan hits - m_eventmanager->addKeyListener(m_guimanager); - // keep guimanager as the first mouse listener so that it can evaluate guichan hits - m_eventmanager->addMouseListener(m_guimanager); - FL_LOG(_log, "Events bind to GUI manager"); FL_LOG(_log, "Creating default font"); m_defaultfont = m_guimanager->setDefaultFont(