Update RingRayLib - raylib.c - Add Function : Vector2 GetGestureDragVector(void)
@@ -1532,6 +1532,21 @@ RING_FUNC(ring_GetGestureHoldDuration)
RING_API_RETNUMBER(GetGestureHoldDuration());
}
+
+RING_FUNC(ring_GetGestureDragVector)
+{
+ if ( RING_API_PARACOUNT != 0 ) {
+ RING_API_ERROR(RING_API_BADPARACOUNT);
+ return ;
+ }
+ {
+ Vector2 *pValue ;
+ pValue = (Vector2 *) ring_state_malloc(((VM *) pPointer)->pRingState,sizeof(Vector2)) ;
+ *pValue = GetGestureDragVector();
+ RING_API_RETMANAGEDCPOINTER(pValue,"Vector2",ring_state_free);
+ }
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("initwindow",ring_InitWindow);
@@ -1647,4 +1662,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("getgesturedetected",ring_GetGestureDetected);
ring_vm_funcregister("gettouchpointscount",ring_GetTouchPointsCount);
ring_vm_funcregister("getgestureholdduration",ring_GetGestureHoldDuration);
+ ring_vm_funcregister("getgesturedragvector",ring_GetGestureDragVector);
}
