@awayjs/scene
Version:
AwayJS scene classes
55 lines • 1.82 kB
TypeScript
import { ContainerNode, IContainer } from '@awayjs/view';
import { PointerEvent } from './PointerEvent';
/**
* A touchEvent is dispatched when a touch event occurs over a touchEnabled object in View.
* TODO: we don't have screenZ data, tho this should be easy to implement
*/
export declare class TouchEvent extends PointerEvent {
/**
* Defines the value of the type property of a touchOver3d event object.
*/
static TOUCH_OVER: string;
/**
* Defines the value of the type property of a touchOut3d event object.
*/
static TOUCH_OUT: string;
/**
* Defines the value of the type property of a rollOver3d event object.
*/
static TOUCH_ROLL_OVER: string;
/**
* Defines the value of the type property of a rollOut3d event object.
*/
static TOUCH_ROLL_OUT: string;
/**
* Defines the value of the type property of a touchUp3d event object.
*/
static TOUCH_END: string;
/**
* Defines the value of the type property of a touchDown3d event object.
*/
static TOUCH_BEGIN: string;
/**
* Defines the value of the type property of a touchMove3d event object.
*/
static TOUCH_MOVE: string;
/**
* Defines the value of the type property of a click3d event object.
*/
static TOUCH_TAP: string;
/**
* Unique identifier of associated touchPoint
*/
touchPointID: number;
/**
* Create a new touchEvent object.
* @param type The type of the touchEvent.
*/
constructor(type: string);
/**
* Creates a copy of the touchEvent object and sets the value of each property to match that of the original.
*/
clone(): TouchEvent;
_dispatchEvent(dispatcher: ContainerNode, target: IContainer): void;
}
//# sourceMappingURL=TouchEvent.d.ts.map