Mouse move work

This commit is contained in:
Stepanov Igor 2025-10-05 13:20:52 +03:00
parent 51927ee350
commit 6a7335900f
3 changed files with 22 additions and 14 deletions

View file

@ -38,7 +38,7 @@ public:
ObserverHandler addKeyCallback(Keycode key, KeyCallback callback) override;
const std::vector<Keycode>& getPressedKeys() const override;
const std::vector<uint>& getCodepoints() const override;
const std::vector<char>& getCodepoints() const override;
private:
glm::vec2 delta;
glm::vec2 cursor;
@ -49,7 +49,7 @@ private:
bool cursorLocked = false;
bool cursorDrag = false;
Bindings bindings;
std::vector<uint> codepoints;
std::vector<char> codepoints;
std::vector<Keycode> pressedKeys;
std::unordered_map<Keycode, util::HandlersList<>> keyCallbacks;