Keyboard

.Input. Keyboard

Type Definitions

CursorKeys

Since:
  • 3.0.0
Properties:
Name Type Description
up Phaser.Input.Keyboard.Key 映射到向上箭头键的键对象.
down Phaser.Input.Keyboard.Key 映射到向下箭头键的键对象.
left Phaser.Input.Keyboard.Key 映射到左箭头键的键对象.
right Phaser.Input.Keyboard.Key 映射到右箭头键的键对象.
space Phaser.Input.Keyboard.Key 映射到空格键的键对象.
shift Phaser.Input.Keyboard.Key 映射到SHIFT键的键对象.
Type:
  • object

KeyboardKeydownCallback(event)

Since:
  • 3.0.0
Parameters:
Name Type Description
event KeyboardEvent The Keyboard Event.

KeyComboConfig

Since:
  • 3.0.0
Properties:
Name Type Attributes Default Description
resetOnWrongKey boolean <optional>
true 如果他们按错了键,我们要重设密码吗?
maxKeyDelay number <optional>
0 每次按键之间的最大延迟(毫秒).在此之上,组合被重置.0表示禁用.
resetOnMatch boolean <optional>
false 如果以前匹配,他们再次按下组合的第一个键,它会复位吗?
deleteOnMatch boolean <optional>
false 如果组合框匹配,会自动删除吗?
Type:
  • object