MCPcopy Create free account
hub / github.com/bberak/react-native-game-engine / TouchEvent

Interface TouchEvent

react-native-game-engine.d.ts:58–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 export type TouchEventType = 'start' | 'end' | 'move' | 'press' | 'long-press';
57
58 export interface TouchEvent {
59 event: {
60 changedTouches: Array<TouchEvent>;
61 identifier: number;
62 locationX: number;
63 locationY: number;
64 pageX: number;
65 pageY: number;
66 target: number;
67 timestamp: number;
68 touches: Array<TouchEvent>;
69 };
70 id: number;
71 type: TouchEventType;
72 delta?: {
73 locationX: number;
74 locationY: number;
75 pageX: number;
76 pageY: number;
77 timestamp: number;
78 }
79 }
80
81 interface GameLoopUpdateEventOptionType {
82 touches: TouchEvent[];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected