[please subscribe to the list: http://lists.alioth.debian.org/mailman/listinfo/libhid-discuss ]

On Sep 2, 2009, at 11:26 PM, William Good wrote:

                     Item(Local ): Usage Minimum, data= [ 0x01 ] 1
                                             Button 1 (Primary)
                     Item(Local ): Usage Maximum, data= [ 0x18 ] 24
                                            (null)
                     Item(Global): Logical Minimum, data= [ 0x00 ] 0
                     Item(Global): Logical Maximum, data= [ 0x01 ] 1
                     Item(Global): Report Size, data= [ 0x01 ] 1
                     Item(Global): Report Count, data= [ 0x18 ] 24
                     Item(Main ): Input, data= [ 0x02 ] 2
Data Variable Absolute No_Wrap Linear Preferred_State No_Null_Position Non_Volatile Bitfield

I am not too familiar with game controllers, but I think this would mean 4 bytes (24 bits / 8 bits-per-byte).

The support for arrays of buttons in libhid is not that great, either. If you are using Linux (which the output tends to imply), then you might be interested in the kernel input API.

_______________________________________________
libhid-discuss mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/libhid-discuss
http://libhid.alioth.debian.org/

Reply via email to