Skip to content

Commit

Permalink
Apply new curve values on profile swap
Browse files Browse the repository at this point in the history
  • Loading branch information
steffalon committed Feb 11, 2024
1 parent 55c24e8 commit 05028b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Configuration/StickSensitivity.vue
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ onUnmounted(() => {
@change="(e: any) => {
leftJoystick.setProfileId(e.target.value);
leftJoystick.setModifier(PS5_JOYSTICK_CURVE[e.target.value].getModifier());
leftJoystick.setCurveValues(PS5_JOYSTICK_CURVE[leftJoystick.getProfileId()].getAdjustments().map(curve => curve.getByIndex(5)));
leftJoystickRange.disabled = Number(leftJoystick.getProfileId()) === JoystickProfileId.DEFAULT
}"
>
Expand Down Expand Up @@ -168,6 +169,7 @@ onUnmounted(() => {
@change="(e: any) => {
rightJoystick.setProfileId(e.target.value);
rightJoystick.setModifier(PS5_JOYSTICK_CURVE[e.target.value].getModifier());
rightJoystick.setCurveValues(PS5_JOYSTICK_CURVE[rightJoystick.getProfileId()].getAdjustments().map(curve => curve.getByIndex(5)));
rightJoystickRange.disabled = Number(rightJoystick.getProfileId()) === JoystickProfileId.DEFAULT
}"
>
Expand Down

0 comments on commit 05028b2

Please sign in to comment.