public static TouchpadData GetTouchpad(InteractionSourceState interactionSource) { return(new TouchpadData { AxisButton = AxisButton2D.GetTouchpad(interactionSource), Touched = interactionSource.touchpadTouched, }); }
public static TouchpadData GetTouchpad(InteractionSourceState interactionSource) { return(new TouchpadData { AxisButton = AxisButton2D.GetTouchpad(interactionSource), #if UNITY_2017_2_OR_NEWER Touched = interactionSource.touchpadTouched, #else Touched = false, #endif }); }