diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-03-10 10:41:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-10 10:41:00 +0100 |
commit | 0f731701805b2fe8d26ab165ed2893108c706617 (patch) | |
tree | f64368632a82f678e295591c4f7b96d24fbf2171 /scene/main/window.cpp | |
parent | 83f2942a0421baaaaf06eeebcc17261369fe5118 (diff) | |
parent | 40c08e522f7084afffbd2c4451146e7b5af69d30 (diff) | |
download | redot-engine-0f731701805b2fe8d26ab165ed2893108c706617.tar.gz |
Merge pull request #58978 from Sauermann/revert-58913
Diffstat (limited to 'scene/main/window.cpp')
-rw-r--r-- | scene/main/window.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/scene/main/window.cpp b/scene/main/window.cpp index a1124274d8..6837fcae21 100644 --- a/scene/main/window.cpp +++ b/scene/main/window.cpp @@ -378,18 +378,6 @@ void Window::_event_callback(DisplayServer::WindowEvent p_event) { } } -void Window::update_mouse_cursor_shape() { - // The default shape is set in Viewport::_gui_input_event. To instantly - // see the shape in the viewport we need to trigger a mouse motion event. - Ref<InputEventMouseMotion> mm; - Vector2 pos = get_mouse_position(); - Transform2D xform = get_global_canvas_transform().affine_inverse(); - mm.instantiate(); - mm->set_position(pos); - mm->set_global_position(xform.xform(pos)); - push_input(mm); -} - void Window::show() { set_visible(true); } |