st/oxr: Fix the any handiness controllers not getting assigned to right

This commit is contained in:
Jakob Bornecrantz 2020-07-20 19:33:33 +01:00
parent 9f11287fa3
commit 18957e0636

View file

@ -126,7 +126,7 @@ assign_xdev_roles(struct oxr_instance *inst)
XRT_DEVICE_TYPE_ANY_HAND_CONTROLLER) {
if (sys->role.left == XRT_DEVICE_ROLE_UNASSIGNED) {
sys->role.left = i;
} else if (sys->role.left ==
} else if (sys->role.right ==
XRT_DEVICE_ROLE_UNASSIGNED) {
sys->role.right = i;
} else {