From fd5c5e7cede71adeb474155783443902e6175d03 Mon Sep 17 00:00:00 2001 From: UkoeHB <37489173+UkoeHB@users.noreply.github.com> Date: Tue, 6 May 2025 00:23:48 -0500 Subject: [PATCH] Expose CustomCursorUrl (#19006) # Objective `CustomCursorUrl` is inaccessible. ## Solution Expose `CustomCursorUrl`. --- crates/bevy_winit/src/cursor.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/bevy_winit/src/cursor.rs b/crates/bevy_winit/src/cursor.rs index f45b7f00d6..bdca3f8585 100644 --- a/crates/bevy_winit/src/cursor.rs +++ b/crates/bevy_winit/src/cursor.rs @@ -39,6 +39,13 @@ use tracing::warn; #[cfg(feature = "custom_cursor")] pub use crate::custom_cursor::{CustomCursor, CustomCursorImage}; +#[cfg(all( + feature = "custom_cursor", + target_family = "wasm", + target_os = "unknown" +))] +pub use crate::custom_cursor::CustomCursorUrl; + pub(crate) struct CursorPlugin; impl Plugin for CursorPlugin {