Class: KeyboardAxis1dBinding
Defined in: input/keyboard/bindings/keyboard-axis1d-binding.ts:14
Keyboard axis-1d input binding.
Implements
InputBinding<Axis1dAction>KeyboardAxis1dBindingArgs
Constructors
Constructor
new KeyboardAxis1dBinding(
action,positiveKeyCode,negativeKeyCode):KeyboardAxis1dBinding
Defined in: input/keyboard/bindings/keyboard-axis1d-binding.ts:31
Constructs a new KeyboardAxis1dBinding.
Parameters
action
The action associated with this binding.
positiveKeyCode
The key code for the positive direction.
negativeKeyCode
The key code for the negative direction.
Returns
KeyboardAxis1dBinding
Properties
action
readonlyaction:Axis1dAction
Defined in: input/keyboard/bindings/keyboard-axis1d-binding.ts:18
The action associated with this binding.
Implementation of
InputBinding.action
displayText
readonlydisplayText:string
Defined in: input/keyboard/bindings/keyboard-axis1d-binding.ts:24
A human-readable description of this binding.
Implementation of
InputBinding.displayText
negativeKeyCode
readonlynegativeKeyCode:KeyCode
Defined in: input/keyboard/bindings/keyboard-axis1d-binding.ts:22
The key code associated with the negative direction.
Implementation of
KeyboardAxis1dBindingArgs.negativeKeyCode
positiveKeyCode
readonlypositiveKeyCode:KeyCode
Defined in: input/keyboard/bindings/keyboard-axis1d-binding.ts:20
The key code associated with the positive direction.