1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

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

@@ -495,6 +495,15 @@ bool InputDefault::is_emulating_touchscreen() const {
return emulate_touch;
}
Input::CursorShape InputDefault::get_default_cursor_shape() {
return default_shape;
}
void InputDefault::set_default_cursor_shape(CursorShape p_shape) {
default_shape = p_shape;
OS::get_singleton()->set_cursor_shape((OS::CursorShape)p_shape);
}
void InputDefault::set_custom_mouse_cursor(const RES &p_cursor, CursorShape p_shape, const Vector2 &p_hotspot) {
if (Engine::get_singleton()->is_editor_hint())
return;