all repos — mgba @ 1c4b89d0f4219c1940c983b0f58ab7dbb45361ba

mGBA Game Boy Advance Emulator

Switch: Fix gyroscope orientation (fixes #1300)
Vicki Pfau vi@endrift.com
Sat, 16 Feb 2019 17:13:40 -0800
commit

1c4b89d0f4219c1940c983b0f58ab7dbb45361ba

parent

5a08abacf126476d81215c87ab499d6d25cc6c8e

2 files changed, 2 insertions(+), 1 deletions(-)

jump to
M CHANGESCHANGES

@@ -12,6 +12,7 @@ - GBA Memory: Fix a few AGBPrint crashes

- 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
M src/platform/switch/main.csrc/platform/switch/main.c

@@ -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) {