Input · interface

InputCallbacks

Explained in Moving things.

interface InputCallbacks
import type { InputCallbacks } from '@driftengine/core';

Properties

NameTypeDescription
onKeyDownoptional(code: string) => void
onTouchStartoptional(touch: TouchPoint) => void
onTouchMoveoptional(touch: TouchPoint) => void
onTouchEndoptional(touch: TouchPoint, durationMs: number) => void