mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
refactor: reduce Window references
This commit is contained in:
parent
896ab3597a
commit
74a94f869c
19 changed files with 151 additions and 155 deletions
|
|
@ -18,7 +18,6 @@
|
|||
#include "util/listutil.hpp"
|
||||
#include "util/platform.hpp"
|
||||
#include "window/Events.hpp"
|
||||
#include "window/Window.hpp"
|
||||
#include "world/Level.hpp"
|
||||
#include "world/generator/WorldGenerator.hpp"
|
||||
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ static int l_add_callback(lua::State* L) {
|
|||
std::string prefix = bindname.substr(0, pos);
|
||||
if (prefix == "key") {
|
||||
auto key = input_util::keycode_from(bindname.substr(pos + 1));
|
||||
handler = Events::keyCallbacks[key].add(actual_callback);
|
||||
handler = Events::addKeyCallback(key, actual_callback);
|
||||
}
|
||||
}
|
||||
auto callback = [=]() -> bool {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue