Skip to content

Commit

Permalink
Fix incorrect accelerometer axes for right Joy-Con
Browse files Browse the repository at this point in the history
  • Loading branch information
JibbSmart committed Sep 14, 2020
1 parent c232127 commit 3d2eb8f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions JoyShockLibrary/InputHelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,9 @@ bool handle_input(JoyShock *jc, uint8_t *packet, int len, bool &hasIMU) {
jc->imu_state.gyroY = -jc->imu_state.gyroY;
jc->imu_state.gyroZ = -jc->imu_state.gyroZ;

jc->imu_state.accelX = -jc->imu_state.accelX;
jc->imu_state.accelY = -jc->imu_state.accelY;

}

// pro controller:
Expand Down

0 comments on commit 3d2eb8f

Please sign in to comment.