Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 1.52 KB

three-story-controls.keyboardadaptorprops.md

File metadata and controls

24 lines (16 loc) · 1.52 KB

Home > three-story-controls > KeyboardAdaptorProps

KeyboardAdaptorProps interface

Properties that can be passed to the KeyboardAdaptor constructor

Signature:

export interface KeyboardAdaptorProps 

Properties

Property Type Description
dampingFactor? number (Optional) Only used for continuous adaptor, value between 0 and 1. Defaults to 0.5
incrementor? number (Optional) Only used for continuous adaptor, the amount to increment the target value on each keydown event. Defaults to 1
keyMapping? KeyMapping (Optional) Default key mapping uses forward/backward/up/down/left/right as semanic labels, with WASD and arrow keys mapped appropriately:
preventBubbling? boolean (Optional) Prevent event bubbling. Defaults to true
type KeyboardAdaptorType 'discrete' or 'continuous'