ClassInput & Controls@public
FlxGamepadManager
Fixed-step Web Gamepad poller with reconnect-stable logical IDs.
ts
export declare class FlxGamepadManagerConstructors
ts
constructor(provider?: FlxGamepadProvider)Constructs a new instance of the FlxGamepadManager class
| Parameter | Type | Description |
|---|---|---|
provider | FlxGamepadProvider | - |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
connected | readonly | readonly FlxGamepad[] | - |
firstActive | readonly | FlxGamepad | null | - |
Methods
destroy()
ts
destroy(): voidReturns: void
getByID()
ts
getByID(uid: number): FlxGamepad | nullParameters:
| Parameter | Type | Description |
|---|---|---|
uid | number | - |
Returns: FlxGamepad | null
getByIndex()
ts
getByIndex(index: number): FlxGamepad | nullParameters:
| Parameter | Type | Description |
|---|---|---|
index | number | - |
Returns: FlxGamepad | null
playback()
ts
playback(records: readonly FlxGamepadFrameRecord[]): voidParameters:
| Parameter | Type | Description |
|---|---|---|
records | readonly FlxGamepadFrameRecord[] | - |
Returns: void
record()
ts
record(): FlxGamepadFrameRecord[]Returns: FlxGamepadFrameRecord[]
reset()
ts
reset(): voidReturns: void
update()
ts
update(): voidReturns: void