dacha
    Preparing search index...

    Class MouseControl

    Binds mouse events to events on the actor. MouseControlSystem dispatches the bound event when the mouse event happens anywhere in the game window. It does not check whether the pointer is over the actor.

    Hierarchy (View Summary)

    Index
    actor?: Actor

    The actor that has this component. It is undefined until the component is added to an actor.

    inputEventBindings: { [key: string]: Record<string, MouseEventBind> }

    Input event bindings

    • Returns the component of the same class on the parent actor.

      Returns Component<object> | undefined

      The component, or undefined if the actor has no parent actor or the parent has no such component.