File tree 1 file changed +2
-0
lines changed
src/components/Configuration
1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ onUnmounted(() => {
127
127
@change =" (e: any) => {
128
128
leftJoystick.setProfileId(e.target.value);
129
129
leftJoystick.setModifier(PS5_JOYSTICK_CURVE[e.target.value].getModifier());
130
+ leftJoystick.setCurveValues(PS5_JOYSTICK_CURVE[leftJoystick.getProfileId()].getAdjustments().map(curve => curve.getByIndex(5)));
130
131
leftJoystickRange.disabled = Number(leftJoystick.getProfileId()) === JoystickProfileId.DEFAULT
131
132
}"
132
133
>
@@ -168,6 +169,7 @@ onUnmounted(() => {
168
169
@change =" (e: any) => {
169
170
rightJoystick.setProfileId(e.target.value);
170
171
rightJoystick.setModifier(PS5_JOYSTICK_CURVE[e.target.value].getModifier());
172
+ rightJoystick.setCurveValues(PS5_JOYSTICK_CURVE[rightJoystick.getProfileId()].getAdjustments().map(curve => curve.getByIndex(5)));
171
173
rightJoystickRange.disabled = Number(rightJoystick.getProfileId()) === JoystickProfileId.DEFAULT
172
174
}"
173
175
>
You can’t perform that action at this time.
0 commit comments