dacha
    Preparing search index...

    Interface MouseInputEvent

    MouseInputSystem dispatches it on the world for every mouse event in the game window.

    Event name: MouseInput from dacha/events.

    Hierarchy (View Summary)

    Index
    button: number

    The mouse button: 0 is left, 1 is middle, 2 is right.

    currentTarget: EventTarget

    Current event target

    eventType: string

    The browser event type, such as mousedown or mousemove.

    nativeEvent: MouseEvent

    The browser event.

    screenX: number

    The pointer position in pixels, relative to the window element.

    screenY: number

    The pointer position in pixels, relative to the window element.

    stopPropagation: () => void

    Function to stop the event propagation

    target: World

    Target of the event

    type: EventType

    Type of the event

    x: number

    The pointer position in world coordinates.

    y: number

    The pointer position in world coordinates.