Update raylib_api.* by CI

This commit is contained in:
github-actions[bot] 2024-10-21 22:06:52 +00:00
parent f8f6aa0907
commit 2a0963ce09
4 changed files with 13 additions and 6 deletions

View file

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

View file

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

View file

@ -1942,13 +1942,14 @@ Function 177: SetGamepadMappings() (1 input parameters)
Return type: int Return type: int
Description: Set internal gamepad mappings (SDL_GameControllerDB) Description: Set internal gamepad mappings (SDL_GameControllerDB)
Param[1]: mappings (type: const char *) Param[1]: mappings (type: const char *)
Function 178: SetGamepadVibration() (3 input parameters) Function 178: SetGamepadVibration() (4 input parameters)
Name: SetGamepadVibration Name: SetGamepadVibration
Return type: void 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[1]: gamepad (type: int)
Param[2]: leftMotor (type: float) Param[2]: leftMotor (type: float)
Param[3]: rightMotor (type: float) Param[3]: rightMotor (type: float)
Param[4]: duration (type: float)
Function 179: IsMouseButtonPressed() (1 input parameters) Function 179: IsMouseButtonPressed() (1 input parameters)
Name: IsMouseButtonPressed Name: IsMouseButtonPressed
Return type: bool Return type: bool

View file

@ -1217,10 +1217,11 @@
<Function name="SetGamepadMappings" retType="int" paramCount="1" desc="Set internal gamepad mappings (SDL_GameControllerDB)"> <Function name="SetGamepadMappings" retType="int" paramCount="1" desc="Set internal gamepad mappings (SDL_GameControllerDB)">
<Param type="const char *" name="mappings" desc="" /> <Param type="const char *" name="mappings" desc="" />
</Function> </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="int" name="gamepad" desc="" />
<Param type="float" name="leftMotor" desc="" /> <Param type="float" name="leftMotor" desc="" />
<Param type="float" name="rightMotor" desc="" /> <Param type="float" name="rightMotor" desc="" />
<Param type="float" name="duration" desc="" />
</Function> </Function>
<Function name="IsMouseButtonPressed" retType="bool" paramCount="1" desc="Check if a mouse button has been pressed once"> <Function name="IsMouseButtonPressed" retType="bool" paramCount="1" desc="Check if a mouse button has been pressed once">
<Param type="int" name="button" desc="" /> <Param type="int" name="button" desc="" />