HelenOS sources

PS2_BUTTON_MASK   296 uspace/drv/hid/ps2mouse/ps2mouse.c 			const bool status = (packet[0] & PS2_BUTTON_MASK(i));
PS2_BUTTON_MASK   358 uspace/drv/hid/ps2mouse/ps2mouse.c 			[0] = packet[0] & PS2_BUTTON_MASK(0),
PS2_BUTTON_MASK   359 uspace/drv/hid/ps2mouse/ps2mouse.c 			[1] = packet[0] & PS2_BUTTON_MASK(1),
PS2_BUTTON_MASK   360 uspace/drv/hid/ps2mouse/ps2mouse.c 			[2] = packet[0] & PS2_BUTTON_MASK(2),
HelenOS homepage, sources at GitHub