From 4f05190fb08b064b8605ab80cba74aee38e52702 Mon Sep 17 00:00:00 2001 From: Guilherme Felipe Date: Mon, 9 Apr 2018 17:48:24 -0300 Subject: Implement Input.set_default_cursor_shape to change the default shape Closes #18043 --- core/os/input.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'core/os/input.cpp') diff --git a/core/os/input.cpp b/core/os/input.cpp index 1d7cd7c791..e8a635e1b5 100644 --- a/core/os/input.cpp +++ b/core/os/input.cpp @@ -85,6 +85,7 @@ void Input::_bind_methods() { ClassDB::bind_method(D_METHOD("warp_mouse_position", "to"), &Input::warp_mouse_position); ClassDB::bind_method(D_METHOD("action_press", "action"), &Input::action_press); ClassDB::bind_method(D_METHOD("action_release", "action"), &Input::action_release); + ClassDB::bind_method(D_METHOD("set_default_cursor_shape", "shape"), &Input::set_default_cursor_shape, DEFVAL(CURSOR_ARROW)); ClassDB::bind_method(D_METHOD("set_custom_mouse_cursor", "image", "shape", "hotspot"), &Input::set_custom_mouse_cursor, DEFVAL(CURSOR_ARROW), DEFVAL(Vector2())); ClassDB::bind_method(D_METHOD("parse_input_event", "event"), &Input::parse_input_event); -- cgit v1.2.3