Skip to content

Commit

Permalink
libretro: change accelerometer values to be same as for switch
Browse files Browse the repository at this point in the history
  • Loading branch information
warmenhoven committed Jan 24, 2025
1 parent 0dce3b1 commit 7f20e53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platform/libretro/libretro.c
Original file line number Diff line number Diff line change
Expand Up @@ -2571,8 +2571,8 @@ static void _updateRotation(struct mRotationSource* source) {
gyroZ = 0;
_initSensors();
if (tiltEnabled) {
tiltX = sensorGetCallback(0, RETRO_SENSOR_ACCELEROMETER_X) * -2e8f;
tiltY = sensorGetCallback(0, RETRO_SENSOR_ACCELEROMETER_Y) * 2e8f;
tiltX = sensorGetCallback(0, RETRO_SENSOR_ACCELEROMETER_X) * 3e8f;
tiltY = sensorGetCallback(0, RETRO_SENSOR_ACCELEROMETER_Y) * -3e8f;
}
if (gyroEnabled) {
gyroZ = sensorGetCallback(0, RETRO_SENSOR_GYROSCOPE_Z) * -5.5e8f;
Expand Down

0 comments on commit 7f20e53

Please sign in to comment.