updateButtons method
Bit N maps to control N in VrControllerProfile.controls.
Implementation
void updateButtons(int bitset) {
if (bitset < 0) {
throw RangeError.value(bitset, 'bitset', 'Must not be negative.');
}
_buttonsBitset = bitset;
for (var index = 0; index < profile.controls.length; index++) {
_controls[profile.controls[index].id]?.setActive(
bitset & (1 << index) != 0,
);
}
}