Lox Nexus

Class: T5Buttons

Named access to the T5 button bitmask (layout confirmed on a Miniserver, see packages/ici/PROTOCOL.md).

Constructors

Constructor

new T5Buttons(mask): T5Buttons

Parameters

mask

number

OR of the button constants above

Returns

T5Buttons

Properties

LEFT_UPPER

readonly static LEFT_UPPER: 1 = 1


RIGHT_UPPER

readonly static RIGHT_UPPER: 2 = 2


MIDDLE

readonly static MIDDLE: 4 = 4


LEFT_LOWER

readonly static LEFT_LOWER: 8 = 8


RIGHT_LOWER

readonly static RIGHT_LOWER: 16 = 16


mask

readonly mask: number

OR of the button constants above

Methods

isPressed()

isPressed(button): boolean

true only if every bit of button is set

Parameters

button

number

Returns

boolean


names()

names(): string[]

names of all pressed buttons in bit order

Returns

string[]


toString()

toString(): string

"left-upper+middle", or "none"

Returns

string