#ifndef MWINPUT_MWKEYBOARDMANAGER_H #define MWINPUT_MWKEYBOARDMANAGER_H #include #include namespace SDLUtil { class InputWrapper; } namespace MWInput { class ActionManager; class BindingsManager; class KeyboardManager : public SDLUtil::KeyListener { public: KeyboardManager(BindingsManager* bindingsManager, ActionManager* actionManager); virtual ~KeyboardManager() = default; virtual void textInput(const SDL_TextInputEvent &arg); virtual void keyPressed(const SDL_KeyboardEvent &arg); virtual void keyReleased(const SDL_KeyboardEvent &arg); void setControlsDisabled(bool disabled) { mControlsDisabled = disabled; } private: BindingsManager* mBindingsManager; ActionManager* mActionManager; bool mControlsDisabled; }; } #endif