>
> Any suggestions?
>

Finally had some time to figure this one out.  If you look at 
/usr/include/linux/input.h you will find that these "cardinal direction" 
button codes are defined, but also aliased again as A,B,X,Y

#define BTN_SOUTH               0x130
#define BTN_A                   BTN_SOUTH
#define BTN_EAST                0x131
#define BTN_B                   BTN_EAST
#define BTN_NORTH               0x133
#define BTN_X                   BTN_NORTH
#define BTN_WEST                0x134
#define BTN_Y                   BTN_WEST

The evtest tool shows the correct value (0x130), but by another name which 
is not properly understood by the xboxdrv configuration parser.  I'm not 
sure how or where this bug resides in xboxdrv, exactly.

To get around the error use the appropriate aliases in your configuration.  
e.g. The solution for my gamepad is as follows:

xboxdrv \
--evdev /dev/input/by-id/usb-raphnet.net_WUSBmote_v1.3_1001-event-joystick \
--evdev-absmap ABS_X=x1,ABS_Y=y1 \
--evdev-keymap BTN_START=dl,BTN_SELECT=dr,BTN_TL2=du,BTN_TR2=dd \
--evdev-keymap BTN_THUMBR=guide,BTN_THUMBL=back,BTN_A=start \
--evdev-keymap BTN_X=a,BTN_Y=b,BTN_B=x,BTN_C=y \
--evdev-keymap BTN_TR=tr,BTN_MODE=tl,BTN_Z=lb,BTN_TL=rb

-- 
You received this message because you are subscribed to the Google Groups 
"xboxdrv" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/xboxdrv.
For more options, visit https://groups.google.com/d/optout.

Reply via email to