@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.
22 lines (21 loc) • 788 B
TypeScript
import { InputEventType, ExtendedEvent } from "../types";
import { EventInput } from "./EventInput";
export declare class MouseEventInput extends EventInput {
readonly start: string[];
readonly move: string[];
readonly end: string[];
onEventStart(event: InputEventType, inputKey?: string[], inputButton?: string[]): ExtendedEvent;
onEventMove(event: InputEventType, inputKey?: string[], inputButton?: string[]): ExtendedEvent;
onEventEnd(): void;
onRelease(): void;
getTouches(event: InputEventType, inputButton?: string[]): number;
protected _getScale(): number;
protected _getCenter(event: MouseEvent): {
x: number;
y: number;
};
protected _getMovement(event: MouseEvent): {
x: number;
y: number;
};
}