dacha
    Preparing search index...

    Class KeyboardControl

    Binds keys to events on the actor. KeyboardControlSystem dispatches the bound event when the key goes down or up.

    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]: {
            pressed?: KeyboardEventBind;
            released?: KeyboardEventBind;
        };
    }

    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.