Skip to content

Commit

Permalink
fixed mobile axes being flipped
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintSampo committed Feb 27, 2024
1 parent 6acbb3f commit ec96055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ function createMobileAxisAgent() {
let xScaled = 127
if (currentPos.x != 0) xScaled = Math.round((currentPos.x / (parent.offsetWidth * maxDiffScale) + 1) * (255 / 2));

return { axis0: yScaled, axis1: xScaled, axis2: 127, axis3: 127 };
return { axis0: xScaled, axis1: yScaled, axis2: 127, axis3: 127 };
}

return {
Expand Down

0 comments on commit ec96055

Please sign in to comment.