I've got a USB joystick that I'm having lots of trouble with. The
buttons all work fine but the directional input is problematic. I think
the problem is that he X/Y axes send values of 0 for Left/Up, +127 for
Center, and +255 for Right/Down; however, the range of the joystick is
detected as being from -127 to +127, and +255 gets interpreted as -1.

I've tested this with several kernels, inlcuding the latest stable
(2.4.14.3). I've also tested it in Windows 2000 where it behaves properly.

TIA,
Garron



from evtest:

Input driver version is 1.0.0
Input device ID: bus 0x3 vendor 0xfafa product 0x1 version 0x0
Input device name: "GGG GP-Wiz"
Supported events:
  Event type 0 (Reset)
    Event code 0 (Reset)
    Event code 1 (Key)
    Event code 3 (Absolute)
  Event type 1 (Key)
    Event code 288 (Trigger)
    Event code 289 (ThumbBtn)
    Event code 290 (ThumbBtn2)
    Event code 291 (TopBtn)
    Event code 292 (TopBtn2)
    Event code 293 (PinkieBtn)
    Event code 294 (BaseBtn)
    Event code 295 (BaseBtn2)
    Event code 296 (BaseBtn3)
    Event code 297 (BaseBtn4)
    Event code 298 (BaseBtn5)
    Event code 299 (BaseBtn6)
    Event code 300 (?)
    Event code 301 (?)
    Event code 302 (?)
    Event code 303 (BtnDead)
    Event code 304 (BtnA)
    Event code 305 (BtnB)
    Event code 306 (BtnC)
    Event code 307 (BtnX)
    Event code 308 (BtnY)
    Event code 309 (BtnZ)
    Event code 310 (BtnTL)
    Event code 311 (BtnTR)
    Event code 312 (BtnTL2)
    Event code 313 (BtnTR2)
    Event code 314 (BtnSelect)
    Event code 315 (BtnStart)
  Event type 3 (Absolute)
    Event code 0 (X)
      Value    127
      Min     -127
      Max      127
      Flat      15
    Event code 1 (Y)
      Value    127
      Min     -127
      Max      127
      Flat      15
Testing ... (interrupt to exit)
Event: time 1133192705.152276, type 3 (Absolute), code 0 (X), value 0
Event: time 1133192705.152283, type 0 (Reset), code 0 (Reset), value 0
Event: time 1133192705.504261, type 3 (Absolute), code 0 (X), value 127
Event: time 1133192705.504267, type 0 (Reset), code 0 (Reset), value 0
Event: time 1133192710.336027, type 3 (Absolute), code 0 (X), value -1
Event: time 1133192710.336034, type 0 (Reset), code 0 (Reset), value 0
Event: time 1133192714.687817, type 3 (Absolute), code 0 (X), value 127
Event: time 1133192714.687823, type 0 (Reset), code 0 (Reset), value 0
Event: time 1133192717.943663, type 3 (Absolute), code 1 (Y), value 0
Event: time 1133192717.943670, type 0 (Reset), code 0 (Reset), value 0
Event: time 1133192718.647629, type 3 (Absolute), code 1 (Y), value 127
Event: time 1133192718.647635, type 0 (Reset), code 0 (Reset), value 0
Event: time 1133192719.119607, type 3 (Absolute), code 1 (Y), value -1
Event: time 1133192719.119614, type 0 (Reset), code 0 (Reset), value 0
Event: time 1133192719.511589, type 3 (Absolute), code 1 (Y), value 127
Event: time 1133192719.511595, type 0 (Reset), code 0 (Reset), value 0

(Each directional movement produces 2 lines of output. The lines above
correspond to: Left, Center, Right, Center, Up, Center, Down, Center.)



from /proc/bus/usb/devices (some known USB devices omitted):

T:  Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 3
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.12.5 ohci_hcd
S:  Product=nVidia Corporation nForce2 USB Controller (#2)
S:  SerialNumber=0000:00:02.1
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms

T:  Bus=03 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#=  3 Spd=1.5 MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=fafa ProdID=0001 Rev= 0.00
S:  Manufacturer=GGG
S:  Product=GP-Wiz
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr= 90mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=00 Prot=00 Driver=usbhid
E:  Ad=81(I) Atr=03(Int.) MxPS=   6 Ivl=10ms

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 3
B:  Alloc=  0/900 us ( 0%), #Int=  1, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.12.5 ohci_hcd
S:  Product=nVidia Corporation nForce2 USB Controller
S:  SerialNumber=0000:00:02.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 6
B:  Alloc=  6/800 us ( 1%), #Int=  4, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.12.5 ehci_hcd
S:  Product=nVidia Corporation nForce2 USB Controller
S:  SerialNumber=0000:00:02.2
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=256ms

T:  Bus=01 Lev=02 Prnt=02 Port=01 Cnt=02 Dev#=  7 Spd=1.5 MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0d62 ProdID=0306 Rev= 1.01
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=02 Driver=usbhid
E:  Ad=81(I) Atr=03(Int.) MxPS=   5 Ivl=10ms


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&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