Просмотр исходного кода

add SetGamepadVibration to rgfw and template (#4612)

pull/4615/head
JupiterRider 1 год назад
committed by GitHub
Родитель
Сommit
714cd5ef5c
Не найден GPG ключ соответствующий данной подписи Идентификатор GPG ключа: B5690EEEBB952194
2 измененных файлов: 12 добавлений и 0 удалений
  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 Просмотреть файл

@ -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 Просмотреть файл

@ -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)
{

Загрузка…
Отмена
Сохранить