Documentation / scene / IControllerMouseEvent
Interface: IControllerMouseEvent<T>
Defined in: libs/scene/src/camera/base.ts:46
Base interface for all controller mouse and pointer events.
Extends the base event with positional and button information, as well as modifier keys.
Extends
Extended by
IControllerPointerDownEventIControllerPointerUpEventIControllerPointerMoveEventIControllerPointerCancelEventIControllerWheelEvent
Type Parameters
T
T extends string
Properties
type
type:
T
Defined in: libs/scene/src/camera/base.ts:13
Event type identifier.
Inherited from
preventDefault?
optionalpreventDefault?: () =>void
Defined in: libs/scene/src/camera/base.ts:18
Optional method to cancel the default event behavior. May be provided by the event source.
Returns
void
Inherited from
ctrlKey
readonlyctrlKey:boolean
Defined in: libs/scene/src/camera/base.ts:30
Whether the Control key is pressed.
Inherited from
metaKey
readonlymetaKey:boolean
Defined in: libs/scene/src/camera/base.ts:32
Whether the Meta (Command on macOS) key is pressed.
Inherited from
shiftKey
readonlyshiftKey:boolean
Defined in: libs/scene/src/camera/base.ts:34
Whether the Shift key is pressed.
Inherited from
altKey
readonlyaltKey:boolean
Defined in: libs/scene/src/camera/base.ts:36
Whether the Alt/Option key is pressed.
Inherited from
offsetX
readonlyoffsetX:number
Defined in: libs/scene/src/camera/base.ts:48
Pointer offset along the X-axis, typically relative to the event target.
offsetY
readonlyoffsetY:number
Defined in: libs/scene/src/camera/base.ts:50
Pointer offset along the Y-axis, typically relative to the event target.
button
readonlybutton:number
Defined in: libs/scene/src/camera/base.ts:52
Mouse button index: 0 for left, 1 for middle, 2 for right, etc.