dino-ge
    Preparing search index...

    Class default

    Handles mouse and keyboard input events.

    Index

    Constructors

    Accessors

    Methods

    • Adds a global click listener that will be called when the canvas is clicked.

      Parameters

      • listener: (pos: default) => void

        The function to run when a click occurs.

      Returns void

    • Checks if a specific key is currently held down.

      Parameters

      • key: string

        The key to check (e.g., 'w', 'ArrowUp', ' ').

      Returns boolean