mirror of https://github.com/mgba-emu/mgba.git
Libretro: Fix backwards, oversensitive accelerometer (fixes #2635)
This commit is contained in:
parent
d95d982ba3
commit
550866fcac
|
@ -1359,8 +1359,8 @@ static void _updateRotation(struct mRotationSource* source) {
|
|||
gyroZ = 0;
|
||||
_initSensors();
|
||||
if (tiltEnabled) {
|
||||
tiltX = sensorGetCallback(0, RETRO_SENSOR_ACCELEROMETER_X) * 3e8f;
|
||||
tiltY = sensorGetCallback(0, RETRO_SENSOR_ACCELEROMETER_Y) * -3e8f;
|
||||
tiltX = sensorGetCallback(0, RETRO_SENSOR_ACCELEROMETER_X) * -2e8f;
|
||||
tiltY = sensorGetCallback(0, RETRO_SENSOR_ACCELEROMETER_Y) * 2e8f;
|
||||
}
|
||||
if (gyroEnabled) {
|
||||
gyroZ = sensorGetCallback(0, RETRO_SENSOR_GYROSCOPE_Z) * -1.1e9f;
|
||||
|
|
Loading…
Reference in New Issue