@egjs/axes
Version:
A module used to change the information of user action entered by various input devices such as touch screen or mouse into the logical virtual coordinates. You can easily create a UI that responds to user actions.
23 lines (22 loc) • 780 B
TypeScript
import { InputEventType, ExtendedEvent } from "../types";
import { EventInput } from "./EventInput";
export declare class TouchEventInput extends EventInput {
readonly start: string[];
readonly move: string[];
readonly end: string[];
private _baseTouches;
onEventStart(event: InputEventType, inputKey?: string[]): ExtendedEvent;
onEventMove(event: InputEventType, inputKey?: string[]): ExtendedEvent;
onEventEnd(event: InputEventType): void;
onRelease(): void;
getTouches(event: InputEventType): number;
protected _getScale(event: TouchEvent): number;
protected _getCenter(event: TouchEvent): {
x: number;
y: number;
};
protected _getMovement(event: TouchEvent): {
x: number;
y: number;
};
}