Commit 41fab8532d56f8b286195edbc2d9bf270fbe5ca0

Sam Lantinga 2021-06-18T18:10:24

ControllerList: set the default deadzone for Ps5 controller back to same one as Xbox controllers. Too many users complained about drift.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/src/joystick/controller_type.h b/src/joystick/controller_type.h
index 0bdf5ab..ffe9494 100644
--- a/src/joystick/controller_type.h
+++ b/src/joystick/controller_type.h
@@ -699,11 +699,11 @@ static SDL_INLINE int GetDefaultDeadzoneSizeForControllerType( EControllerType e
 	case k_eControllerType_AppleController:
 	case k_eControllerType_AndroidController:
 	case k_eControllerType_PS3Controller:
+	case k_eControllerType_PS5Controller:
 		return 10000;
 	case k_eControllerType_SteamControllerV2:
 		return 8192;
 	case k_eControllerType_PS4Controller:
-	case k_eControllerType_PS5Controller:
 		return 4096;
 	case k_eControllerType_SwitchJoyConLeft:
 	case k_eControllerType_SwitchJoyConRight: