MCPcopy Create free account
hub / github.com/Motion-Core/motion-gpu / updatePointerState

Function updatePointerState

packages/motion-gpu/src/lib/vue/use-pointer.ts:192–246  ·  view source on GitHub ↗
(input: {
		button: number | null;
		buttons: number;
		downPx: PointerVec2 | null;
		downUv: PointerVec2 | null;
		dragging: boolean;
		inside: boolean;
		pointerId: number | null;
		pointerType: 'mouse' | 'pen' | 'touch' | null;
		pressed: boolean;
		point: {
			ndc: PointerVec2;
			px: PointerVec2;
			uv: PointerVec2;
		};
		resetDelta?: boolean;
	})

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 8

handlePointerDownFunction · 0.70
handleMoveFunction · 0.70
handleWindowMoveFunction · 0.70
releasePointerFunction · 0.70
handlePointerDownFunction · 0.50
handleMoveFunction · 0.50
handleWindowMoveFunction · 0.50
releasePointerFunction · 0.50

Calls 2

getPointerNowSecondsFunction · 0.85
requestFrameFunction · 0.70

Tested by

no test coverage detected