KeyboardInfo

This class is used to store keyboard related info for the onKeyboardObservable event.

Hierarchy

Index

Constructors

Properties

Constructors

constructor

Find examples in Playground
  • new KeyboardInfo(type: number, event: KeyboardEvent): KeyboardInfo
  • Instantiates a new keyboard info. This class is used to store keyboard related info for the onKeyboardObservable event.

    Parameters

    • type: number

      Defines the type of event (BABYLON.KeyboardEventTypes)

    • event: KeyboardEvent

      Defines the related dom event

    Returns KeyboardInfo

Properties

event

Find examples in Playground
event: KeyboardEvent

Defines the related dom event

type

Find examples in Playground
type: number

Defines the type of event (BABYLON.KeyboardEventTypes)

Generated using TypeDoc