Class: InputAcceleration
A class to simulate knob acceleration on value inputs
Constructors
constructor
• new InputAcceleration(options?
, initiallyPaused?
): InputAcceleration
Ctor
Parameters
Name | Type | Default value | Description |
---|---|---|---|
options | Partial <InputAccelerationSettings > | {} | the knob acceleration settings |
initiallyPaused | boolean | false | whether the knob acceleration is initially paused |
Returns
Defined in
src/sdk/utils/controllers/InputAcceleration.ts:27
Properties
options
• Readonly
options: InputAccelerationSettings
Defined in
src/sdk/utils/controllers/InputAcceleration.ts:20
Methods
doStep
▸ doStep(): number
Does a step and returns the increment value.
Returns
number
the increment value
Defined in
src/sdk/utils/controllers/InputAcceleration.ts:53
pause
▸ pause(): void
Pauses the update loop
Returns
void
Defined in
src/sdk/utils/controllers/InputAcceleration.ts:63
resume
▸ resume(): void
Resumes the update loop
Returns
void
Defined in
src/sdk/utils/controllers/InputAcceleration.ts:68