Explorar o código

input_common: Add DS5 to HD rumble list

Narr the Reg %!s(int64=4) %!d(string=hai) anos
pai
achega
fd1cef5616
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      src/input_common/drivers/sdl_driver.cpp

+ 3 - 2
src/input_common/drivers/sdl_driver.cpp

@@ -109,8 +109,9 @@ public:
 
     bool HasHDRumble() const {
         if (sdl_controller) {
-            return (SDL_GameControllerGetType(sdl_controller.get()) ==
-                    SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_PRO);
+            const auto type = SDL_GameControllerGetType(sdl_controller.get());
+            return (type == SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_PRO) ||
+                   (type == SDL_CONTROLLER_TYPE_PS5);
         }
         return false;
     }