2009-09-04, 19:16
vicx Wrote:but there is one thing that I am curious about and that is that the RT thumbstick axis mapping for up and down does not work as it should when I run xboxdrv with --trigger-as-zaxis.
If I run it without --trigger-as-zaxis, up/dn RT thumbstick works perfectly.
Xbox S Controller.
Provide some specific details, and I can try to answer your questions.
- which versions of linux, live and xbmc?
- which version of the keymap.xml and startup script are you using?
- if you aren't using one of the startup scripts, what is your exactly xboxdrv command line?
The same keymap.xml without --trigger-as-zaxis should really not work properly because trigger-as-zaxis makes two axises (analog axises NOT centered at 0!) into one, with a different axis number.
If you :
Code:
apt-get install joystick
And then run :
Code:
jstest /path/to/your/joystick/device/that/xbodrv/announces
While running xboxdrv, you can see the axis numbers and values in jstest. The numbers in the Keymap xml are the jstest values +1. So if jstest says the trigger z-axis is axis "2", the keymap.xml gets :
Code:
<axis id="3" limit="-1">ScrollUp</axis>
<axis id="3" limit="-1">ScrollDown</axis>
I don't have a dongle for my original Xbox controllers, so I haven't tested with the Xbox S Controller. If you do get a working keymap.xml for this controller and xboxdrv that scrolls in menus with the triggers, let me know how you did it and I will include your file in v2 of the xboxdrv_for_XBMC_live package.
=darwin