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