Skip to content

@ralphschuler.webgl shader factory.<internal>.Gamepad

github-actions edited this page Nov 26, 2023 · 1 revision

Interface: Gamepad

@ralphschuler/webgl-shader-factory.<internal>.Gamepad

This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id. Available only in secure contexts.

MDN Reference

Table of contents

Properties

Properties

axes

Readonly axes: readonly number[]

MDN Reference

Defined in

node_modules/typescript/lib/lib.dom.d.ts:8673


buttons

Readonly buttons: readonly GamepadButton[]

MDN Reference

Defined in

node_modules/typescript/lib/lib.dom.d.ts:8675


connected

Readonly connected: boolean

MDN Reference

Defined in

node_modules/typescript/lib/lib.dom.d.ts:8677


hapticActuators

Readonly hapticActuators: readonly GamepadHapticActuator[]

MDN Reference

Defined in

node_modules/typescript/lib/lib.dom.d.ts:8679


id

Readonly id: string

MDN Reference

Defined in

node_modules/typescript/lib/lib.dom.d.ts:8681


index

Readonly index: number

MDN Reference

Defined in

node_modules/typescript/lib/lib.dom.d.ts:8683


mapping

Readonly mapping: GamepadMappingType

MDN Reference

Defined in

node_modules/typescript/lib/lib.dom.d.ts:8685


timestamp

Readonly timestamp: number

MDN Reference

Defined in

node_modules/typescript/lib/lib.dom.d.ts:8687


vibrationActuator

Readonly vibrationActuator: null | GamepadHapticActuator

Defined in

node_modules/typescript/lib/lib.dom.d.ts:8688

Typescript Libraries

Modules

Namespaces

Clone this wiki locally