dacha
    Preparing search index...

    Interface KeyboardInputEvent

    KeyboardInputSystem dispatches it on the world when a key goes down or up. It includes the repeated keydown events of the browser.

    Event name: KeyboardInput from dacha/events.

    Hierarchy (View Summary)

    Index
    currentTarget: EventTarget

    Current event target

    key: string

    The key, as KeyboardEvent.code: KeyW, Space, ArrowUp.

    nativeEvent: KeyboardEvent

    The browser event.

    pressed: boolean

    true when the key goes down, false when it goes up.

    stopPropagation: () => void

    Function to stop the event propagation

    target: World

    Target of the event

    type: EventType

    Type of the event