Switching to hardcoded callback functions. Selection tools are working with callbacks
This commit is contained in:
parent
109fd96b67
commit
eac8610456
17 changed files with 486 additions and 429 deletions
|
|
@ -67,7 +67,6 @@ class World {
|
|||
void focus_update();
|
||||
void unfocus_update();
|
||||
void on_tab_out();
|
||||
void on_tab_in();
|
||||
|
||||
void draw(SkCanvas* canvas, const DrawData& calledDrawData);
|
||||
void early_destroy();
|
||||
|
|
@ -102,11 +101,10 @@ class World {
|
|||
std::shared_ptr<NetServer> netServer;
|
||||
std::shared_ptr<NetClient> netClient;
|
||||
|
||||
std::unordered_map<unsigned, InputManager::KeyCallbackManager::Callback*> keyCallbacks;
|
||||
void input_key_callback(const InputManager::KeyCallbackArgs& key);
|
||||
void input_mouse_button_callback(const InputManager::MouseButtonCallbackArgs& button);
|
||||
void input_mouse_motion_callback(const InputManager::MouseMotionCallbackArgs& motion);
|
||||
private:
|
||||
void register_callbacks();
|
||||
void deregister_callbacks();
|
||||
|
||||
void load_empty_canvas();
|
||||
|
||||
Vector3f get_random_cursor_color();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue