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

Add implementation for custom hardware cursor

This commit is contained in:
Guilherme Silva
2017-11-10 08:50:11 -02:00
committed by Guilherme Felipe
parent fa8a1fc420
commit a392dbdbe3
23 changed files with 318 additions and 41 deletions

View File

@@ -1105,7 +1105,7 @@ Error Main::setup2(Thread::ID p_main_tid_override) {
if (cursor.is_valid()) {
//print_line("loaded ok");
Vector2 hotspot = ProjectSettings::get_singleton()->get("display/mouse_cursor/custom_image_hotspot");
Input::get_singleton()->set_custom_mouse_cursor(cursor, hotspot);
Input::get_singleton()->set_custom_mouse_cursor(cursor, Input::CURSOR_ARROW, hotspot);
}
}
#ifdef TOOLS_ENABLED