Switch: Fix gyroscope orientation (fixes #1300)

This commit is contained in:
Vicki Pfau 2019-02-16 17:13:40 -08:00
parent 5a08abacf1
commit 1c4b89d0f4
2 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,7 @@ Bugfixes:
- GBA Memory: Fix OOB ROM reads showing up as AGBPrint memory
- GB Serialize: Fix loading states with negative pixel x (fixes mgba.io/i/1293)
- Qt: Fix audio context holding onto closed game controller
- Switch: Fix gyroscope orientation (fixes mgba.io/i/1300)
Misc:
- GBA Savedata: EEPROM performance fixes
- GBA Savedata: Automatically map 1Mbit Flash files as 1Mbit Flash

View File

@ -463,7 +463,7 @@ int32_t _readGyroZ(struct mRotationSource* source) {
UNUSED(source);
SixAxisSensorValues sixaxis;
hidSixAxisSensorValuesRead(&sixaxis, CONTROLLER_P1_AUTO, 1);
return sixaxis.gyroscope.z * 1.1e9f;
return sixaxis.gyroscope.z * -1.1e9f;
}
static int _batteryState(void) {