BufferedKeys.fromBuffer constructor
Creates a new buffered keys instance using the provided buffer
.
The class expects that the buffer will be updated by the caller.
Each combination of key codes is represented as a tuple of up to six
integers, set from left to right, with every unset key code set to 0
.
For example, the key code for the 'A' key is 0x41
:
const aKey = 0x41;
const bufferedKeys = BufferedKeys.fromBuffer({(aKey, 0, 0, 0, 0, 0)});
To represent a combination of key codes, such as 'Ctrl+C':
const ctrlKey = 0x1D;
const cKey = 0x43;
const bufferedKeys = BufferedKeys.fromBuffer({(ctrlKey, cKey, 0, 0, 0, 0)});
Implementation
factory BufferedKeys.fromBuffer(
Set<(int, int, int, int, int, int)> buffer,
) = _SyncBufferedKeys;