The mapping from XInput button mask to the standard X event button mask is not 1...
[freeglut] / include /
drwxr-xr-x   ..
drwxr-xr-x - GL