diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2022-01-29 00:36:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-29 00:36:28 +0100 |
commit | 1900abde13f2dc6f6959442097edefd07e3bdb89 (patch) | |
tree | 29fef7d3c6f2a48c18bfcefefd138444e07befdb /src/input_common/drivers/sdl_driver.cpp | |
parent | Merge pull request #7787 from bunnei/scheduler-deadlock-fix (diff) | |
parent | input_common: Add DS5 to HD rumble list (diff) | |
download | yuzu-1900abde13f2dc6f6959442097edefd07e3bdb89.tar yuzu-1900abde13f2dc6f6959442097edefd07e3bdb89.tar.gz yuzu-1900abde13f2dc6f6959442097edefd07e3bdb89.tar.bz2 yuzu-1900abde13f2dc6f6959442097edefd07e3bdb89.tar.lz yuzu-1900abde13f2dc6f6959442097edefd07e3bdb89.tar.xz yuzu-1900abde13f2dc6f6959442097edefd07e3bdb89.tar.zst yuzu-1900abde13f2dc6f6959442097edefd07e3bdb89.zip |
Diffstat (limited to '')
-rw-r--r-- | src/input_common/drivers/sdl_driver.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/input_common/drivers/sdl_driver.cpp b/src/input_common/drivers/sdl_driver.cpp index ed6281772..577bf5c31 100644 --- a/src/input_common/drivers/sdl_driver.cpp +++ b/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; } |