mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
emulators/yuzu: limit sdl < 2.0.15 workaround to PS5 rumble
- devel/sdl20 currently disables HIDAPI by default - rumble hint is only necessary for bluetooth
This commit is contained in:
parent
b093791110
commit
e683889434
1 changed files with 2 additions and 3 deletions
|
@ -22,12 +22,11 @@ CMake Error at externals/CMakeLists.txt:54 (add_subdirectory):
|
||||||
if (SDL2_FOUND)
|
if (SDL2_FOUND)
|
||||||
--- src/input_common/sdl/sdl_impl.cpp.orig 2021-05-19 22:47:48 UTC
|
--- src/input_common/sdl/sdl_impl.cpp.orig 2021-05-19 22:47:48 UTC
|
||||||
+++ src/input_common/sdl/sdl_impl.cpp
|
+++ src/input_common/sdl/sdl_impl.cpp
|
||||||
@@ -796,8 +796,10 @@ SDLState::SDLState() {
|
@@ -797,7 +797,9 @@ SDLState::SDLState() {
|
||||||
RegisterFactory<MotionDevice>("sdl", motion_factory);
|
|
||||||
|
|
||||||
// Enable HIDAPI rumble. This prevents SDL from disabling motion on PS4 and PS5 controllers
|
// Enable HIDAPI rumble. This prevents SDL from disabling motion on PS4 and PS5 controllers
|
||||||
+#ifdef SDL_HINT_JOYSTICK_HIDAPI_PS5_RUMBLE
|
|
||||||
SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS4_RUMBLE, "1");
|
SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS4_RUMBLE, "1");
|
||||||
|
+#ifdef SDL_HINT_JOYSTICK_HIDAPI_PS5_RUMBLE
|
||||||
SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS5_RUMBLE, "1");
|
SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS5_RUMBLE, "1");
|
||||||
+#endif
|
+#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue