From eeb52e40274a8240fe066a16b93d9d46c4b677b9 Mon Sep 17 00:00:00 2001 From: Eric Warmenhoven Date: Fri, 24 Jan 2025 11:43:28 -0500 Subject: [PATCH] libretro: change accelerometer values to be same as for switch --- src/platform/libretro/libretro.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform/libretro/libretro.c b/src/platform/libretro/libretro.c index 48d92f6dd..ea05cac05 100644 --- a/src/platform/libretro/libretro.c +++ b/src/platform/libretro/libretro.c @@ -1386,8 +1386,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;