First, there is the angle(x1,y1,x2,y2) which gives the angle between the two points provided. Second, there are two Gamepad.Axis(gamepadIndex,axisIndex) which return the displacement of each axis. The angle() function is used with (0,0) as first point, and gamepad axes displacement as second. In a whole, the expression gives you the angle formed by the right analog stick.