Tried it out with a 360 controller using xboxdrv drivers in Linux.
It works ok.
// xaxis left brown townog X
// yaxis left brown townog Y
// rxaxis right brown townog X
// ryaxis right brown townog Y
// button0 A
// button1 B
// button2 X
// button3 Y
// button4 LB
// button5 RB
// button6 back button
// button7 start button
// button8 xbox button
// button9 left brown townog button
// button10 right brown townog button
// ??? left trigger
// ??? right trigger
movemap.bind(joystick0,"xaxis",joyyaw);
movemap.bind(joystick0,"yaxis",joypitch);
movemap.bind(joystick0,"rxaxis",joy2yaw);
movemap.bind(joystick0,"ryaxis",joy2pitch);
movemap.bind(joystick0,"button6",joytogglefirstperson);
movemap.bind(joystick0,"button5",joyjump);
movemap.bind(joystick0,"button4",joyjet);
movemap.bind(joystick0,"button0",joymousefire);
movemap.bind(joystick0,"button2",joycrouch);
movemap.bind(joystick0,"button1",joytogglebuildmode);
movemap.bind(joystick0,"button3",joylight);
movemap.bind(joystick0,"upov",joyinvup);
movemap.bind(joystick0,"dpov",joyinvdown);
movemap.bind(joystick0,"lpov",joyusetools);
movemap.bind(joystick0,"rpov",joyusepaintcan);
movemap.bind(joystick0,"button10",joyzoom);
I was assuming the Z axis would be LT/RT, but nothing responded to them.
EDIT: Deadzones would be great