2010-06-21 21:39:59 +00:00
|
|
|
#ifndef _MWINPUT_MWINPUTMANAGER_H
|
|
|
|
#define _MWINPUT_MWINPUTMANAGER_H
|
2010-06-08 11:53:34 +00:00
|
|
|
|
2010-07-17 17:58:15 +00:00
|
|
|
namespace OEngine
|
|
|
|
{
|
|
|
|
namespace Render
|
|
|
|
{
|
|
|
|
class OgreRenderer;
|
|
|
|
}
|
|
|
|
}
|
2010-06-08 11:53:34 +00:00
|
|
|
|
2010-07-17 17:58:15 +00:00
|
|
|
namespace MWRender
|
|
|
|
{
|
|
|
|
class PlayerPos;
|
|
|
|
}
|
2010-07-16 12:26:46 +00:00
|
|
|
|
2010-07-17 17:58:15 +00:00
|
|
|
namespace MWGui
|
|
|
|
{
|
|
|
|
class WindowManager;
|
|
|
|
}
|
2010-07-16 12:26:46 +00:00
|
|
|
|
2010-08-05 11:36:33 +00:00
|
|
|
namespace OMW
|
|
|
|
{
|
|
|
|
class Engine;
|
|
|
|
}
|
|
|
|
|
2010-06-08 11:53:34 +00:00
|
|
|
namespace MWInput
|
|
|
|
{
|
2010-07-17 17:58:15 +00:00
|
|
|
// Forward declaration of the real implementation.
|
|
|
|
class InputImpl;
|
2010-06-22 14:02:58 +00:00
|
|
|
|
2010-07-17 17:58:15 +00:00
|
|
|
/* Class that handles all input and key bindings for OpenMW.
|
2010-07-17 12:01:47 +00:00
|
|
|
|
2010-07-17 17:58:15 +00:00
|
|
|
This class is just an interface. All the messy details are in
|
|
|
|
inputmanager.cpp.
|
|
|
|
*/
|
|
|
|
struct MWInputManager
|
2010-06-08 11:53:34 +00:00
|
|
|
{
|
2010-07-17 17:58:15 +00:00
|
|
|
InputImpl *impl;
|
2010-07-17 12:01:47 +00:00
|
|
|
|
2010-06-08 11:53:34 +00:00
|
|
|
public:
|
2010-07-16 12:26:46 +00:00
|
|
|
MWInputManager(OEngine::Render::OgreRenderer &_ogre,
|
2010-07-17 12:01:47 +00:00
|
|
|
MWRender::PlayerPos &_player,
|
|
|
|
MWGui::WindowManager &_windows,
|
2010-08-05 11:36:33 +00:00
|
|
|
bool debug,
|
|
|
|
OMW::Engine& engine);
|
2010-07-17 17:58:15 +00:00
|
|
|
~MWInputManager();
|
2010-06-08 11:53:34 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|