public static TouchpadData GetTouchpad(InteractionSourceState interactionSource)
 {
     return(new TouchpadData
     {
         AxisButton = AxisButton2D.GetTouchpad(interactionSource),
         Touched = interactionSource.touchpadTouched,
     });
 }
Example #2
0
            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
                });
            }