Another addition for raw events in XI 2.1. Though the libXi interface has a sourceid field, that field is always 0 because the protocol is missing the bit to send it down the wire. So in 2.1, replace one of the padding fields in the event struct with the source device ID. Cheers, Peter