all repos — mgba @ 15477688d7d5df7199e0af97e6e07ebfce0ee500

mGBA Game Boy Advance Emulator

PSP2: Fix accelerometer range
Jeffrey Pfau jeffrey@endrift.com
Mon, 01 Aug 2016 23:59:14 -0700
commit

15477688d7d5df7199e0af97e6e07ebfce0ee500

parent

ef742cb1282b13ae4a1df471c38e1445424e60e8

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

jump to
M CHANGESCHANGES

@@ -13,6 +13,7 @@ - PSP2: Fix GPU crash while exiting

- PSP2: Fix VSync - ARM7: Fix decoding of Thumb ADD (variants 5 and 6) - GBA Serialize: Savestates now properly store prefetch + - PSP2: Fix accelerometer range 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

@@ -103,12 +103,12 @@ }

static int32_t _readTiltX(struct mRotationSource* source) { struct mSceRotationSource* rotation = (struct mSceRotationSource*) source; - return rotation->state.accelerometer.x * 0x60000000; + return rotation->state.accelerometer.x * 0x30000000; } static int32_t _readTiltY(struct mRotationSource* source) { struct mSceRotationSource* rotation = (struct mSceRotationSource*) source; - return rotation->state.accelerometer.y * 0x60000000; + return rotation->state.accelerometer.y * -0x30000000; } static int32_t _readGyroZ(struct mRotationSource* source) {