소스 검색

Update raylib_api.* by CI

github-actions[bot] 10 달 전
부모
커밋
2a0963ce09
4개의 변경된 파일13개의 추가작업 그리고 6개의 파일을 삭제
  1. 5 1
      parser/output/raylib_api.json
  2. 3 2
      parser/output/raylib_api.lua
  3. 3 2
      parser/output/raylib_api.txt
  4. 2 1
      parser/output/raylib_api.xml

+ 5 - 1
parser/output/raylib_api.json

@@ -5018,7 +5018,7 @@
     },
     {
       "name": "SetGamepadVibration",
-      "description": "Set gamepad vibration for both motors",
+      "description": "Set gamepad vibration for both motors (duration in seconds)",
       "returnType": "void",
       "params": [
         {
@@ -5032,6 +5032,10 @@
         {
           "type": "float",
           "name": "rightMotor"
+        },
+        {
+          "type": "float",
+          "name": "duration"
         }
       ]
     },

+ 3 - 2
parser/output/raylib_api.lua

@@ -4418,12 +4418,13 @@ return {
     },
     {
       name = "SetGamepadVibration",
-      description = "Set gamepad vibration for both motors",
+      description = "Set gamepad vibration for both motors (duration in seconds)",
       returnType = "void",
       params = {
         {type = "int", name = "gamepad"},
         {type = "float", name = "leftMotor"},
-        {type = "float", name = "rightMotor"}
+        {type = "float", name = "rightMotor"},
+        {type = "float", name = "duration"}
       }
     },
     {

+ 3 - 2
parser/output/raylib_api.txt

@@ -1942,13 +1942,14 @@ Function 177: SetGamepadMappings() (1 input parameters)
   Return type: int
   Description: Set internal gamepad mappings (SDL_GameControllerDB)
   Param[1]: mappings (type: const char *)
-Function 178: SetGamepadVibration() (3 input parameters)
+Function 178: SetGamepadVibration() (4 input parameters)
   Name: SetGamepadVibration
   Return type: void
-  Description: Set gamepad vibration for both motors
+  Description: Set gamepad vibration for both motors (duration in seconds)
   Param[1]: gamepad (type: int)
   Param[2]: leftMotor (type: float)
   Param[3]: rightMotor (type: float)
+  Param[4]: duration (type: float)
 Function 179: IsMouseButtonPressed() (1 input parameters)
   Name: IsMouseButtonPressed
   Return type: bool

+ 2 - 1
parser/output/raylib_api.xml

@@ -1217,10 +1217,11 @@
         <Function name="SetGamepadMappings" retType="int" paramCount="1" desc="Set internal gamepad mappings (SDL_GameControllerDB)">
             <Param type="const char *" name="mappings" desc="" />
         </Function>
-        <Function name="SetGamepadVibration" retType="void" paramCount="3" desc="Set gamepad vibration for both motors">
+        <Function name="SetGamepadVibration" retType="void" paramCount="4" desc="Set gamepad vibration for both motors (duration in seconds)">
             <Param type="int" name="gamepad" desc="" />
             <Param type="float" name="leftMotor" desc="" />
             <Param type="float" name="rightMotor" desc="" />
+            <Param type="float" name="duration" desc="" />
         </Function>
         <Function name="IsMouseButtonPressed" retType="bool" paramCount="1" desc="Check if a mouse button has been pressed once">
             <Param type="int" name="button" desc="" />