lkml.org 
[lkml]   [2002]   [Jul]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 13:27    [W:0.042 / U:0.144 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site