controller: give the DualShock 4 the DualSense pad path and release p… (#453)

controller: give the DualShock 4 the DualSense pad path and release pads on exit
This commit is contained in:
Mehmet Cambaz authored and GitHub committed 2026-09-04 00:10:57 +02:00
1 parent 2fe5c150bc
commit c2189de88f
5 files changed
+50 -8

No files matched your search

@@ -814,6 +814,7 @@ static void WindowCreate(WindowContext& context) {
int width = static_cast<int>(context.graphic_ctx.screen_width);
int height = static_cast<int>(context.graphic_ctx.screen_height);
SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS4_RUMBLE, "1");
SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS5_RUMBLE, "1");
#if KYTY_PLATFORM == KYTY_PLATFORM_WINDOWS
SDL_SetHint(SDL_HINT_WINDOWS_DPI_SCALING, "0");
@@ -899,6 +900,7 @@ void WindowRun() {
void WindowShutdown() {
if (g_window != nullptr) {
Controller::EmergencyShutdown();
g_window.reset();
}
}