Skip to content

Commit

Permalink
Merge pull request #8 from steffalon/fix/6-unable-to-set-response-cur…
Browse files Browse the repository at this point in the history
…ves-stick-sensitivity

hotfix ts
  • Loading branch information
steffalon authored Feb 4, 2024
2 parents 32f7130 + 192288e commit 3ebb0f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/profile/ProfileOverview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ const getProfiles = inject('getProfiles') as Function;
db.getAll().then((profiles: Array<ProfileModel>) => savedProfiles.value = profiles.map((profileEntry: any) => {
const joystickLeft = new Joystick(PS5_JOYSTICK_CURVE[profileEntry.leftJoystick.profileId].getProfileId(), profileEntry.leftJoystick.adjustments);
const joystickRight = new Joystick(PS5_JOYSTICK_CURVE[profileEntry.rightJoystick.profileId].getProfileId(), profileEntry.rightJoystick.adjustments);
const joystickLeft = new Joystick(PS5_JOYSTICK_CURVE[profileEntry.leftJoystick.profileId].getProfileId(), profileEntry.leftJoystick.adjustments, PS5_JOYSTICK_CURVE[profileEntry.leftJoystick.profileId].getModifier());
const joystickRight = new Joystick(PS5_JOYSTICK_CURVE[profileEntry.rightJoystick.profileId].getProfileId(), profileEntry.rightJoystick.adjustments, PS5_JOYSTICK_CURVE[profileEntry.rightJoystick.profileId].getModifier());
joystickLeft.setCurveValues(profileEntry.leftJoystick.curveValues);
joystickRight.setCurveValues(profileEntry.rightJoystick.curveValues);
Expand Down
4 changes: 2 additions & 2 deletions src/helper/profileTools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ export function generateId(): string {

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

const joystick_l = new Joystick(PS5_JOYSTICK_CURVE[0x00].getProfileId(), PS5_JOYSTICK_CURVE[0x00].getAdjustments());
const joystick_l = new Joystick(PS5_JOYSTICK_CURVE[0x00].getProfileId(), PS5_JOYSTICK_CURVE[0x00].getAdjustments(), PS5_JOYSTICK_CURVE[0x00].getModifier());
joystick_l.setCurveValues([0, 0, 0, 0, 0, 0]);

const joystick_r = new Joystick(PS5_JOYSTICK_CURVE[0x00].getProfileId(), PS5_JOYSTICK_CURVE[0x00].getAdjustments());
const joystick_r = new Joystick(PS5_JOYSTICK_CURVE[0x00].getProfileId(), PS5_JOYSTICK_CURVE[0x00].getAdjustments(), PS5_JOYSTICK_CURVE[0x00].getModifier());
joystick_r.setCurveValues([0, 0, 0, 0, 0, 0]);

return new Profile(
Expand Down

0 comments on commit 3ebb0f0

Please sign in to comment.