[PATCH 2/2] xinput: Reimplement XInputGetCapabilities.