Issue #107: InputManager is accessed only through the interface class from now on
parent
b68f9d6a28
commit
0231533d05
@ -0,0 +1,37 @@
|
||||
#ifndef GAME_MWBASE_INPUTMANAGER_H
|
||||
#define GAME_MWBASE_INPUTMANAGER_H
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <components/settings/settings.hpp>
|
||||
|
||||
namespace MWBase
|
||||
{
|
||||
/// \brief Interface for input manager (implemented in MWInput)
|
||||
class InputManager
|
||||
{
|
||||
InputManager (const InputManager&);
|
||||
///< not implemented
|
||||
|
||||
InputManager& operator= (const InputManager&);
|
||||
///< not implemented
|
||||
|
||||
public:
|
||||
|
||||
InputManager() {}
|
||||
|
||||
virtual ~InputManager() {}
|
||||
|
||||
virtual void update() = 0;
|
||||
|
||||
virtual void changeInputMode(bool guiMode) = 0;
|
||||
|
||||
virtual void processChangedSettings(const Settings::CategorySettingVector& changed) = 0;
|
||||
|
||||
virtual void setDragDrop(bool dragDrop) = 0;
|
||||
|
||||
virtual void toggleControlSwitch (const std::string& sw, bool value) = 0;
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue