Skip to content

TInputListener

Overview

The main type interface for input listeners.

Refer to Input.ts for documentation on the event types.

@author Jonathan Olson <jonathan.olson@colorado.edu>

Type TInputListener

import type { TInputListener } from 'scenerystack/scenery';

Type SceneryListenerFunction

import type { SceneryListenerFunction } from 'scenerystack/scenery';

( event: SceneryEvent<T> ) => void

Type SceneryNullableListenerFunction

import type { SceneryNullableListenerFunction } from 'scenerystack/scenery';

( event: SceneryEvent<T> | null ) => void

Type SupportedEventTypes

Exclude all but the actual browser events

import type { SupportedEventTypes } from 'scenerystack/scenery';

keyof StrictOmit<TInputListener, 'interrupt' | 'cursor' | 'listener' | 'createPanTargetBounds'>

Source Code

See the source for TInputListener.ts in the scenery repository.