Andrew Fenn : xinput: Added XInputGetCapabilities function with test case.