Extra X Input 2 Samples
X Input Headers and Protocol
XI2.h defines the XI2 event constants, event types, and event masks.
XInput2.h defines the XI2 data structs and functions. Your application only needs to include this header since XI2.h is included in this file.
xorgproto stores the latest XI2 protocol. If you are interested in how the protocol structs are defined, please take a look at XI2proto.h. This header file is only useful to libXi. Do not include it in your code.