1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 10:19:55 +00:00
openmw-tes3mp/apps/openmw/mwinput/inputmanagerimp.hpp

67 lines
1.3 KiB
C++
Raw Normal View History

#ifndef _MWINPUT_MWINPUTMANAGERIMP_H
#define _MWINPUT_MWINPUTMANAGERIMP_H
#include "../mwgui/mode.hpp"
#include <components/settings/settings.hpp>
#include "../mwbase/inputmanager.hpp"
2010-07-17 17:58:15 +00:00
namespace OEngine
{
namespace Render
{
class OgreRenderer;
}
}
namespace MWWorld
2010-07-17 17:58:15 +00:00
{
class Player;
2010-07-17 17:58:15 +00:00
}
namespace MWBase
2010-07-17 17:58:15 +00:00
{
class WindowManager;
}
namespace OMW
{
class Engine;
}
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 17:58:15 +00:00
This class is just an interface. All the messy details are in
inputmanager.cpp.
*/
struct MWInputManager : public MWBase::InputManager
{
2010-07-17 17:58:15 +00:00
InputImpl *impl;
public:
MWInputManager(OEngine::Render::OgreRenderer &_ogre,
MWWorld::Player&_player,
MWBase::WindowManager &_windows,
bool debug,
OMW::Engine& engine);
virtual ~MWInputManager();
virtual void update();
virtual void changeInputMode(bool guiMode);
virtual void processChangedSettings(const Settings::CategorySettingVector& changed);
virtual void setDragDrop(bool dragDrop);
virtual void toggleControlSwitch (const std::string& sw, bool value);
};
}
#endif