Ok, so the idea is to transform the XY values from a PS3 analogue stick into linear values like that of a [knob] or [slider].
For example if you push the analogue stick straight forward it would be the same as turing a knob to its 12 o'clock position, keeping the stick agains the edge of its circumference and pushing it to the left 90 degrees would turn the knob to its 9 o'clock position.
The values range from:
left - right: 0 - 255
top - bottom: 0 - 255
Hope that makes sense.