API Reference > imodeljs-frontend > Tools > BeTouchEvent BeTouchEvent Class A ButtonEvent generated by touch input. Extends BeButtonEvent Implements BeTouchEventProps Methods Name Description constructor(props: BeTouchEventProps): BeTouchEvent setFrom(src: BeTouchEvent): BeTouchEvent Copy the values from another BeButtonEvent into this BeButtonEvent findTouchById(list: TouchList, id: number): undefined | Touch Static getTouchListCentroid(list: TouchList, vp: ScreenViewport): undefined | Point2d Static getTouchPosition(touch: Touch, vp: ScreenViewport): Point2d Static Inherited methods Name Inherited from Description clone(): BeTouchEvent BeButtonEvent Make a copy of this BeButtonEvent. init(props: BeButtonEventProps): void BeButtonEvent Initialize the values of this BeButtonEvent. invalidate(): void BeButtonEvent Mark this BeButtonEvent as invalid. Properties Name Type Description isDoubleTap Accessor ReadOnly boolean isSingleTap Accessor ReadOnly boolean isSingleTouch Accessor ReadOnly boolean isTwoFingerTap Accessor ReadOnly boolean isTwoFingerTouch Accessor ReadOnly boolean tapCount number touchCount Accessor ReadOnly number touchEvent TouchEvent Inherited properties Name Type Inherited from Description button BeButton BeButtonEvent The mouse button that created this event. coordsFrom CoordSource BeButtonEvent How the coordinate values were generated (either from an action by the user or from a program.) inputSource InputSource BeButtonEvent Whether this event came from a pointing device (e.g. isAltKey Accessor ReadOnly boolean BeButtonEvent Determine whether the alt key was pressed isControlKey Accessor ReadOnly boolean BeButtonEvent Determine whether the control key was pressed isDoubleClick boolean BeButtonEvent If true, this is the second down in a rapid double-click of the same button. isDown boolean BeButtonEvent If true, this event was generated from a mouse-down transition, false from a button-up transition. isDragging boolean BeButtonEvent If true, this event was created by pressing, holding, and then moving a mouse button. isShiftKey Accessor ReadOnly boolean BeButtonEvent Determine whether the shift key was pressed isValid Accessor ReadOnly boolean BeButtonEvent Determine whether this BeButtonEvent has valid data. keyModifiers BeModifierKeys BeButtonEvent The keyboard modifiers that were pressed when the event was generated. point Accessor Point3d BeButtonEvent The point for this event, in world coordinates. rawPoint Accessor Point3d BeButtonEvent The raw (unadjusted) point for this event, in world coordinates. viewPoint Accessor Point3d BeButtonEvent The point, in screen coordinates for this event. viewport undefined | ScreenViewport BeButtonEvent The ScreenViewport from which this BeButtonEvent was generated. Defined in core/frontend/src/tools/Tool.ts Line 230 Last Updated: 12 June, 2024