summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2022-01-29 00:36:28 +0100
committerGitHub <noreply@github.com>2022-01-29 00:36:28 +0100
commit1900abde13f2dc6f6959442097edefd07e3bdb89 (patch)
tree29fef7d3c6f2a48c18bfcefefd138444e07befdb
parentMerge pull request #7787 from bunnei/scheduler-deadlock-fix (diff)
parentinput_common: Add DS5 to HD rumble list (diff)
downloadyuzu-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
-rw-r--r--src/input_common/drivers/sdl_driver.cpp5
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;
}