Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 13, 2011, 1:25:46 AM (13 years ago)
Author:
landauf
Message:

WindowEventListener now declares if the window's focus is active or not.
CEGUI stops highlighting menu items if the window's focus is lost, i.e. after pressing alt+tab

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/core/GUIManager.cc

    r7873 r7874  
    393393
    394394    /**
     395        @brief Indicates that the mouse left the application's window.
     396    */
     397    void GUIManager::mouseLeft()
     398    {
     399        this->protectedCall(boost::bind(&CEGUI::System::injectMouseLeaves, _1));
     400    }
     401
     402    /**
    395403    @brief
    396404        converts mouse event code to CEGUI event code
     
    505513        this->guiRenderer_->setDisplaySize(CEGUI::Size(newWidth, newHeight));
    506514    }
     515
     516    /**
     517        @brief Notify CEGUI if the windows loses the focus (stops higlight of menu items, etc).
     518    */
     519    void GUIManager::windowFocusChanged(bool bFocus)
     520    {
     521        if (!bFocus)
     522            this->mouseLeft();
     523    }
    507524}
Note: See TracChangeset for help on using the changeset viewer.