Browse Source

add SetGamepadVibration to rgfw and template

pull/4612/head
JupiterRider 22 hours ago
parent
commit
5c01e7ff85
2 changed files with 12 additions and 0 deletions
  1. +6
    -0
      src/platforms/rcore_desktop_rgfw.c
  2. +6
    -0
      src/platforms/rcore_template.c

+ 6
- 0
src/platforms/rcore_desktop_rgfw.c 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)
{

+ 6
- 0
src/platforms/rcore_template.c 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)
{

Loading…
Cancel
Save