- added support for alt-enter window toggling in windows OS (by default it is tuned off)

to enable set AllowAltEnterFullscreenToggle=true
This commit is contained in:
Mark Vejvoda
2010-06-30 19:27:07 +00:00
parent 217c92e939
commit 0e94ee5476
3 changed files with 77 additions and 73 deletions

View File

@@ -133,6 +133,7 @@ protected:
int w, h;
static bool isActive;
static bool no2DMouseRendering;
static bool allowAltEnterFullscreenToggle;
public:
static bool handleEvent();
@@ -173,6 +174,9 @@ public:
static void setUseDefaultCursorOnly(bool value) { no2DMouseRendering = value; }
static bool getUseDefaultCursorOnly() { return no2DMouseRendering; }
static void setAllowAltEnterFullscreenToggle(bool value) { allowAltEnterFullscreenToggle = value; }
static bool getAllowAltEnterFullscreenToggle() { return allowAltEnterFullscreenToggle; }
protected:
virtual void eventCreate(){}