From 68393718eb8b023f0ea27479615921c629c91ebc Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Tue, 9 Aug 2016 00:45:29 -0700 Subject: [PATCH] PSP2: Fix gyroscope direction --- CHANGES | 1 + src/platform/psp2/psp2-context.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index d0b7ebc38..f9ae51f5b 100644 --- a/CHANGES +++ b/CHANGES @@ -19,6 +19,7 @@ Bugfixes: - Qt: Fix bug in software renderer scaling - Debugger: Fix GDB breakpoints - Wii: Fix framelimiting after a slowdown + - PSP2: Fix gyroscope direction Misc: - 3DS: Use blip_add_delta_fast for a small speed improvement - OpenGL: Log shader compilation failure diff --git a/src/platform/psp2/psp2-context.c b/src/platform/psp2/psp2-context.c index 1dc2fb1da..5f698d059 100644 --- a/src/platform/psp2/psp2-context.c +++ b/src/platform/psp2/psp2-context.c @@ -112,7 +112,7 @@ static int32_t _readTiltY(struct mRotationSource* source) { static int32_t _readGyroZ(struct mRotationSource* source) { struct mSceRotationSource* rotation = (struct mSceRotationSource*) source; - return rotation->state.gyro.z * 0x10000000; + return rotation->state.gyro.z * -0x10000000; } static void _setRumble(struct mRumble* rumble, int enable) {