fake-input-accelerometer: Don't start with an undefined orientation

This data will likely be available already.
This commit is contained in:
Bastien Nocera
2015-05-19 22:22:28 +02:00
parent b3626c9bac
commit 68ea66b6ca

View File

@@ -293,6 +293,12 @@ int main (int argc, char **argv)
ret = 1;
goto out;
}
/* Start with the 'normal' orientation */
data->accel_x = 0;
data->accel_y = ONEG;
data->accel_z = 0;
send_uinput_event (data);
keyboard_usage ();