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 7d4635a commit 0ca1341Copy full SHA for 0ca1341
packages/core/useGamepad/components/Gamepad.vue
@@ -5,7 +5,7 @@ import Controller from './Controller.vue'
5
6
const props = defineProps<{ gamepad: Gamepad }>()
7
8
-const supportsVibration = computed(() => props.gamepad.hapticActuators.length > 0)
+const supportsVibration = computed(() => props.gamepad?.hapticActuators?.length > 0)
9
function vibrate() {
10
if (supportsVibration.value) {
11
const actuator: any = props.gamepad.hapticActuators[0]
0 commit comments