Compare commits

...

2 Commits

Author SHA1 Message Date
Gabriel Gavazzi 9e11c21b34 Update sdl_driver.cpp 2022-09-07 01:12:08 -03:00
Gabriel Gavazzi a31bffb2e1 Added Joy-Cons to the HD rumble list 2022-09-07 00:58:11 -03:00
+4 -1
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;