예제 #1
0
        public Vector2 GetTouch(int controllerIndex)
        {
            NativeVector2f touchPos = new NativeVector2f();
            NativeResult   result   = NativeApi.NRControllerStateGetTouchPose(m_StateHandles[controllerIndex], ref touchPos);

            if (result == NativeResult.Success)
            {
                return(touchPos.ToUnityVector2());
            }
            return(Vector3.zero);
        }
예제 #2
0
 public static extern NativeResult NRControllerStateGetTouchPose(UInt64 controller_state_handle, ref NativeVector2f out_controller_touch_pose);