Skip to content

Commit 3ebb0f0

Browse files
authored
Merge pull request #8 from steffalon/fix/6-unable-to-set-response-curves-stick-sensitivity
hotfix ts
2 parents 32f7130 + 192288e commit 3ebb0f0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/components/profile/ProfileOverview.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ const getProfiles = inject('getProfiles') as Function;
2525
2626
db.getAll().then((profiles: Array<ProfileModel>) => savedProfiles.value = profiles.map((profileEntry: any) => {
2727
28-
const joystickLeft = new Joystick(PS5_JOYSTICK_CURVE[profileEntry.leftJoystick.profileId].getProfileId(), profileEntry.leftJoystick.adjustments);
29-
const joystickRight = new Joystick(PS5_JOYSTICK_CURVE[profileEntry.rightJoystick.profileId].getProfileId(), profileEntry.rightJoystick.adjustments);
28+
const joystickLeft = new Joystick(PS5_JOYSTICK_CURVE[profileEntry.leftJoystick.profileId].getProfileId(), profileEntry.leftJoystick.adjustments, PS5_JOYSTICK_CURVE[profileEntry.leftJoystick.profileId].getModifier());
29+
const joystickRight = new Joystick(PS5_JOYSTICK_CURVE[profileEntry.rightJoystick.profileId].getProfileId(), profileEntry.rightJoystick.adjustments, PS5_JOYSTICK_CURVE[profileEntry.rightJoystick.profileId].getModifier());
3030
3131
joystickLeft.setCurveValues(profileEntry.leftJoystick.curveValues);
3232
joystickRight.setCurveValues(profileEntry.rightJoystick.curveValues);

src/helper/profileTools.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ export function generateId(): string {
1111

1212
export function assembleBlankProfile(label: string = "Unnamed"): Profile {
1313

14-
const joystick_l = new Joystick(PS5_JOYSTICK_CURVE[0x00].getProfileId(), PS5_JOYSTICK_CURVE[0x00].getAdjustments());
14+
const joystick_l = new Joystick(PS5_JOYSTICK_CURVE[0x00].getProfileId(), PS5_JOYSTICK_CURVE[0x00].getAdjustments(), PS5_JOYSTICK_CURVE[0x00].getModifier());
1515
joystick_l.setCurveValues([0, 0, 0, 0, 0, 0]);
1616

17-
const joystick_r = new Joystick(PS5_JOYSTICK_CURVE[0x00].getProfileId(), PS5_JOYSTICK_CURVE[0x00].getAdjustments());
17+
const joystick_r = new Joystick(PS5_JOYSTICK_CURVE[0x00].getProfileId(), PS5_JOYSTICK_CURVE[0x00].getAdjustments(), PS5_JOYSTICK_CURVE[0x00].getModifier());
1818
joystick_r.setCurveValues([0, 0, 0, 0, 0, 0]);
1919

2020
return new Profile(

0 commit comments

Comments
 (0)