Thread (4 messages) 4 messages, 3 authors, 2011-08-26

Re: Linux joystick driver bugreport

From: <hidden>
Date: 2011-06-27 20:01:33

Hi Pablo,
quoted
For device 0079:0011 DragonRise Inc. arrows buttons are mapped to axes 3
and 4.
For device 0e8f: 0002 GreenAsia Motion Inc. arrows buttons are mapped
to axes 2 and 3
This sounds like the arrows are on a D-Pad and that the D-Pad is described
as a 'HAT' in the HID descriptor, which is like a n-position dial with a
NULL state.

I have a Logitech game pad which does the same, the HID descriptor contains
--
Logical Maximum (7),
Physical Maximum (315),
Report Size (4),
Report Count (1),
Unit (Degrees),
Usage (Hat Switch), ; Hat switch (39h, dynamic value)
Input (Variable, Null State),
Unit,
--

Linux converts these '8 buttons' to a 'vector' to the edge of a circle,
hence the two extra axis.

You can use an application from DigiMend
(http://digimend.sourceforge.net/) to read the HID descriptor for your
device.


A possible work around (if you just want the use the joystick to play) is
described here:
http://hans.fugal.net/blog/2007/06/02/joystick-hat-in-x-plane-in-linux/

Cheers (and good luck),
Simon.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help