Class CompoundClickHelper

A class that mixes multiple BaseClickHelper instances into one. Useful if you want a widget to be both clickable by a pointer and by the enter key

Hierarchy (view full)

Constructors

Properties

_clickState: ClickState = ClickState.Released
clickHelpers: BaseClickHelper[]

The BaseClickHelper instances being mixed

refs: number = 0

Accessors

Methods

  • Start listening to all ClickHelpers events. Must be called when a widget that uses this CompoundClickHelper is attached to the UI tree (handleAttachment).

    Returns void

  • Stop listening to all ClickHelpers events. Must be called when a widget that uses this CompoundClickHelper is detached from the UI tree (handleDetachment).

    Returns void