Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 24, 2009, 9:43:34 AM (16 years ago)
Author:
rgrieder
Message:

Added support for non exclusive mouse mode on Windows. This means you get the normal mouse cursor when displaying a GUI menu in windowed mode.
The feature is activated via InputState (InputState::setIsExclusiveMouse(bool)). Whenever that state is on top of the mouse state stack, the input manager reloads if necessary.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/resource2/src/core/GraphicsManager.cc

    r5662 r5670  
    128128    GraphicsManager::~GraphicsManager()
    129129    {
     130        Ogre::WindowEventUtilities::removeWindowEventListener(renderWindow_, ogreWindowEventListener_.get());
    130131        // TODO: Destroy the console command
    131132    }
     
    337338    }
    338339
     340    size_t GraphicsManager::getRenderWindowHandle()
     341    {
     342        size_t windowHnd = 0;
     343        renderWindow_->getCustomAttribute("WINDOW", &windowHnd);
     344        return windowHnd;
     345    }
     346
     347    bool GraphicsManager::isFullScreen() const
     348    {
     349        Ogre::ConfigOptionMap& options = ogreRoot_->getRenderSystem()->getConfigOptions();
     350        if (options.find("Full Screen") != options.end())
     351        {
     352            if (options["Full Screen"].currentValue == "Yes")
     353                return true;
     354            else
     355                return false;
     356        }
     357        else
     358        {
     359            COUT(0) << "Could not find 'Full Screen' render system option. Fix This!!!" << std::endl;
     360            return false;
     361        }
     362    }
     363
    339364    void GraphicsManager::printScreen()
    340365    {
Note: See TracChangeset for help on using the changeset viewer.