you'll need to use the expression gamepad.axis(pad index, axis index)
it returns a number between -100 and 100 depending on how a pads stick is positioned.
'indexes' are zero based, which means gamepad 0 is the first, gamepad 1 is the second etc,
the axis indexes go like this:
left X = 0
left Y = 1
right X = 2
right Y =3
so gamepad.axis(0,2) will refer to the first gamepads right X axis
it will return -100 if the stick is fully to the left, 0 if in middle, 100 if fully right
I don't have a gamepad to test this with, but try this:
https://dl.dropboxusercontent.com/u/533 ... adAim.capx
if it works as intended the right analog stick should position the crosshair somewhere within a 200*200 square around the player