mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 21:42:13 +00:00
1907aeb6c6
At some point the gui mode code should be moved to a class that handles all game mode (engine?).
55 lines
919 B
C++
55 lines
919 B
C++
#ifndef _MWINPUT_MWINPUTMANAGER_H
|
|
#define _MWINPUT_MWINPUTMANAGER_H
|
|
|
|
#include "../mwgui/mode.hpp"
|
|
|
|
namespace OEngine
|
|
{
|
|
namespace Render
|
|
{
|
|
class OgreRenderer;
|
|
}
|
|
}
|
|
|
|
namespace MWRender
|
|
{
|
|
class PlayerPos;
|
|
}
|
|
|
|
namespace MWGui
|
|
{
|
|
class WindowManager;
|
|
}
|
|
|
|
namespace OMW
|
|
{
|
|
class Engine;
|
|
}
|
|
|
|
namespace MWInput
|
|
{
|
|
// Forward declaration of the real implementation.
|
|
class InputImpl;
|
|
|
|
/* Class that handles all input and key bindings for OpenMW.
|
|
|
|
This class is just an interface. All the messy details are in
|
|
inputmanager.cpp.
|
|
*/
|
|
struct MWInputManager
|
|
{
|
|
InputImpl *impl;
|
|
|
|
public:
|
|
MWInputManager(OEngine::Render::OgreRenderer &_ogre,
|
|
MWRender::PlayerPos &_player,
|
|
MWGui::WindowManager &_windows,
|
|
bool debug,
|
|
OMW::Engine& engine);
|
|
~MWInputManager();
|
|
|
|
void setGuiMode(MWGui::GuiMode mode);
|
|
};
|
|
}
|
|
#endif
|