clik-engine API
    Preparing search index...

    Class InputManager

    Game-level input manager. Created once at boot and shared across all scenes. Survives scene transitions and restarts.

    Index

    Constructors

    Methods

    • Get axis values from a pair of actions.

      Parameters

      • negX: string

        Action name for negative X (left)

      • posX: string

        Action name for positive X (right)

      • OptionalnegY: string

        Action name for negative Y (up) — optional

      • OptionalposY: string

        Action name for positive Y (down) — optional

      Returns { x: number; y: number }