Skip to content

Commit 59b1a2e

Browse files
committed
Fix WebXRControllerModel visual buttons and axis actions
1 parent 9e003f0 commit 59b1a2e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Packages/webxr-interactions/Runtime/InputSystem/WebXRControllerModel.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -253,22 +253,22 @@ void InitVisualActions()
253253
case Handedness.Left:
254254
buttonActions[0] = actions.XRLeftHand.Trigger;
255255
buttonActions[1] = actions.XRLeftHand.Grip;
256-
buttonActions[2] = actions.XRLeftHand.ThumbstickPressed;
257-
buttonActions[3] = actions.XRLeftHand.TouchpadPressed;
256+
buttonActions[2] = actions.XRLeftHand.TouchpadPressed;
257+
buttonActions[3] = actions.XRLeftHand.ThumbstickPressed;
258258
buttonActions[4] = actions.XRLeftHand.ButtonA;
259259
buttonActions[5] = actions.XRLeftHand.ButtonB;
260-
axisActions[0] = actions.XRLeftHand.Thumbstick;
261-
axisActions[1] = actions.XRLeftHand.Touchpad;
260+
axisActions[0] = actions.XRLeftHand.Touchpad;
261+
axisActions[1] = actions.XRLeftHand.Thumbstick;
262262
break;
263263
case Handedness.Right:
264264
buttonActions[0] = actions.XRRightHand.Trigger;
265265
buttonActions[1] = actions.XRRightHand.Grip;
266-
buttonActions[2] = actions.XRRightHand.ThumbstickPressed;
267-
buttonActions[3] = actions.XRRightHand.TouchpadPressed;
266+
buttonActions[2] = actions.XRRightHand.TouchpadPressed;
267+
buttonActions[3] = actions.XRRightHand.ThumbstickPressed;
268268
buttonActions[4] = actions.XRRightHand.ButtonA;
269269
buttonActions[5] = actions.XRRightHand.ButtonB;
270-
axisActions[0] = actions.XRRightHand.Thumbstick;
271-
axisActions[1] = actions.XRRightHand.Touchpad;
270+
axisActions[0] = actions.XRRightHand.Touchpad;
271+
axisActions[1] = actions.XRRightHand.Thumbstick;
272272
break;
273273
}
274274

0 commit comments

Comments
 (0)