d/vive: reset orientation on headset button

This commit is contained in:
Drew DeVault 2019-11-06 10:40:26 -05:00
parent 1f02c54858
commit 4c7f830ea5

View file

@ -260,6 +260,7 @@ vive_mainboard_decode_message(struct vive_device *d,
if (d->board.button != report->button) {
d->board.button = report->button;
VIVE_SPEW(d, "Button %d.", report->button);
d->rot_filtered = (struct xrt_quat){0, 0, 0, 1};
}
}