BrushFamily.InputModel


Known direct subclasses
BrushFamily.InputModel.SlidingWindowModel

An InputModel that averages nearby inputs together within a sliding time window.


Specifies a model for turning a sequence of raw hardware inputs (e.g. from a stylus, touchscreen, or mouse) into a sequence of smoothed, modeled inputs. Raw hardware inputs tend to be noisy, and must be smoothed before being passed into a brush's behaviors and extruded into a mesh in order to get a good-looking stroke.

Summary

Nested types

An InputModel that averages nearby inputs together within a sliding time window.

Public companion properties

BrushFamily.InputModel

The default InputModel that will be used by a BrushFamily when none is specified.

Cmn
BrushFamily.InputModel

A naive input model that passes raw inputs through unchanged, performing only base-minimal modeling to derive velocity and acceleration values for the modeled inputs.

Cmn

Public companion properties

DEFAULT_INPUT_MODEL

val DEFAULT_INPUT_MODELBrushFamily.InputModel

The default InputModel that will be used by a BrushFamily when none is specified. Currently, this is the SlidingWindowModel, with default parameters.

PASSTHROUGH_MODEL

val PASSTHROUGH_MODELBrushFamily.InputModel

A naive input model that passes raw inputs through unchanged, performing only base-minimal modeling to derive velocity and acceleration values for the modeled inputs. This can be useful as a point of comparison for other input models, or for callers who wish to do their own input modeling prior to passing inputs into Ink.