On Mon, 27 Jun 2011, simon@xxxxxxxxxxxxx wrote: > 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. Or you can obtain in from debugfs (/sys/kernel/debug/hid/<device>/rdesc on most distributions) in human-readable form as well. > 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/ Or write a kernel patch/driver that will fix up the report descriptor. -- Jiri Kosina SUSE Labs -- 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