Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ControllerStatus

The interface struct used for the controller status of any given port of the adapter in object form.

Hierarchy

  • ControllerStatus

Index

Properties

Properties

axes

axes: { cStickHorizontal: number; cStickVertical: number; mainStickHorizontal: number; mainStickVertical: number; triggerL: number; triggerR: number }

The current analog stick values. Values range from -1 to 1.

Type declaration

  • cStickHorizontal: number
  • cStickVertical: number
  • mainStickHorizontal: number
  • mainStickVertical: number
  • triggerL: number
  • triggerR: number

buttons

buttons: { buttonA: boolean; buttonB: boolean; buttonL: boolean; buttonR: boolean; buttonStart: boolean; buttonX: boolean; buttonY: boolean; buttonZ: boolean; padDown: boolean; padLeft: boolean; padRight: boolean; padUp: boolean }

Type declaration

  • buttonA: boolean
  • buttonB: boolean
  • buttonL: boolean
  • buttonR: boolean
  • buttonStart: boolean
  • buttonX: boolean
  • buttonY: boolean
  • buttonZ: boolean
  • padDown: boolean
  • padLeft: boolean
  • padRight: boolean
  • padUp: boolean

connected

connected: boolean

Whenever a controller is connected to the associated port.

port

port: number

The port number of the controller. It ranges from 1 to 4.

Generated using TypeDoc