#ifndef HUMANIZERKEYHANDLER_H #define HUMANIZERKEYHANDLER_H #include "keyhandler.h" #include class HumanizerKeyHandler : public KeyHandler { public: HumanizerKeyHandler(std::unique_ptr keyHandler); virtual ~HumanizerKeyHandler() override { } virtual void Key(SpecialKey key, KeyModifiers mods = KeyModifiers::KM_NONE) override; virtual void Key(char key, KeyModifiers mods = KeyModifiers::KM_NONE) override; unsigned minDelay = 50; unsigned maxDelay = 150; bool insertMistakes = true; private: void InsertDelay(char currentKey, SpecialKey currentKeySpecial, KeyModifiers mods); std::unique_ptr m_keyHandler; }; #endif // HUMANIZERKEYHANDLER_H