1 | import type { Instance } from '../../setup';
|
2 | import { pointerKey, PointerPosition } from './shared';
|
3 | declare type PointerInit = {
|
4 | pointerId: number;
|
5 | pointerType: string;
|
6 | isPrimary: boolean;
|
7 | };
|
8 | export declare class Pointer {
|
9 | constructor({ pointerId, pointerType, isPrimary }: PointerInit);
|
10 | readonly pointerId: number;
|
11 | readonly pointerType: string;
|
12 | readonly isPrimary: boolean;
|
13 | isMultitouch: boolean;
|
14 | isCancelled: boolean;
|
15 | isDown: boolean;
|
16 | isPrevented: boolean;
|
17 | position: PointerPosition;
|
18 | init(instance: Instance, position: PointerPosition): this;
|
19 | move(instance: Instance, position: PointerPosition): {
|
20 | leave: () => void;
|
21 | enter: () => void;
|
22 | move: () => void;
|
23 | } | undefined;
|
24 | down(instance: Instance, _keyDef: pointerKey): void;
|
25 | up(instance: Instance, _keyDef: pointerKey): void;
|
26 | release(instance: Instance): void;
|
27 | private getTarget;
|
28 | private getEventInit;
|
29 | }
|
30 | export {};
|