ChannelEvents

Event Class ByteCode Parent Class
MOUSE_LMBD 0x01 Left mouse button down
MOUSE_LMBU 0x02 Left mouse button up
MOUSE_RMBD 0x04 Right mouse button down
MOUSE_RMBU 0x08 Right mouse button up
KEY_PRESSED 0x10 Key pressed (non-unicode)
KEY_UNICODE 0x20 Key pressed with unicode (TEXT_INPUT)
KEY_RELEASED 0x40 Key released
MOUSE_MOTION 0x80 Mouse motion
MOUSE_WHEEL 0x100 Mouse wheel
CHANNEL_QUIT 0x200 Quit event
KEY_MODIFIER 0x01 Enable next byte as modifier
KEY_SHIFT 0x02 Shift key
KEY_CONTROL 0x04 Control key
KEY_ALT 0x08 Alt key
KEY_QUIT 0x10 Quit flag
KEY_CAPS 0x20 Caps Lock active
KEY_NUM 0x40 Num Lock active
KEY_REPEAT 0x80 Key repeat event
KEY_FUNCTION 0x01 Function key
KEY_SCROLL 0x02 Scroll Lock active
USER_ChannelEvent0 0x0004 Bit 2
USER_ChannelEvent1 0x0008 Bit 3
USER_ChannelEvent2 0x0010 Bit 4
USER_ChannelEvent3 0x0020 Bit 5
USER_ChannelEvent4 0x0040 Bit 6
USER_ChannelEvent5 0x0080 Bit 7
USER_ChannelEvent6 0x0100 Bit 8
USER_ChannelEvent7 0x0200 Bit 9
System_ChannelEvent0 0x0400 Bit 10
System_ChannelEvent1 0x0800 Bit 11
TYPE_MASK 0xF800000000000000 Bits 59-63 (5 bits)
X_MASK 0x07FF800000000000 Bits 46-58 (13 bits)
Y_MASK 0x00007FF800000000 Bits 33-45 (13 bits)
KEYCODE_MASK 0x00000007FC000000 Bits 23-32 (10 bits)
EXT_MODS_MASK 0x0000000007800000 Bits 19-22 (4 bits)
MODS_MASK 0x00000000007F8000 Bits 11-18 (8 bits)
USER_FLAGS_MASK 0x0000000000007FC0 Bits 2-10 (9 bits)
BUTTON_MASK 0x0000000000000003 Bits 0-1