Skip to content

Commit b8ff7c3

Browse files
committed
Update equality check because flags
1 parent 2d01751 commit b8ff7c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/MixedRealityToolkit/Providers/BaseDeviceManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ protected virtual IMixedRealityPointer[] RequestPointers(SupportedControllerType
4747
{
4848
var pointerProfile = MixedRealityToolkit.Instance.ActiveProfile.InputSystemProfile.PointerProfile.PointerOptions[i];
4949

50-
if ((pointerProfile.ControllerType == controllerType) &&
50+
if (((pointerProfile.ControllerType & controllerType) != 0) &&
5151
(pointerProfile.Handedness == Handedness.Any || pointerProfile.Handedness == Handedness.Both || pointerProfile.Handedness == controllingHand))
5252
{
5353
var pointerObject = Object.Instantiate(pointerProfile.PointerPrefab, MixedRealityToolkit.Instance.MixedRealityPlayspace);

0 commit comments

Comments
 (0)