1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-03 18:15:33 +00:00
openmw-tes3mp/apps/openmw/mwinput/keyboardmanager.hpp

46 lines
1 KiB
C++
Raw Normal View History

#ifndef MWINPUT_MWKEYBOARDMANAGER_H
#define MWINPUT_MWKEYBOARDMANAGER_H
#include <components/settings/settings.hpp>
#include <components/sdlutil/events.hpp>
namespace SDLUtil
{
class InputWrapper;
}
namespace ICS
{
class InputControlSystem;
}
namespace MWInput
{
class ActionManager;
class KeyboardManager : public SDLUtil::KeyListener
{
public:
KeyboardManager(ICS::InputControlSystem* inputBinder, SDLUtil::InputWrapper* inputWrapper, ActionManager* actionManager);
virtual ~KeyboardManager() = default;
2020-04-16 12:36:32 +00:00
void update(float dt, bool disableControls);
virtual void textInput(const SDL_TextInputEvent &arg);
virtual void keyPressed(const SDL_KeyboardEvent &arg);
virtual void keyReleased(const SDL_KeyboardEvent &arg);
private:
bool actionIsActive(int id);
ICS::InputControlSystem* mInputBinder;
SDLUtil::InputWrapper* mInputWrapper;
ActionManager* mActionManager;
bool mControlsDisabled;
};
}
#endif