PDA

View Full Version : wired xbox 360 controler for jaunty


insanecrazy4
August 17th, 2009, 04:08 PM
Today i bought a xbox 360 controller for my computer so i can hopefully play emulated snes and n64 games. I also bought it so i can use with my 360 since that controller is almost broken (so it wasnt wasted money). I am having troubles finding a good tutorial to get one working with jaunty and im wondering if anyone would have a good tutorial they would like to share.

Choose
August 17th, 2009, 04:58 PM
This might be of some help to you

https://help.ubuntu.com/community/Xbox360Controller

good luck with it;)

insanecrazy4
August 17th, 2009, 06:02 PM
This might be of some help to you

https://help.ubuntu.com/community/Xbox360Controller

good luck with it;)

i tried that tutorial and i got stuck with this

devon@devon-laptop:~/xpad$ make
make modules -C /usr/src/linux-headers-2.6.28-14-generic SUBDIRS=/home/devon/xpad
make[1]: Entering directory `/usr/src/linux-headers-2.6.28-14-generic'
CC [M] /home/devon/xpad/xpad.o
/home/devon/xpad/xpad.c: In function ‘xpad_open’:
/home/devon/xpad/xpad.c:382: error: ‘struct input_dev’ has no member named ‘private’
/home/devon/xpad/xpad.c: In function ‘xpad_close’:
/home/devon/xpad/xpad.c:408: error: ‘struct input_dev’ has no member named ‘private’
/home/devon/xpad/xpad.c: In function ‘xpad_probe’:
/home/devon/xpad/xpad.c:496: error: ‘struct input_dev’ has no member named ‘cdev’
/home/devon/xpad/xpad.c:497: error: ‘struct input_dev’ has no member named ‘private’
make[2]: *** [/home/devon/xpad/xpad.o] Error 1
make[1]: *** [_module_/home/devon/xpad] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.28-14-generic'
make: *** [all] Error 2

insanecrazy4
August 19th, 2009, 03:39 PM
still need help

jackashe
September 4th, 2009, 10:24 PM
me too. I have intrepid and I followed those directions and I get


make[1]: Entering directory `/usr/src/linux-headers-2.6.27-14-generic'
CC [M] /home/jhauser/xpad/xpad.o
/home/jhauser/xpad/xpad.c: In function ‘xpad_open’:
/home/jhauser/xpad/xpad.c:382: error: ‘struct input_dev’ has no member named ‘private’
/home/jhauser/xpad/xpad.c: In function ‘xpad_close’:
/home/jhauser/xpad/xpad.c:408: error: ‘struct input_dev’ has no member named ‘private’
/home/jhauser/xpad/xpad.c: In function ‘xpad_probe’:
/home/jhauser/xpad/xpad.c:496: error: ‘struct input_dev’ has no member named ‘cdev’
/home/jhauser/xpad/xpad.c:497: error: ‘struct input_dev’ has no member named ‘private’
make[2]: *** [/home/jhauser/xpad/xpad.o] Error 1
make[1]: *** [_module_/home/jhauser/xpad] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.27-14-generic'
make: *** [all] Error 2

gamelord12
September 12th, 2009, 04:34 PM
I'm having the same problem

NovaWasp
September 12th, 2009, 08:52 PM
Get the user space drivers from here:

http://pingus.seul.org/~grumbel/xboxdrv/

follow the instructions in the read me and get all of the dependencies.
This command will make get your controller working for N64 games. I use it in Project 64 in WINE just fine.
sudo ./xboxdrv --trigger-as-button --silent

This will map key board stuff for non joy stick games.

sudo ./xboxdrv --silent --ui-clear --dpad-as-button --ui-buttonmap a=XK_a,b=XK_b,x=XK_x,y=XK_y,rb=XK_r,lb=XK_l --ui-buttonmap dl=XK_Left,dr=XK_Right,du=XK_Up,dd=XK_Down

I still need to map the start and back buttons, but that's what I use for supertux and gens/gs.

good luck.

tudor117
September 12th, 2009, 09:09 PM
Hi, I have the wireless Xbox 360 controller and it works out-of-the-box in Jaunty 64bit!
A good tool to use is Joystick Calibration (jscalibrator).

gamelord12
September 13th, 2009, 12:14 PM
Will the user space driver load automatically at boot? I don't want to have to manually open that tool all the time. Also, I have 64-bit Jaunty, and according to what I read online, if it detected my controller automatically then the joysticks would control the mouse pointer and there would be all kinds of info on it when I run a certain command in the terminal.

tudor117
September 14th, 2009, 04:29 PM
Mine works out of the box as a joystick. Not as a mouse. jscalibrator shows button presses and axises. It can also calibrate axises and etc.
I tried using my rockband drums with jaunty, hydrogen and joy2key and it worked great! Well up to a certain extent that joy2key imposes.
Try out jscalibrator and see if you can see your controller.