summaryrefslogtreecommitdiffstats
path: root/src/input_common
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2022-01-27 04:48:30 +0100
committerNarr the Reg <juangerman-13@hotmail.com>2022-01-27 04:49:32 +0100
commitfd1cef56169ca3644fd75b91f652c429d751c666 (patch)
tree57daa145d1795257d6ab28212e79ff73397c2b9c /src/input_common
parentMerge pull request #7769 from german77/no-control (diff)
downloadyuzu-fd1cef56169ca3644fd75b91f652c429d751c666.tar
yuzu-fd1cef56169ca3644fd75b91f652c429d751c666.tar.gz
yuzu-fd1cef56169ca3644fd75b91f652c429d751c666.tar.bz2
yuzu-fd1cef56169ca3644fd75b91f652c429d751c666.tar.lz
yuzu-fd1cef56169ca3644fd75b91f652c429d751c666.tar.xz
yuzu-fd1cef56169ca3644fd75b91f652c429d751c666.tar.zst
yuzu-fd1cef56169ca3644fd75b91f652c429d751c666.zip
Diffstat (limited to '')
-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;
}