We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1075

Summary: Fake gamepad axis events while event device readable.
Product: SDL Reporter: Sir Anthony <sergant_ant>
Component: joystickAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED WORKSFORME QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: jspradlin, sergant_ant
Version: 1.2.14   
Hardware: x86   
OS: Linux   

Description Sir Anthony 2010-11-08 07:16:36 UTC
Hello. I'm trying to write small sdl app that uses gamepad and ran into a problem.
I'm using standard loop(in attachment), but when joystick event device(as /dev/input/event5) is readable for my user(I need it for force feedback), loop always catches events from joystick from axis 0 with value like 127. I add a minimum value test with value 1000, axis 0 works correctly after it but I cannot use axis 1 because no events generated by sdl. When I disable read access to device all works normal. At first I thought that the problem in the gamepad, but I tried another and got the same result.
My system is Slackware 13.1.
Comment 1 Jen Spradlin 2011-04-12 20:09:06 UTC
Thank you for your bug report!

We're busy working on getting SDL 1.3 ready for a high quality release, and want to make sure as many things are fixed there as possible.
Could you check to see if your bug is resolved by the latest SDL 1.3 snapshot?
http://www.libsdl.org/tmp/SDL-1.3.zip

Thanks!
Comment 2 Sam Lantinga 2013-10-18 06:24:19 UTC
No response in 3 years, closing bug.