InputDisplay

Extends: DebugWindow

Debug window showing every player's input: by default one picture per player - a Roku remote or a gamepad - with every held button highlighted and stick positions shown, or one line of text per player (see mode).

Properties

  • mode (BGE.Debug.InputDisplayMode) — Pictures or text - see BGE.Debug.InputDisplayMode
  • diagramScale (float) — Size multiplier for the pictures

Constructor

new InputDisplay(game: BGE.Game): InputDisplay

Parameters


Instance Methods

onInput(input: BGE.GameInput): void

Parameters

Returns

  • void

toggleMode(): void

Switches between pictures and text.

Returns

  • void

onUpdate(dt: float): void

Parameters

  • dt (float)

Returns

  • void

draw(parent?: BGE.UI.UiWidget): void

Parameters

  • parent (BGE.UI.UiWidget, optional, default: "invalid")

Returns

  • void