Added Gamepad api and xinput support.