mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 06:51:51 +00:00
Mouse move work
This commit is contained in:
parent
51927ee350
commit
6a7335900f
3 changed files with 22 additions and 14 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue