You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
1.3 KiB
C++
67 lines
1.3 KiB
C++
13 years ago
|
#ifndef _MWINPUT_MWINPUTMANAGERIMP_H
|
||
|
#define _MWINPUT_MWINPUTMANAGERIMP_H
|
||
15 years ago
|
|
||
15 years ago
|
#include "../mwgui/mode.hpp"
|
||
|
|
||
13 years ago
|
#include <components/settings/settings.hpp>
|
||
|
|
||
13 years ago
|
#include "../mwbase/inputmanager.hpp"
|
||
|
|
||
15 years ago
|
namespace OEngine
|
||
|
{
|
||
|
namespace Render
|
||
|
{
|
||
|
class OgreRenderer;
|
||
|
}
|
||
|
}
|
||
15 years ago
|
|
||
14 years ago
|
namespace MWWorld
|
||
15 years ago
|
{
|
||
14 years ago
|
class Player;
|
||
15 years ago
|
}
|
||
15 years ago
|
|
||
15 years ago
|
namespace MWGui
|
||
|
{
|
||
|
class WindowManager;
|
||
|
}
|
||
15 years ago
|
|
||
15 years ago
|
namespace OMW
|
||
|
{
|
||
|
class Engine;
|
||
|
}
|
||
|
|
||
15 years ago
|
namespace MWInput
|
||
|
{
|
||
15 years ago
|
// Forward declaration of the real implementation.
|
||
|
class InputImpl;
|
||
15 years ago
|
|
||
15 years ago
|
/* Class that handles all input and key bindings for OpenMW.
|
||
15 years ago
|
|
||
15 years ago
|
This class is just an interface. All the messy details are in
|
||
|
inputmanager.cpp.
|
||
|
*/
|
||
13 years ago
|
struct MWInputManager : public MWBase::InputManager
|
||
15 years ago
|
{
|
||
15 years ago
|
InputImpl *impl;
|
||
15 years ago
|
|
||
15 years ago
|
public:
|
||
15 years ago
|
MWInputManager(OEngine::Render::OgreRenderer &_ogre,
|
||
14 years ago
|
MWWorld::Player&_player,
|
||
15 years ago
|
MWGui::WindowManager &_windows,
|
||
15 years ago
|
bool debug,
|
||
|
OMW::Engine& engine);
|
||
13 years ago
|
virtual ~MWInputManager();
|
||
15 years ago
|
|
||
13 years ago
|
virtual void update();
|
||
13 years ago
|
|
||
13 years ago
|
virtual void changeInputMode(bool guiMode);
|
||
13 years ago
|
|
||
13 years ago
|
virtual void processChangedSettings(const Settings::CategorySettingVector& changed);
|
||
13 years ago
|
|
||
13 years ago
|
virtual void setDragDrop(bool dragDrop);
|
||
13 years ago
|
|
||
13 years ago
|
virtual void toggleControlSwitch (const std::string& sw, bool value);
|
||
15 years ago
|
};
|
||
|
}
|
||
|
#endif
|