mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 04:19:55 +00:00
58 lines
966 B
C++
58 lines
966 B
C++
#ifndef _MWINPUT_MWINPUTMANAGER_H
|
|
#define _MWINPUT_MWINPUTMANAGER_H
|
|
|
|
#include "../mwgui/mode.hpp"
|
|
|
|
namespace OEngine
|
|
{
|
|
namespace Render
|
|
{
|
|
class OgreRenderer;
|
|
}
|
|
}
|
|
|
|
namespace MWWorld
|
|
{
|
|
class Player;
|
|
}
|
|
|
|
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,
|
|
MWWorld::Player&_player,
|
|
MWGui::WindowManager &_windows,
|
|
bool debug,
|
|
OMW::Engine& engine);
|
|
~MWInputManager();
|
|
|
|
void update();
|
|
|
|
void changeInputMode(bool guiMode);
|
|
|
|
void setDragDrop(bool dragDrop);
|
|
};
|
|
}
|
|
#endif
|