all repos — mgba @ 3c50adc0257bd8bfec508f93062f833b9997ef30

mGBA Game Boy Advance Emulator

Wii: Fix tilting direction
Jeffrey Pfau jeffrey@endrift.com
Thu, 18 Feb 2016 21:50:25 -0800
commit

3c50adc0257bd8bfec508f93062f833b9997ef30

parent

fec583d9b27a8b07eb5e53441971c7c8d9a07ed1

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

jump to
M CHANGESCHANGES

@@ -7,6 +7,7 @@ - Qt: Fix sending gameStopped twice

- Qt: Fix hang if audio sync is enabled and audio fails to initialize - GBA BIOS: Fix RegisterRamReset setting DISPCNT to the wrong value - OpenGL: Correct boolean vector strcmp strings for uniforms + - Wii: Fix tilting direction Misc: - GBA: Slightly optimize GBAProcessEvents - Qt: Add preset for DualShock 4
M src/platform/wii/main.csrc/platform/wii/main.c

@@ -739,8 +739,8 @@ UNUSED(source);

vec3w_t accel; WPAD_Accel(0, &accel); // These are swapped - tiltX = (accel.y - 0x1EA) << 22; - tiltY = (accel.x - 0x1EA) << 22; + tiltX = (0x1EA - accel.y) << 22; + tiltY = (0x1EA - accel.x) << 22; // This doesn't seem to work at all with -TR remotes struct expansion_t exp;