2020-04-16 07:03:34 +00:00
|
|
|
#ifndef MWINPUT_MWKEYBOARDMANAGER_H
|
|
|
|
#define MWINPUT_MWKEYBOARDMANAGER_H
|
|
|
|
|
|
|
|
#include <components/sdlutil/events.hpp>
|
|
|
|
|
|
|
|
namespace MWInput
|
|
|
|
{
|
2020-04-17 11:21:23 +00:00
|
|
|
class BindingsManager;
|
2020-04-16 07:03:34 +00:00
|
|
|
|
|
|
|
class KeyboardManager : public SDLUtil::KeyListener
|
|
|
|
{
|
|
|
|
public:
|
2020-04-17 11:59:37 +00:00
|
|
|
KeyboardManager(BindingsManager* bindingsManager);
|
2020-04-16 07:03:34 +00:00
|
|
|
|
|
|
|
virtual ~KeyboardManager() = default;
|
|
|
|
|
2020-10-16 18:18:54 +00:00
|
|
|
void textInput(const SDL_TextInputEvent &arg) override;
|
|
|
|
void keyPressed(const SDL_KeyboardEvent &arg) override;
|
|
|
|
void keyReleased(const SDL_KeyboardEvent &arg) override;
|
2020-04-16 07:03:34 +00:00
|
|
|
|
|
|
|
private:
|
2020-04-17 11:21:23 +00:00
|
|
|
BindingsManager* mBindingsManager;
|
2020-04-16 07:03:34 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|