I want to access a Logitech Dual Action game pad via libusb.  When
I examine this device connected to a Mac, the HIDExplorer shows
15 "elements" and indeed there are 15 controls (button or joy stick
axis).  Setting the explorer to each and pressing/moving it shows
just the output one would expect (buttons go from 0 to 1 and a joystick
axis goes from 0 to 255 with 127 being the center).  So far so good.

But on linux a lsusb of this device does not seem to show anything
similar.  I see no entry where there are 15 of anything.  So I'm
looking for pointers as to how to access the various buttons etc via
libusb.  lsusb shows:

Bus 005 Device 004: ID 046d:c216 Logitech Inc.
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 Interface
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x046d Logitech Inc.
  idProduct          0xc216
  bcdDevice            1.25
  iManufacturer           1 Logitech
  iProduct                2 Logitech Dual Action
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           34
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x80
    MaxPower               30mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Devices
      bInterfaceSubClass      0 No Subclass
      bInterfaceProtocol      0 None
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.10
          bCountryCode            0
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      88
cannot get report descriptor
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               none
        wMaxPacketSize          6
        bInterval              10
  Language IDs: (length=4)
     0409 English(US)



-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to