Options
All
  • Public
  • Public/Protected
  • All
Menu

Class JoyStick

Hierarchy

  • JoyStick

Implements

Index

Constructors

constructor

  • Returns JoyStick

Properties

isPressed

isPressed: any

keys

keys: string[]

Optional onchangesw

onchangesw: undefined | ((pressed: boolean) => void)

Optional onchangex

onchangex: undefined | ((val: number) => void)

Optional onchangey

onchangey: undefined | ((val: number) => void)

params

params: any

pinname

pinname: any

pins

pins: any

positionX

positionX: any

positionY

positionY: any

requiredKeys

requiredKeys: string[]

shortName

shortName: any

Methods

getXWait

  • getXWait(): Promise<number>
  • Returns Promise<number>

getYWait

  • getYWait(): Promise<number>
  • Returns Promise<number>

isPressedWait

  • isPressedWait(): Promise<boolean>
  • Returns Promise<boolean>

wired

  • wired(obniz: Obniz): void
  • Parameters

    Returns void

Static info

  • Returns ObnizPartsInfo

Generated using TypeDoc