Update RingRayLib - raylib.c - Add Function : int GetMouseX(void)
@@ -1336,6 +1336,16 @@ RING_FUNC(ring_IsMouseButtonUp)
RING_API_RETNUMBER(IsMouseButtonUp( (int ) RING_API_GETNUMBER(1)));
}
+
+RING_FUNC(ring_GetMouseX)
+{
+ if ( RING_API_PARACOUNT != 0 ) {
+ RING_API_ERROR(RING_API_BADPARACOUNT);
+ return ;
+ }
+ RING_API_RETNUMBER(GetMouseX());
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("initwindow",ring_InitWindow);
@@ -1436,4 +1446,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("ismousebuttondown",ring_IsMouseButtonDown);
ring_vm_funcregister("ismousebuttonreleased",ring_IsMouseButtonReleased);
ring_vm_funcregister("ismousebuttonup",ring_IsMouseButtonUp);
+ ring_vm_funcregister("getmousex",ring_GetMouseX);
}
