Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Zero Pad Plugin 0.3
#1
I just tested the Zero Pad Plugin 0.3, from current SVN 1280, and while it is a big improvement, when I enable the analog my entire D-pad goes dead. The issue is that when analog is enabled my pad switches the xy axis from the default 0,1 to axes 4,5. My os is Ubuntu 9.04, Linux, on AMD 4600 dual core, 64 bit.

jstest --normal /dev/input/js0
Driver version is 2.1.0.
Joystick (Sanmos USB GAMEPAD ) has 6 axes and 12 buttons.
Testing ... (interrupt to exit)

With analog button on, dpad becomes this:

Event: type 2, time 180910908, number 5, value -32767
Event: type 2, time 180911068, number 5, value 0
Event: type 2, time 180913188, number 4, value 32767
Event: type 2, time 180913380, number 4, value 0
Event: type 2, time 180914252, number 4, value -32767
Event: type 2, time 180914436, number 4, value 0
Event: type 2, time 180916076, number 5, value 32767
Event: type 2, time 180916208, number 5, value 0


Normally it is:

Event: type 2, time 180964108, number 1, value -32767
Event: type 2, time 180964228, number 1, value 0
Event: type 2, time 180965780, number 0, value 32767
Event: type 2, time 180965916, number 0, value 0
Event: type 2, time 180967188, number 0, value -32767
Event: type 2, time 180967340, number 0, value 0
Event: type 2, time 180971468, number 1, value 32767
Event: type 2, time 180971600, number 1, value 0


[ 11.442093] input: Sanmos USB GAMEPAD as /devices/pci0000:00/0000:00:0a.0/usb2/2-5/2-5:1.0/input/input4
[ 11.453055] generic-usb 0003:11C0:5405.0001: input,hidraw0: USB HID v1.00 Joystick [Sanmos USB GAMEPAD ] on usb-0000:00:0a.0-5/input0

If I turn analog on and try to configure the d-pad, it will not register input. It seems hardcoded to only look on axes 0,1 for d-pad input. I cannot edit the source, it is completely incomprehensible to me. I think a SDL version would have been much cleaner.
Reply

Sponsored links





Users browsing this thread: 1 Guest(s)