BrushFamily.InputModel
-
Cmn
abstract class BrushFamily.InputModel
BrushFamily.InputModel.SlidingWindowModel |
An |
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 |
Public companion properties |
||
|---|---|---|
BrushFamily.InputModel |
The default |
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_MODEL: BrushFamily.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_MODEL: 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. 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.