You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
HTML5: Add missing OS::get_cursor_shape() implementation
Fixes #66835.
(cherry picked from commit 6f6c8b114b)
This commit is contained in:
committed by
Haoyu Qiu
parent
3869ea3c21
commit
560c77b1a1
@@ -370,6 +370,10 @@ void OS_JavaScript::set_cursor_shape(CursorShape p_shape) {
|
||||
godot_js_display_cursor_set_shape(godot2dom_cursor(cursor_shape));
|
||||
}
|
||||
|
||||
OS::CursorShape OS_JavaScript::get_cursor_shape() const {
|
||||
return cursor_shape;
|
||||
}
|
||||
|
||||
void OS_JavaScript::set_custom_mouse_cursor(const RES &p_cursor, CursorShape p_shape, const Vector2 &p_hotspot) {
|
||||
if (p_cursor.is_valid()) {
|
||||
Ref<Texture> texture = p_cursor;
|
||||
|
||||
Reference in New Issue
Block a user