diff --git a/DS4Windows/DS4Control/ProfileMigration.cs b/DS4Windows/DS4Control/ProfileMigration.cs index 73a2d6148..e48bf0e63 100644 --- a/DS4Windows/DS4Control/ProfileMigration.cs +++ b/DS4Windows/DS4Control/ProfileMigration.cs @@ -434,9 +434,15 @@ private string Version0002Migration() { string lsdead = profileReader.ReadElementContentAsString(); bool valid = int.TryParse(lsdead, out int temp); - if (valid && temp <= 0) + if (valid) { - temp = 10; + // Add default deadzone if a 0 dead zone was set in profile. + // Jays2Kings used implicit dead zones in the mapper code + if (temp <= 0) + { + temp = StickDeadZoneInfo.DEFAULT_DEADZONE; + } + tempWriter.WriteElementString("LSDeadZone", temp.ToString()); } @@ -446,14 +452,21 @@ private string Version0002Migration() { string rsdead = profileReader.ReadElementContentAsString(); bool valid = int.TryParse(rsdead, out int temp); - if (valid && temp <= 0) + if (valid) { - temp = 10; + // Add default deadzone if a 0 dead zone was set in profile. + // Jays2Kings used implicit dead zones in the mapper code + if (temp <= 0) + { + temp = StickDeadZoneInfo.DEFAULT_DEADZONE; + } + tempWriter.WriteElementString("RSDeadZone", temp.ToString()); } break; } + default: tempWriter.WriteNode(profileReader, true); break;