joystick button events sent too many times
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu |
New
|
Undecided
|
Unassigned |
Bug Description
I have the following code snippet that no longer works as it did previously:
struct js_event js; int jsfd = -1;
if((jsfd = open("/
while(1) {
if(
if (js.type=
if(js.value == 1) printf("button press\n");
if(js.value == 0) printf("button released\n");
}
}
}
}
This used to print one press/release pair for each button press, but now it prints many.
I have a USB joystick, specifically, the EMS PS2 to USB adapter (http://
I've found perhaps related information at Kerneltrap here: http://
A better description is provided by Paul Zaremba at Kerneltrap: http:// kerneltrap. org/node/ 2199#comment- 230816
His comment:
I have an EMS USB II (two port PS2->USB converter, usb id 0b43:0003) that worked perfectly a few months ago. Ever since I upgraded to Ubuntu Feisty with kernel 2.6.20-15 it is detected as a 4 axis 16 button joystick instead of an 8 axis 32 button joystick. It appears the dual ports are sharing the axes and buttons. Of course, this makes the device useless since the axis/button status are constantly changing according to /dev/input/js0.