Implement Input.set_default_cursor_shape to change the default shape
Closes #18043
This commit is contained in:
parent
48890b15c5
commit
4f05190fb0
5 changed files with 16 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue