mirror of https://github.com/mgba-emu/mgba.git
Switch: Fix gyroscope orientation (fixes #1300)
This commit is contained in:
parent
fa6583051e
commit
8a57f9489a
1
CHANGES
1
CHANGES
|
@ -6,6 +6,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 Video: Improve sprite cycle counting (fixes mgba.io/i/1274)
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue