mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 21:41:50 +00:00
refactor: add GUI instance reference to UI nodes
This commit is contained in:
parent
74a94f869c
commit
4c48afbb90
70 changed files with 1133 additions and 832 deletions
|
|
@ -21,7 +21,7 @@ namespace Events {
|
|||
extern glm::vec2 cursor;
|
||||
extern std::vector<uint> codepoints;
|
||||
extern std::vector<keycode> pressedKeys;
|
||||
extern std::unordered_map<std::string, Binding> bindings;
|
||||
extern Bindings bindings;
|
||||
|
||||
void pollEvents();
|
||||
|
||||
|
|
@ -39,7 +39,8 @@ namespace Events {
|
|||
|
||||
void toggleCursor();
|
||||
|
||||
Binding& getBinding(const std::string& name);
|
||||
Binding* getBinding(const std::string& name);
|
||||
Binding& requireBinding(const std::string& name);
|
||||
void bind(const std::string& name, inputtype type, keycode code);
|
||||
void bind(const std::string& name, inputtype type, mousecode code);
|
||||
void bind(const std::string& name, inputtype type, int code);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue