Andrew Fenn : xinput: Added the function XInputGetState with test case.