Messages in this thread | | | Date | Tue, 9 Jul 2002 18:38:41 +0200 | From | Vojtech Pavlik <> | Subject | Re: joystick.c |
| |
On Tue, Jul 09, 2002 at 10:21:44AM +0000, Piotr Sawuk wrote:
> Sorry if I'm off-topic here, since I don't read this list. > also when replying please send me a copy... > > in function js_correct(value,corr) I've found the instructions: > > if (value < -32767) return -32767; > if (value > 32767) return 32767; > > what's the use of these? I'm asking because my new usb-joystick > is returning those values somewhere in the middle of it's threshold > and I was wondering if disabling the above would do any good?
The data coming from the joystick is defined to be bound by this range. It's signed 16 bit anyway.
> however, the actual reason why I've looked into that file was > because wine reported strange joystick-events 6,7,8,9 and I > just can't figure out what those are supposed to do. I've found > JS_EVENT 1 and 2 in the linux/joystick.h include, but no mention > of anything related to the number '6'. does anyone know anything > about those joystick events?
What joystick is it? This looks like a problem with the HID driver.
-- Vojtech Pavlik SuSE Labs - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |