Contents

setStateFrom(_:)

Copies the input values from a specified extended gamepad to a snapshot of an extended gamepad.

Declaration

func setStateFrom(_ extendedGamepad: GCExtendedGamepad)

Parameters

  • extendedGamepad:

    The extended gamepad to copy the input values from.

Discussion

If this extended gamepad isn’t a snapshot, this method does nothing. A snapshot is a copy of a controller at a moment in time that has element values you can set.

See Also

Setting snapshot values