add SetGamepadVibration to rgfw and template (#4612)

This commit is contained in:
JupiterRider
2024-12-18 11:38:11 +01:00
committed by GitHub
parent bdfbd6e8cc
commit 714cd5ef5c
2 changed files with 12 additions and 0 deletions

View File

@@ -780,6 +780,12 @@ int SetGamepadMappings(const char *mappings)
return 0;
}
// Set gamepad vibration
void SetGamepadVibration(int gamepad, float leftMotor, float rightMotor, float duration)
{
TRACELOG(LOG_WARNING, "GamepadSetVibration() not available on target platform");
}
// Set mouse position XY
void SetMousePosition(int x, int y)
{

View File

@@ -381,6 +381,12 @@ int SetGamepadMappings(const char *mappings)
return 0;
}
// Set gamepad vibration
void SetGamepadVibration(int gamepad, float leftMotor, float rightMotor, float duration)
{
TRACELOG(LOG_WARNING, "GamepadSetVibration() not implemented on target platform");
}
// Set mouse position XY
void SetMousePosition(int x, int y)
{