KeyboardKey

One key on a BGE.UI.Keyboard.

Properties

  • label (string)
  • kind (BGE.UI.KeyboardKeyKind)
  • char (integer) — Character code a char or space key types.
  • width (float) — Width in grid units (a letter is 1).
  • targetPage (integer) — Page index a page key switches to.

Constructor

new KeyboardKey( label: string, kind: BGE.UI.KeyboardKeyKind, width?: float, ): KeyboardKey

Parameters

  • label (string) — text drawn on the key
  • kind (BGE.UI.KeyboardKeyKind)
  • width (float, optional, default: "1.0") — width in grid units