We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44fc690 commit 547eed3Copy full SHA for 547eed3
packages/react/xr/src/controller.tsx
@@ -50,12 +50,12 @@ export const XRControllerComponent = forwardRef<
50
51
/**
52
* Hook for subscribing to a button state change event on the controller
53
+ * @param controller the controller to listen for the event
54
* @param id of the button
55
* @param onChange callback that gets executed when the state of the button changes
- * @param handedness of the controller
56
*/
57
export function useXRControllerButtonEvent(
58
- controller: XRControllerState,
+ controller: XRControllerState | undefined,
59
id: XRControllerGamepadComponentId,
60
onChange: (state: XRControllerGamepadComponentState['state']) => void,
61
): void {
0 commit comments