Skip to content

Commit

Permalink
add SetGamepadVibration to rgfw and template (#4612)
Browse files Browse the repository at this point in the history
  • Loading branch information
JupiterRider authored Dec 18, 2024
1 parent bdfbd6e commit 714cd5e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/platforms/rcore_desktop_rgfw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
6 changes: 6 additions & 0 deletions src/platforms/rcore_template.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 714cd5e

Please sign in to comment.