Implement Input.set_default_cursor_shape to change the default shape

Closes #18043
This commit is contained in:
Guilherme Felipe 2018-04-09 17:48:24 -03:00
parent 48890b15c5
commit 4f05190fb0
5 changed files with 16 additions and 1 deletions

View file

@ -1814,7 +1814,7 @@ void Viewport::_gui_input_event(Ref<InputEvent> p_event) {
}
if (!over) {
OS::get_singleton()->set_cursor_shape(OS::CURSOR_ARROW);
OS::get_singleton()->set_cursor_shape((OS::CursorShape)Input::get_singleton()->get_default_cursor_shape());
return;
}