id property

int id
final

The id that is used to report a button press or release to the terminal.

Mouse wheel up / down use button IDs 4 = 0100 (binary) and 5 = 0101 (binary). The bits three and four of the button are transposed by 64 and 128 respectively, when reporting the id of the button and have have to be adjusted correspondingly.

Implementation

final int id;