Update RingRayLib - raylib.c - Add Function : bool IsKeyUp(int key)
@@ -1082,6 +1082,20 @@ RING_FUNC(ring_IsKeyReleased)
RING_API_RETNUMBER(IsKeyReleased( (int ) RING_API_GETNUMBER(1)));
}
+
+RING_FUNC(ring_IsKeyUp)
+{
+ if ( RING_API_PARACOUNT != 1 ) {
+ RING_API_ERROR(RING_API_MISS1PARA);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ RING_API_RETNUMBER(IsKeyUp( (int ) RING_API_GETNUMBER(1)));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("initwindow",ring_InitWindow);
@@ -1165,4 +1179,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("iskeypressed",ring_IsKeyPressed);
ring_vm_funcregister("iskeydown",ring_IsKeyDown);
ring_vm_funcregister("iskeyreleased",ring_IsKeyReleased);
+ ring_vm_funcregister("iskeyup",ring_IsKeyUp);
}
