Files
valheim/Assets/Wave/Essence/InputModule/5.5.0-r.10/Scripts/PointerEvents.cs
2025-07-04 14:16:14 +08:00

37 lines
1.1 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// "WaveVR SDK
// © 2020 HTC Corporation. All Rights Reserved.
//
// Unless otherwise required by copyright law and practice,
// upon the execution of HTC SDK license agreement,
// HTC grants you access to and use of the WaveVR SDK(s).
// You shall fully comply with all of HTCs SDK license agreement terms and
// conditions signed by you and all SDK and API requirements,
// specifications, and documentation provided by HTC to You."
using UnityEngine.EventSystems;
namespace Wave.Essence.InputModule
{
/// Handler for pointer is hovering over GameObject.
public interface IPointerHoverHandler : IEventSystemHandler
{
void OnHover(PointerEventData eventData);
}
public static class PointerEvents
{
#region Event Executor of Hover
/// Use ExecuteEvents.Execute (GameObject, BaseEventData, ExecuteEvents.pointerHoverHandler)
private static void HoverExecutor(IPointerHoverHandler handler, BaseEventData eventData)
{
handler.OnHover(ExecuteEvents.ValidateEventData<PointerEventData>(eventData));
}
public static ExecuteEvents.EventFunction<IPointerHoverHandler> pointerHoverHandler
{
get { return HoverExecutor; }
}
#endregion
}
}