Skip to content

Commit 05028b2

Browse files
committed
Apply new curve values on profile swap
1 parent 55c24e8 commit 05028b2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/Configuration/StickSensitivity.vue

+2
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ onUnmounted(() => {
127127
@change="(e: any) => {
128128
leftJoystick.setProfileId(e.target.value);
129129
leftJoystick.setModifier(PS5_JOYSTICK_CURVE[e.target.value].getModifier());
130+
leftJoystick.setCurveValues(PS5_JOYSTICK_CURVE[leftJoystick.getProfileId()].getAdjustments().map(curve => curve.getByIndex(5)));
130131
leftJoystickRange.disabled = Number(leftJoystick.getProfileId()) === JoystickProfileId.DEFAULT
131132
}"
132133
>
@@ -168,6 +169,7 @@ onUnmounted(() => {
168169
@change="(e: any) => {
169170
rightJoystick.setProfileId(e.target.value);
170171
rightJoystick.setModifier(PS5_JOYSTICK_CURVE[e.target.value].getModifier());
172+
rightJoystick.setCurveValues(PS5_JOYSTICK_CURVE[rightJoystick.getProfileId()].getAdjustments().map(curve => curve.getByIndex(5)));
171173
rightJoystickRange.disabled = Number(rightJoystick.getProfileId()) === JoystickProfileId.DEFAULT
172174
}"
173175
>

0 commit comments

Comments
 (0)