fix XInput performance bug
more XI/DI tweaking
Merge branch 'xinput-perf-fix' into xinput-autoconf