Swapping the order of the test in Xi/listdev.c that determines whether a device is a pointer or a keyboard properly detects my devices (OEM USB wireless mouse/kb combo) -- one as a keyboard and one as a pointer.
I have confirmed that querying the device shows the button state for the pointer device and the X server responds with b->down as expected for various button states. libXi receives the button state information properly as well -- however it doesn't seem to be passed through to the end application's call to XQueryDeviceState.
I have not finished investigating the cause of that problem, but I have confirmed that this is either a problem in my code or within libXi. This simple patch, fixes the detection device type problem and that is all I could find wrong in Xorg.
Swapping the order of the test in Xi/listdev.c that determines whether a device is a pointer or a keyboard properly detects my devices (OEM USB wireless mouse/kb combo) -- one as a keyboard and one as a pointer.
I have confirmed that querying the device shows the button state for the pointer device and the X server responds with b->down as expected for various button states. libXi receives the button state information properly as well -- however it doesn't seem to be passed through to the end application's call to XQueryDeviceState.
I have not finished investigating the cause of that problem, but I have confirmed that this is either a problem in my code or within libXi. This simple patch, fixes the detection device type problem and that is all I could find wrong in Xorg.