Re: Linux joystick driver bugreport

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Pablo,

>> 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.

--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux