@yoda/input~ InputEvent

new InputEvent(options)

Common base class for input events.

Parameters:
Name Type Description
options object

the options to input event

Name Type Description
selectTimeout number
dbclickTimeout number
slideTimeout number
Throws:
  • selectTimeout must be a number.

    Type
    TypeError
  • dbclickTimeout must be a number.

    Type
    TypeError
  • slideTimeout must be a number.

    Type
    TypeError
  • selectTimeout must not be 0.

    Type
    Error

Extends

Methods

disconnect()

disconnect from event handler

Events

keyup

keyup event

Properties:
Name Type Description
keyCode number

the key code

keyTime number

the key time

Type:

keydown

keydown event

Properties:
Name Type Description
keyCode number

the key code

keyTime number

the key time

Type:

longpress

long press event

Properties:
Name Type Description
keyCode number

the key code

keyTime number

the key time

Type:

click

click event

Properties:
Name Type Description
keyCode number

the key code

Type:

dbclick

double click event

Properties:
Name Type Description
keyCode number

the key code

Type:

longpressed

click event

Properties:
Name Type Description
keyCode number

the key code

Type:

slide-clockwise

clockwise slide event

Properties:
Name Type Description
keyCode number

the key code

Type:

slide-counter-clockwise

counter clockwise slide event

Properties:
Name Type Description
keyCode number

the key code

Type: