Browse Source
Merge pull request #7784 from german77/ds5
input_common: Add DS5 to HD rumble list
pull/15/merge
Morph
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
2 deletions
-
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; |
|
|
|
} |
|
|
|
|