all repos — mgba @ 68393718eb8b023f0ea27479615921c629c91ebc

mGBA Game Boy Advance Emulator

PSP2: Fix gyroscope direction
Jeffrey Pfau jeffrey@endrift.com
Tue, 09 Aug 2016 00:45:29 -0700
commit

68393718eb8b023f0ea27479615921c629c91ebc

parent

749a9c98c135fe39befde51f5b676dd2326aca3f

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

jump to
M CHANGESCHANGES

@@ -19,6 +19,7 @@ - PSP2: Actually load screen mode setting

- 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
M src/platform/psp2/psp2-context.csrc/platform/psp2/psp2-context.c

@@ -112,7 +112,7 @@ }

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