fake-input-accelerometer: Don't start with an undefined orientation
This data will likely be available already.
This commit is contained in:
@@ -293,6 +293,12 @@ int main (int argc, char **argv)
|
|||||||
ret = 1;
|
ret = 1;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Start with the 'normal' orientation */
|
||||||
|
data->accel_x = 0;
|
||||||
|
data->accel_y = ONEG;
|
||||||
|
data->accel_z = 0;
|
||||||
|
|
||||||
send_uinput_event (data);
|
send_uinput_event (data);
|
||||||
keyboard_usage ();
|
keyboard_usage ();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user