MCPcopy Create free account
hub / github.com/melonjs/melonJS / findAllActiveEvents

Function findAllActiveEvents

packages/melonjs/src/input/pointerevent.ts:251–264  ·  view source on GitHub ↗

* @ignore

(
	activeEventList: string[],
	eventTypes: string[],
)

Source from the content-addressed store, hash-verified

249 * @ignore
250 */
251function findAllActiveEvents(
252 activeEventList: string[],
253 eventTypes: string[],
254): string[] {
255 const events: string[] = [];
256 for (let i = 0; i < eventTypes.length; i++) {
257 const event = activeEventList.indexOf(eventTypes[i]);
258 if (event !== -1) {
259 events.push(eventTypes[i]);
260 }
261 }
262
263 return events;
264}
265
266/**
267 * @ignore

Callers 3

enablePointerEventFunction · 0.85
registerPointerEventFunction · 0.85
releasePointerEventFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected