diff options
| author | Guilherme Felipe | 2018-04-09 14:33:13 -0300 |
|---|---|---|
| committer | Guilherme Felipe | 2018-04-09 14:33:13 -0300 |
| commit | 19d2a44e5db9706180861d60958ae7f8592475ea (patch) | |
| tree | c214bda612536e5ae62b998cb9b3b0a70ab6df86 /main/input_default.cpp | |
| parent | 36552c2c90a8fb714d2fd8aec37e4bd2f876b090 (diff) | |
| download | godot-19d2a44e5db9706180861d60958ae7f8592475ea.tar.gz godot-19d2a44e5db9706180861d60958ae7f8592475ea.tar.zst godot-19d2a44e5db9706180861d60958ae7f8592475ea.zip | |
Diffstat (limited to 'main/input_default.cpp')
| -rw-r--r-- | main/input_default.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/main/input_default.cpp b/main/input_default.cpp index c3bc83b2d..ae3305795 100644 --- a/main/input_default.cpp +++ b/main/input_default.cpp @@ -413,10 +413,6 @@ void InputDefault::set_mouse_position(const Point2 &p_posf) { mouse_speed_track.update(p_posf - mouse_pos); mouse_pos = p_posf; - if (custom_cursor.is_valid()) { - //removed, please insist that we implement hardware cursors - // VisualServer::get_singleton()->cursor_set_pos(get_mouse_position()); - } } Point2 InputDefault::get_mouse_position() const { @@ -503,11 +499,6 @@ void InputDefault::set_custom_mouse_cursor(const RES &p_cursor, CursorShape p_sh if (Engine::get_singleton()->is_editor_hint()) return; - if (custom_cursor == p_cursor) - return; - - custom_cursor = p_cursor; - OS::get_singleton()->set_custom_mouse_cursor(p_cursor, (OS::CursorShape)p_shape, p_hotspot); } |
