Contents

GCKeyboardValueChangedHandler

The signature for the block that the keyboard input profile calls when a key value changes.

Declaration

typealias GCKeyboardValueChangedHandler = (GCKeyboardInput, GCControllerButtonInput, GCKeyCode, Bool) -> Void

Parameters

  • keyboard:

    The keyboard controller profile for the physical keyboard.

  • key:

    The element for the key that changes.

  • keyCode:

    The code for the key that changes.

  • pressed:

    True if the user presses the key at the time the change occurs; otherwise, False.

See Also

Getting Change Information