@kognifai/cogsengine
    Preparing search index...

    Class Input

    Basic access to COGS Input System. Exposed as control.input

    Index

    Constructors

    • CogsInternal Initialize input.

      Parameters

      Returns Input

    Accessors

    • get hasKeyboardFocus(): boolean

      Returns true if Cogs GUI has focus for Keyboard.

      Returns boolean

    • get hasMouseFocus(): boolean

      Returns true if Cogs GUI has focus for Mouse.

      Returns boolean

    Methods

    • Check if action key enabled (pressed)

      Parameters

      • key: string

        LeftMouse, ...

      Returns boolean

      True if action active

    • Get Input Axis value (joystick o.l.)

      Parameters

      • key: string

        Right, Forward, ..

      Returns number

      Input axis value 0 if inactive

    • CogsInternal: Release in Context destroy

      Returns void