| Summary: | Bad axes recognition | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Mauricio Coto <mcoto800> |
| Component: | joystick | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | critical | ||
| Priority: | P2 | CC: | danygradilla, markus.s |
| Version: | 1.2.14 | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
|
Description
Mauricio Coto
2010-08-08 18:53:08 UTC
Same here but not with a PS3 guitar. When I press on the d-pad of my game controller, any application that uses SDL immediately crashes with a segfault. Extreme TuxRacer prints: %%% etracer warning: joystick y axis mapped to axis 1 but joystick only has 1 axes Segmentation fault # jstest /dev/input/js0 Driver version is 2.1.0. Joystick (PS2700 Rumble Pad) has 7 axes (X, Y, Z, Rx, Rz, Hat0X, Hat0Y) and 13 buttons (Trigger, ThumbBtn, ThumbBtn2, TopBtn, TopBtn2, PinkieBtn, BaseBtn, BaseBtn2, BaseBtn3, BaseBtn4, BaseBtn5, BaseBtn6, BtnDead). Testing ... (interrupt to exit) Axes: 0:-32767 1:-32767 2:-32767 3:-32767 4:-32767 5: 0 6: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off 8:off 9:off 10:off 11:off 12:off This problem occurs with the Linux Input Event Interface or whatever it's called. If I chmod 0000 the corresponding /dev/input/event* files for my gamepads, SDL uses the old /dev/input/js* and works fine. Might want to check the code for handling that part. Ok, found the problem. The fix was commited long ago by Sam Latinga, but there hasn't been a new release of SDL 1.2, so those using the latest release (1.2.14) are having problems. We need a new release!! Here is the patch that fixed it: http://hg.libsdl.org/SDL/rev/42012a6afb5b |