#if UNITY_EDITOR using System; namespace UnityEngine.InputSystem.Editor { internal static partial class InputEditorAnalytics { /// /// Represents notification behavior setting associated with and /// . /// internal enum PlayerNotificationBehavior { SendMessages = 0, BroadcastMessages = 1, UnityEvents = 2, CSharpEvents = 3 } /// /// Converts from current type to analytics counterpart. /// /// The value to be converted. /// /// If there is no available remapping. internal static PlayerNotificationBehavior ToNotificationBehavior(PlayerNotifications value) { switch (value) { case PlayerNotifications.SendMessages: return PlayerNotificationBehavior.SendMessages; case PlayerNotifications.BroadcastMessages: return PlayerNotificationBehavior.BroadcastMessages; case PlayerNotifications.InvokeUnityEvents: return PlayerNotificationBehavior.UnityEvents; case PlayerNotifications.InvokeCSharpEvents: return PlayerNotificationBehavior.CSharpEvents; default: throw new ArgumentOutOfRangeException(nameof(value)); } } } } #endif