Type interface
Defines an interface for a keyboar option object.
These are used when controlling draggable elements with keyboard arrows.
Inheritance
IKeyboardOptions does not extend any other symbol.
IKeyboardOptions is not extended by any other symbol.
Properties
|
accelleration # |
Type A multiplication factor for move speed growth per second For example if the initial speed is 10px/s (0.01px/ms) and accelleration is 0.5, pressing and holding arrow key will make the element move at 10px/s, then will accellerate to 15px/s after 1s, and so on. |
|---|---|
|
accellerationDelay # |
Type Number of milliseconds before accelleration kicks in. |
|
speed # |
Type Number of pixels to move per millisecond. |