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
readonlystaticLEFT_UPPER:1=1
RIGHT_UPPER
readonlystaticRIGHT_UPPER:2=2
MIDDLE
readonlystaticMIDDLE:4=4
LEFT_LOWER
readonlystaticLEFT_LOWER:8=8
RIGHT_LOWER
readonlystaticRIGHT_LOWER:16=16
mask
readonlymask: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