mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-20 09:29:44 +00:00
refactor: replace references to Events with Input
This commit is contained in:
parent
4c48afbb90
commit
b202d1455b
15 changed files with 160 additions and 116 deletions
|
|
@ -189,10 +189,6 @@ public:
|
|||
return Events::getScroll();
|
||||
}
|
||||
|
||||
Binding& requireBinding(const std::string& name) override {
|
||||
return Events::requireBinding(name);
|
||||
}
|
||||
|
||||
bool pressed(keycode keycode) const override {
|
||||
return Events::pressed(keycode);
|
||||
}
|
||||
|
|
@ -215,6 +211,10 @@ public:
|
|||
};
|
||||
}
|
||||
|
||||
void toggleCursor() override {
|
||||
Events::toggleCursor();
|
||||
}
|
||||
|
||||
Bindings& getBindings() override {
|
||||
return Events::bindings;
|
||||
}
|
||||
|
|
@ -226,6 +226,14 @@ public:
|
|||
observer_handler addKeyCallback(keycode key, KeyCallback callback) override {
|
||||
return Events::addKeyCallback(key, std::move(callback));
|
||||
}
|
||||
|
||||
const std::vector<keycode>& getPressedKeys() const override {
|
||||
return Events::pressedKeys;
|
||||
}
|
||||
|
||||
const std::vector<uint>& getCodepoints() const override {
|
||||
return Events::codepoints;
|
||||
}
|
||||
};
|
||||
static_assert(!std::is_abstract<GLFWInput>());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue