Class: KeyboardAxis2dBinding
Defined in: input/keyboard/bindings/keyboard-axis2d-binding.ts:18
Keyboard axis-2d input binding.
Implements
InputBinding<Axis2dAction>KeyboardAxis2dBindingArgs
Constructors
Constructor
new KeyboardAxis2dBinding(
action,northKeyCode,southKeyCode,eastKeyCode,westKeyCode):KeyboardAxis2dBinding
Defined in: input/keyboard/bindings/keyboard-axis2d-binding.ts:41
Constructs a new KeyboardAxis2dBinding.
Parameters
action
The action associated with this binding.
northKeyCode
The key code associated with the north direction.
southKeyCode
The key code associated with the south direction.
eastKeyCode
The key code associated with the east direction.
westKeyCode
The key code associated with the west direction.
Returns
KeyboardAxis2dBinding
Properties
action
readonlyaction:Axis2dAction
Defined in: input/keyboard/bindings/keyboard-axis2d-binding.ts:22
The action associated with this binding.
Implementation of
InputBinding.action
displayText
readonlydisplayText:string
Defined in: input/keyboard/bindings/keyboard-axis2d-binding.ts:32
A human-readable description of this binding.
Implementation of
InputBinding.displayText
eastKeyCode
readonlyeastKeyCode:KeyCode
Defined in: input/keyboard/bindings/keyboard-axis2d-binding.ts:28
The key code associated with the east direction.
Implementation of
KeyboardAxis2dBindingArgs.eastKeyCode
northKeyCode
readonlynorthKeyCode:KeyCode
Defined in: input/keyboard/bindings/keyboard-axis2d-binding.ts:24
The key code associated with the north direction.
Implementation of
KeyboardAxis2dBindingArgs.northKeyCode
southKeyCode
readonlysouthKeyCode:KeyCode
Defined in: input/keyboard/bindings/keyboard-axis2d-binding.ts:26
The key code associated with the south direction.
Implementation of
KeyboardAxis2dBindingArgs.southKeyCode
westKeyCode
readonlywestKeyCode:KeyCode
Defined in: input/keyboard/bindings/keyboard-axis2d-binding.ts:30
The key code associated with the west direction.