roblambell / XboxOneController

libusb-win32 XInput Wrapper for the Xbox One Controller
http://controllermax.com/forums/showthread.php?t=142531
Apache License 2.0
29 stars 7 forks source link

WarThunder crash #2

Closed Liryna closed 10 years ago

Liryna commented 10 years ago

WarThunder is freezing and crashing with the driver.

The call that I can see succeed XInputGetState XInputSetState XInputGetCapabilities And it stop.

I guess that he don't like the data we give from XInputGetCapabilities. I found that on x360ce, they are different (https://code.google.com/p/x360ce/source/browse/trunk/x360ce/x360ce/x360ce.cpp?spec=svn499&r=499). Are we sure of them ? For exemple, do we really need XINPUT_CAPS_VOICE_SUPPORTED, the value of sThumbLX should be 0x8000 (as I can see from the documentation and the value from Sample App)?

I have tried to changed the values but without succeed.

Here is my log: http://pastebin.com/88p5vwz5

roblambell commented 10 years ago

I think the output of XInputGetCapabilities needs reviewing. It was put in very quickly just so that it was included. I'm downloading the game now too.

Liryna commented 10 years ago

Cool ! I have the same probleme with Waves (http://store.steampowered.com/app/107600/). The strange things it is that it work BUT it slow down the client a LOT. As I can see on my log the function "updateState" dont always return.

Liryna commented 10 years ago

usb_interrupt_read return a "Connection timed out"

Liryna commented 10 years ago

Ok....It is normal that the client is slow if the timeout of usb_interrupt_read is 5000 ms. I have try with 1 (because 0 == infinity) and the client of waves work perfectly.