mirror of https://github.com/mgba-emu/mgba.git
PSP2: Fix accelerometer range
This commit is contained in:
parent
ef742cb128
commit
15477688d7
1
CHANGES
1
CHANGES
|
@ -13,6 +13,7 @@ Bugfixes:
|
||||||
- PSP2: Fix VSync
|
- PSP2: Fix VSync
|
||||||
- ARM7: Fix decoding of Thumb ADD (variants 5 and 6)
|
- ARM7: Fix decoding of Thumb ADD (variants 5 and 6)
|
||||||
- GBA Serialize: Savestates now properly store prefetch
|
- GBA Serialize: Savestates now properly store prefetch
|
||||||
|
- PSP2: Fix accelerometer range
|
||||||
Misc:
|
Misc:
|
||||||
- 3DS: Use blip_add_delta_fast for a small speed improvement
|
- 3DS: Use blip_add_delta_fast for a small speed improvement
|
||||||
- OpenGL: Log shader compilation failure
|
- OpenGL: Log shader compilation failure
|
||||||
|
|
|
@ -103,12 +103,12 @@ static void _sampleRotation(struct mRotationSource* source) {
|
||||||
|
|
||||||
static int32_t _readTiltX(struct mRotationSource* source) {
|
static int32_t _readTiltX(struct mRotationSource* source) {
|
||||||
struct mSceRotationSource* rotation = (struct mSceRotationSource*) 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) {
|
static int32_t _readTiltY(struct mRotationSource* source) {
|
||||||
struct mSceRotationSource* rotation = (struct mSceRotationSource*) 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) {
|
static int32_t _readGyroZ(struct mRotationSource* source) {
|
||||||
|
|
Loading…
Reference in New Issue