/// The touch event handler for ControlState.
/// Please change ControlState value by touch state if needed.
/// </summary>
+ /// <exception cref="ArgumentNullException"> Thrown when touch is null. </exception>
[EditorBrowsable(EditorBrowsableState.Never)]
protected virtual bool HandleControlStateOnTouch(Touch touch)
{
+ if (touch == null)
+ {
+ throw new global::System.ArgumentNullException(nameof(touch));
+ }
+
switch (touch.GetState(0))
{
case PointStateType.Down:
default:
break;
}
-
return false;
}