In fact, this is a permission problem on the device (/dev/input/event*) created by xboxdrv.
A solution is to create an udev rule in a new file:
Now, I am able to run the test program without sudo:
Thank you a lot Bigpet for the test program.
Problem solved.
A solution is to create an udev rule in a new file:
Code:
$ cat /etc/udev/rules.d/71-xboxdrv.rules
KERNEL=="event*", MODE="0666"Now, I am able to run the test program without sudo:
Code:
$ ./a.out
There are 1 joysticks attached
Joystick 0: Microsoft X-Box 360 pad
axes: 6
balls: 0
hats: 1
buttons: 11
instance id: 0
guid: 030000005e0400008e02000014010000Thank you a lot Bigpet for the test program.
Problem solved.

