Lines Matching defs:packet
31 A packet read from the mouse data port is composed of
45 Intellimouse mice send a four byte packet, where the first three
98 //! Converts a packet received by the mouse to a "movement".
100 ps2_packet_to_movement(standard_mouse_cookie* cookie, uint8 packet[],
103 int buttons = packet[0] & 7;
104 int xDelta = ((packet[0] & 0x10) ? ~0xff : 0) | packet[1];
105 int yDelta = ((packet[0] & 0x20) ? ~0xff : 0) | packet[2];
122 yDeltaWheel = packet[3] & 0x07;
123 if (packet[3] & 0x08)
128 switch (packet[3] & 0x0F) {
138 TRACE("packet: %02x %02x %02x %02x: xd %d, yd %d, 0x%x (%d), w-xd %d, "
139 "w-yd %d\n", packet[0], packet[1], packet[2], packet[3],
166 uint8 packet[PS2_MAX_PACKET_SIZE];
182 if (packet_buffer_read(cookie->standard_mouse_buffer, packet,
188 if (!(packet[0] & 8))
191 ps2_packet_to_movement(cookie, packet, movement);
241 // packet not yet complete
245 // complete packet is assembled