| Summary: | application hangs during joystick / pad autodetection | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Carlos Hoyos <karlos1982> |
| Component: | joystick | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED WORKSFORME | QA Contact: | Sam Lantinga <slouken> |
| Severity: | major | ||
| Priority: | P1 | ||
| Version: | 1.2.10 | ||
| Hardware: | x86 | ||
| OS: | Windows (All) | ||
|
Description
Carlos Hoyos
2006-06-21 13:30:11 UTC
If you run the game in the debugger, what call is it hanging in? Is there any chance you could send it to me so I can check it out? I'm one of the devs on the super mario war project. This sounds like when you are using the gamepad or holding left or down on the joystick, that the SDL_PollEvent() method is continually giving me back events so I enter into a loop to keep reading the events and never continue with the game loop. Have you tried debugging this at all? SDL should be ignoring duplicate events within a certain jitter threshold. Is the driver returning wild values? If you can't figure it out and want to loan me the joystick, I'll be happy to take a look. Bumping some bugs' priorities to P1 for consideration before the 1.2.12 release (though some may not be resolved for 1.2.12). --ryan. (In reply to comment #3) > Have you tried debugging this at all? SDL should be ignoring duplicate events > within a certain jitter threshold. Is the driver returning wild values? > > If you can't figure it out and want to loan me the joystick, I'll be happy to > take a look. > Hi! I'm not the game developer, just an user. I can download the source code from the game and compile it with Visual Studio to test the Pad in the debugger, but I'm not used to work with devices and I would like to know where can I look the values that the driver returns (I guess you get them from a function, but that function might be getting them wrong, I don't know). If I don't find anything this week, I can loan you the Pad if you are from Europe, and you pay the shipping costs to send it back to me (I pay the costs to send it to you). It's not the best deal, so I'll see what can I do with what I have. Thanks! Carlos. Can you try with the pre-release SDL DLL: http://www.libsdl.org/tmp/SDL-1.2.12-win32.zip (In reply to comment #6) > Can you try with the pre-release SDL DLL: > http://www.libsdl.org/tmp/SDL-1.2.12-win32.zip > I've tested with the pre-release DLL you posted. Games hangs as long as the joystick (a wingman 2-axis, but also happens with other Pads and joysticks I have) is on the lowermost right corner. If Joystick is left untouched, the character moves to the left. If moving right, the character just stops moving left. I tested it on various games to make sure it was not game dependant. I've past the last week been trying to compile on VC6 (the only compiler I have right now) ANY program that handled joystick input on SDL, without luck. I keep getting @#!" Linking errors related to wxWidgets and such (which I installed following a @#!" WxWidgets tutorial that wasted two days of my life). It's very frustrating. If you can debug it, you can look in SDL_SYS_JoystickUpdate() and see what values are being returned (in particular paying attention to JOY_AXIS_THRESHOLD.) Have you calibrated your joysticks using the Windows control panel? No response in almost 2 years, closing this for now. Please reopen if this is still active in SDL 1.3. |