From b2936ea4fcc0183abf0a87ee66f8e9873fde94af Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Fri, 2 Dec 2016 12:31:26 +0100 Subject: [PATCH] test: Correct vectors used by fake accelerometer --- src/fake-input-accelerometer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/fake-input-accelerometer.c b/src/fake-input-accelerometer.c index 084306a..a0d2861 100644 --- a/src/fake-input-accelerometer.c +++ b/src/fake-input-accelerometer.c @@ -199,21 +199,21 @@ check_keyboard (GIOChannel *source, switch (buf[0]) { case 'u': data->accel_x = 0; - data->accel_y = ONEG; + data->accel_y = -ONEG; data->accel_z = 0; break; case 'd': data->accel_x = 0; - data->accel_y = -ONEG; + data->accel_y = ONEG; data->accel_z = 0; break; case 'l': - data->accel_x = -ONEG; + data->accel_x = ONEG; data->accel_y = 0; data->accel_z = 0; break; case 'r': - data->accel_x = ONEG; + data->accel_x = -ONEG; data->accel_y = 0; data->accel_z = 0; break;