Skip to content

WindowTouch

Overview

Type WindowTouch

A listener for common button usage, providing the fire() method/callback and helpful properties. NOTE that it doesn't need to be an actual button (or look like a button), this is useful whenever that type of "fire" behavior is helpful.

For example usage, see scenery/examples/input.html. Usually you can just pass a fire callback and things work.

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

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

Touch

Source Code

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