Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

Hierarchy

  • Device

Index

Constructors

constructor

  • new Device<TStroke>(_context: External, id: number): Device<TStroke>

Properties

Readonly id

id: number

Accessors

context

  • get context(): External

Methods

getFilter

  • getFilter(): Filter

getHardwareId

  • getHardwareId(): null | string

getPrecedence

  • getPrecedence(): number
  • Gets the precedence (priority) set for this device.

    Returns number

isInvalid

  • isInvalid(): boolean

isKeyboard

isMouse

receive

  • receive(): null | TStroke

send

  • send(stroke: TStroke): boolean
  • Parameters

    • stroke: TStroke

    Returns boolean

setPrecedence

  • setPrecedence(precedence: number): void
  • Sets the precedence (priority) wanted for this device.

    Parameters

    • precedence: number

    Returns void

toString

  • toString(): string

Generated using TypeDoc