mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-06 11:28:17 +00:00
add SetGamepadVibration to rgfw and template (#4612)
This commit is contained in:
@@ -780,6 +780,12 @@ int SetGamepadMappings(const char *mappings)
|
|||||||
return 0;
|
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
|
// Set mouse position XY
|
||||||
void SetMousePosition(int x, int y)
|
void SetMousePosition(int x, int y)
|
||||||
{
|
{
|
||||||
|
@@ -381,6 +381,12 @@ int SetGamepadMappings(const char *mappings)
|
|||||||
return 0;
|
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
|
// Set mouse position XY
|
||||||
void SetMousePosition(int x, int y)
|
void SetMousePosition(int x, int y)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user