excalibur
Version:
Excalibur.js is a simple JavaScript game engine with TypeScript bindings for making 2D games in HTML5 Canvas. Our mission is to make web game development as simple as possible.
19 lines (18 loc) • 725 B
TypeScript
import { GlobalCoordinates } from '../Math/global-coordinates';
import { Vector } from '../Math/vector';
import { PointerButton } from './PointerButton';
import { PointerType } from './PointerType';
export declare class PointerEvent {
type: 'down' | 'up' | 'move' | 'cancel';
pointerId: number;
button: PointerButton;
pointerType: PointerType;
coordinates: GlobalCoordinates;
nativeEvent: Event;
active: boolean;
cancel(): void;
get pagePos(): Vector;
get screenPos(): Vector;
get worldPos(): Vector;
constructor(type: 'down' | 'up' | 'move' | 'cancel', pointerId: number, button: PointerButton, pointerType: PointerType, coordinates: GlobalCoordinates, nativeEvent: Event);
}