Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hotfix ts #8

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading