#if UNITY_2019_1_OR_NEWER
using UnityEditor;
using UnityEngine.UIElements;
using UnityAtoms.Mobile;
using UnityAtoms.Editor;
namespace UnityAtoms.Mobile.Editor
{
///
/// Event property drawer of type `TouchUserInput`. Inherits from `AtomEventEditor<TouchUserInput, TouchUserInputEvent>`. Only availble in `UNITY_2019_1_OR_NEWER`.
///
[CustomEditor(typeof(TouchUserInputEvent))]
public sealed class TouchUserInputEventEditor : AtomEventEditor
{
protected override VisualElement GetRaiseValueInput()
{
var input = new Toggle() { label = "Raise value", name = "Raise value", viewDataKey = "Raise value" };
input.RegisterCallback>((evt) => { _raiseValue = evt.newValue; });
return input;
}
}
}
#endif