From bc742f8aa983c02b5e77fe7ae0f6bbe6b9562951 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Thu, 18 Feb 2016 21:50:25 -0800 Subject: [PATCH] Wii: Fix tilting direction --- CHANGES | 1 + src/platform/wii/main.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 7558df95f..ebdfdf9a0 100644 --- a/CHANGES +++ b/CHANGES @@ -5,6 +5,7 @@ Bugfixes: - 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 diff --git a/src/platform/wii/main.c b/src/platform/wii/main.c index cf35ff13e..793d04043 100644 --- a/src/platform/wii/main.c +++ b/src/platform/wii/main.c @@ -736,8 +736,8 @@ void _sampleRotation(struct GBARotationSource* 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;