2009-05-08 13:28:41 +00:00
|
|
|
/*
|
|
|
|
* OpenClonk, http://www.openclonk.org
|
|
|
|
*
|
2013-12-17 20:01:09 +00:00
|
|
|
* Copyright (c) 1998-2000, Matthes Bender
|
|
|
|
* Copyright (c) 2001-2009, RedWolf Design GmbH, http://www.clonk.de/
|
2016-04-03 18:18:29 +00:00
|
|
|
* Copyright (c) 2013-2016, The OpenClonk Team and contributors
|
2009-05-08 13:28:41 +00:00
|
|
|
*
|
2013-12-17 20:01:09 +00:00
|
|
|
* Distributed under the terms of the ISC license; see accompanying file
|
|
|
|
* "COPYING" for details.
|
2009-05-08 13:28:41 +00:00
|
|
|
*
|
2013-12-17 20:01:09 +00:00
|
|
|
* "Clonk" is a registered trademark of Matthes Bender, used with permission.
|
|
|
|
* See accompanying file "TRADEMARK" for details.
|
2009-05-08 13:28:41 +00:00
|
|
|
*
|
2013-12-17 20:01:09 +00:00
|
|
|
* To redistribute this file separately, substitute the full license texts
|
|
|
|
* for the above references.
|
2009-05-08 13:28:41 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/* Main class to execute the game fullscreen mode */
|
|
|
|
|
|
|
|
#ifndef INC_C4FullScreen
|
|
|
|
#define INC_C4FullScreen
|
|
|
|
|
2016-04-03 18:07:56 +00:00
|
|
|
#include "platform/C4Window.h"
|
2009-05-08 13:28:41 +00:00
|
|
|
|
|
|
|
bool IsKeyDown(int iKey);
|
|
|
|
|
2012-04-11 02:15:33 +00:00
|
|
|
class C4FullScreen: public C4Window
|
2010-03-28 17:58:21 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
C4MainMenu *pMenu;
|
|
|
|
public:
|
|
|
|
C4FullScreen();
|
|
|
|
~C4FullScreen();
|
|
|
|
void Execute();
|
|
|
|
bool ViewportCheck();
|
|
|
|
bool ShowAbortDlg(); // show game abort dialog (Escape pressed)
|
|
|
|
bool ActivateMenuMain();
|
|
|
|
void CloseMenu();
|
|
|
|
bool MenuKeyControl(BYTE byCom); // direct keyboard callback
|
2012-04-11 02:15:33 +00:00
|
|
|
using C4Window::Init;
|
2012-04-09 23:56:20 +00:00
|
|
|
C4Window * Init(C4AbstractApp * pApp);
|
2010-03-28 17:58:21 +00:00
|
|
|
// User requests close
|
|
|
|
virtual void Close();
|
|
|
|
virtual void Clear();
|
|
|
|
virtual void CharIn(const char * c);
|
2010-12-11 18:50:38 +00:00
|
|
|
virtual void PerformUpdate();
|
2010-03-28 17:58:21 +00:00
|
|
|
};
|
2009-05-08 13:28:41 +00:00
|
|
|
|
2010-03-28 17:58:21 +00:00
|
|
|
extern C4FullScreen FullScreen;
|
2009-05-08 13:28:41 +00:00
|
|
|
|
|
|
|
#endif
|