From 9cb2ddcb3c034b42a6da31b73869aa010465702f Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sun, 29 Sep 2013 06:59:32 +0200 Subject: [PATCH] Invert Y axis Negative is now away from the player, positive towards the player, as this seems to be what apps expect. --- wiimote-pad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wiimote-pad.c b/wiimote-pad.c index 837ef71..9bdca94 100644 --- a/wiimote-pad.c +++ b/wiimote-pad.c @@ -201,7 +201,7 @@ static void wiimote_key(struct wiimote_dev *dev, struct xwii_event const *ev) static void wiimote_accel(struct wiimote_dev *dev, struct xwii_event const *ev) { iev[11].value = -(ev->v.abs[0].y); - iev[12].value = ev->v.abs[0].x; + iev[12].value = -(ev->v.abs[0].x); CLIP_AXIS(iev[11].value); CLIP_AXIS(iev[12].value); -- 2.32.0.93.g670b81a890