Closed Ledzz closed 2 months ago
gamepad
is part of the XRControllerState and not its own XRInputSource
so you mean it should be like this?
export type XRInputSourceState = XRInputSourceStateMap[keyof XRInputSourceStateMap] & { gamepad: XRControllerGamepadState};
gamepad is only loaded on the XRController and its already on the XRControllerState
see here:
https://github.com/pmndrs/xr/blob/0b5d334e5b726368b5cf79d5f22cd8bd963425e3/packages/xr/src/input.ts#L35
Aw, I get it, I confused types.Thank you!
The types are not including gamepad (however it shows up in console).