Update RingRayLib - raylib.c - Add Function : void SetGesturesEnabled(unsigned int gestureFlags)
@@ -1474,6 +1474,20 @@ RING_FUNC(ring_GetTouchPosition)
}
}
+
+RING_FUNC(ring_SetGesturesEnabled)
+{
+ if ( RING_API_PARACOUNT != 1 ) {
+ RING_API_ERROR(RING_API_MISS1PARA);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ SetGesturesEnabled( (unsigned int ) RING_API_GETNUMBER(1));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("initwindow",ring_InitWindow);
@@ -1584,4 +1598,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("gettouchx",ring_GetTouchX);
ring_vm_funcregister("gettouchy",ring_GetTouchY);
ring_vm_funcregister("gettouchposition",ring_GetTouchPosition);
+ ring_vm_funcregister("setgesturesenabled",ring_SetGesturesEnabled);
}
