Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Input

example

Keyboard

entity.addComponent(Input, { onKey: onKey });
function onKey(key, down, up) {
  if (down) console.log(key + " is pressing.");
}

Hierarchy

  • Input

Implements

Index

Interfaces

Properties

Properties

Optional onKey

Return key value when detect keydown or keyup behaviuor.

memberof

Keyboard

Optional scene

scene: Entity

Optional type

type: InputTypes = InputTypes.Keyboard
default

"Keyboard"

Generated using TypeDoc