openclonk/src/game/C4FullScreen.h

52 lines
1.3 KiB
C
Raw Normal View History

2009-05-08 13:28:41 +00:00
/*
* OpenClonk, http://www.openclonk.org
*
* 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
*
* Distributed under the terms of the ISC license; see accompanying file
* "COPYING" for details.
2009-05-08 13:28:41 +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
*
* 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
#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
{
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;
C4Window * Init(C4AbstractApp * pApp);
// User requests close
virtual void Close();
virtual void Clear();
virtual void CharIn(const char * c);
virtual void PerformUpdate();
};
2009-05-08 13:28:41 +00:00
extern C4FullScreen FullScreen;
2009-05-08 13:28:41 +00:00
#endif