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

Function process

src/DefaultTouchProcessor.js:90–102  ·  view source on GitHub ↗
(type, event)

Source from the content-addressed store, hash-verified

88
89 return {
90 process(type, event) {
91 switch (type) {
92 case "start":
93 touchStart.next(event);
94 break;
95 case "move":
96 touchMove.next(event);
97 break;
98 case "end":
99 touchEnd.next(event);
100 break;
101 }
102 },
103 end() {
104 subscriptions.forEach(x => x.unsubscribe());
105 touchStart.unsubscribe();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected