Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/core/useGamepad/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export function useGamepad(options: UseGamepadOptions = {}) {

const stateFromGamepad = (gamepad: Gamepad) => {
const hapticActuators = []
const vibrationActuator = 'vibrationActuator' in gamepad ? (gamepad as any).vibrationActuator : null
const vibrationActuator = 'vibrationActuator' in gamepad ? (gamepad as Gamepad).vibrationActuator : null

if (vibrationActuator)
hapticActuators.push(vibrationActuator)
Expand Down