Added Joy-Cons to the HD rumble list

This commit is contained in:
Gabriel Gavazzi
2022-09-07 00:58:11 -03:00
committed by GitHub
parent 4ffbbc5348
commit a31bffb2e1

View File

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