BeButtonEvent Class
Object sent to Tools that holds information about button/touch/wheel events.
Extended by
Implements
Methods
| Name | Description | |
|---|---|---|
| constructor(props?: BeButtonEventProps): BeButtonEvent | ||
| clone(): this | Make a copy of this BeButtonEvent. | |
| init(props: BeButtonEventProps): void | Initialize the values of this BeButtonEvent. | |
| invalidate(): void | Mark this BeButtonEvent as invalid. | |
| setFrom(src: BeButtonEvent): this | Copy the values from another BeButtonEvent into this BeButtonEvent |
Properties
| Name | Type | Description | |
|---|---|---|---|
| button | BeButton | The mouse button that created this event. | |
| coordsFrom | CoordSource | How the coordinate values were generated (either from an action by the user or from a program.) | |
| inputSource | InputSource | Whether this event came from a pointing device (e.g. | |
| isAltKey Accessor ReadOnly | boolean | Determine whether the alt key was pressed | |
| isControlKey Accessor ReadOnly | boolean | Determine whether the control key was pressed | |
| isDoubleClick | boolean | If true, this is the second down in a rapid double-click of the same button. | |
| isDown | boolean | If true, this event was generated from a mouse-down transition, false from a button-up transition. | |
| isDragging | boolean | If true, this event was created by pressing, holding, and then moving a mouse button. | |
| isShiftKey Accessor ReadOnly | boolean | Determine whether the shift key was pressed | |
| isValid Accessor ReadOnly | boolean | Determine whether this BeButtonEvent has valid data. | |
| keyModifiers | BeModifierKeys | The keyboard modifiers that were pressed when the event was generated. | |
| point Accessor | Point3d | The point for this event, in world coordinates. | |
| point Setter | point(pt: Point3d): void | The point for this event, in world coordinates. | The point for this event, in world coordinates. |
| rawPoint Accessor | Point3d | The raw (unadjusted) point for this event, in world coordinates. | |
| rawPoint Setter | rawPoint(pt: Point3d): void | The raw (unadjusted) point for this event, in world coordinates. | |
| viewPoint Accessor | Point3d | The point, in screen coordinates for this event. | |
| viewPoint Setter | viewPoint(pt: Point3d): void | The point, in screen coordinates for this event. | The point, in screen coordinates for this event. |
| viewport | ScreenViewport | undefined | The ScreenViewport from which this BeButtonEvent was generated. |
Defined in
- core/frontend/src/tools/Tool.ts Line 148
Last Updated: 28 October, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.