So i subscribed 2 events. But when i want to test this thing nothing happends no logmessages...
Any idea or another posible way?
Code: Select all
m_WinRoot->subscribeEvent(CEGUI::Window::EventInputCaptureGained,CEGUI::Event::Subscriber(&GUIManager::onRootWindowInputGained, this));
m_WinRoot->subscribeEvent(CEGUI::Window::EventInputCaptureLost ,CEGUI::Event::Subscriber(&GUIManager::onRootWindowInputLost, this));
Code: Select all
bool GUIManager::onRootWindowInputGained(const CEGUI::EventArgs &e){
Ogre::LogManager::getSingletonPtr()->logMessage("Test::RootWindow::>InputGained");
m_InputGained = true;
return true;
}
bool GUIManager::onRootWindowInputLost(const CEGUI::EventArgs &e){
Ogre::LogManager::getSingletonPtr()->logMessage("Test::RootWindow::>InputLost");
m_InputGained = false;
return true;
}